Lines Matching refs:event
78 static bool handle_xpc_event(const xpc_connection_t peer, xpc_object_t event);
79 static bool xpc_event_filter(const xpc_connection_t peer, xpc_object_t event, CFErrorRef *error);
123 xpc_connection_set_event_handler(serviceConnection, ^(xpc_object_t event)
126 handle_xpc_event(serviceConnection, event);
152 static bool handle_xpc_event(const xpc_connection_t peer, xpc_object_t event)
157 if ((result = xpc_event_filter(peer, event, &localError)))
159 const char *operation = xpc_dictionary_get_string(event, kMessageKeyOperation);
166 xpc_object_t xrv = xpc_dictionary_get_value(event, kMessageKeyValue);
185 static bool xpc_event_filter(const xpc_connection_t peer, xpc_object_t event, CFErrorRef *error)
189 xpc_type_t xtype = xpc_get_type(event);
196 describeXPCObject("handle_xpc_event: XPC_TYPE_CONNECTION, obj : ", event);
206 pdebug("default: xpc error: %s\n", xpc_dictionary_get_string(event, XPC_ERROR_KEY_DESCRIPTION));
213 pdebug("received dictionary event %p\n", event);
218 pdebug("default: unexpected connection event %p\n", event);
219 describeXPCObject("handle_xpc_event: obj : ", event);
330 xpc_object_t reply = xpc_create_reply_with_format(event,