Lines Matching +defs:message +defs:reply
81 xpc_object_t message = xpc_dictionary_create(NULL, NULL, 0);
82 xpc_dictionary_set_uint64(message, SERVICE_XPC_REQUEST, action);
85 xpc_dictionary_set_data(message, SERVICE_XPC_KEY, testkey, 16);
87 xpc_object_t reply = xpc_connection_send_message_with_reply_sync(connection, message);
88 require_action(reply != NULL, done, status = -1);
89 require_action(xpc_get_type(reply) != XPC_TYPE_ERROR, done, status = -1);
93 const uint8_t *keydata = xpc_dictionary_get_data(reply, SERVICE_XPC_KEY, &len);
100 status = (OSStatus)xpc_dictionary_get_int64(reply, SERVICE_XPC_RC);
103 if (message)
104 xpc_release(message);
105 if (reply)
106 xpc_release(reply);