Lines Matching defs:message
265 /* The received message is a valid .Get call. */
268 /* The received message is a valid .Set call. */
271 /* The received message is a valid .GetAll call. */
274 /* The received message is a valid method call. */
277 /* The interface of the received message hasn't been registered for the
288 /* The received message called .Get or .Set for a property whose access
296 /* No method handler was found for the received message. */
299 /* The signature of the received message didn't match the expected
301 * call if its message signature is invalid. */
305 /* Data for resolving the correct reaction to a received message. */
307 DBusMessage *message; /* The received message. */
309 const char *interface; /* Destination interface name (extracted from the message). */
312 const char *property; /* Property name (extracted from the message). */
316 char *property_sig; /* The signature of the new value in the received .Set message. */
319 const char *method; /* Method name (extracted from the message). */
322 const char *method_sig; /* The signature of the received message. */
381 pa_assert_se(dbus_message_get_args(call_info->message, NULL,
401 pa_assert_se(dbus_message_get_args(call_info->message, NULL,
425 pa_assert_se(dbus_message_iter_init(call_info->message, &msg_iter));
494 static DBusHandlerResult handle_message_cb(DBusConnection *connection, DBusMessage *message, void *user_data) {
500 pa_assert(message);
504 if (dbus_message_get_type(message) != DBUS_MESSAGE_TYPE_METHOD_CALL)
507 pa_log_debug("Received message: destination = %s, interface = %s, member = %s",
508 dbus_message_get_path(message),
509 dbus_message_get_interface(message),
510 dbus_message_get_member(message));
512 call_info.message = message;
513 pa_assert_se(call_info.obj_entry = pa_hashmap_get(p->objects, dbus_message_get_path(message)));
514 call_info.interface = dbus_message_get_interface(message);
515 pa_assert_se(call_info.method = dbus_message_get_member(message));
516 pa_assert_se(call_info.method_sig = dbus_message_get_signature(message));
518 if (dbus_message_is_method_call(message, DBUS_INTERFACE_INTROSPECTABLE, "Introspect") ||
519 (!dbus_message_get_interface(message) && dbus_message_has_member(message, "Introspect"))) {
520 pa_dbus_send_basic_value_reply(connection, message, DBUS_TYPE_STRING, &call_info.obj_entry->introspection);
526 call_info.property_handler->get_cb(connection, message, call_info.iface_entry->userdata);
530 call_info.property_handler->set_cb(connection, message, &call_info.variant_iter, call_info.iface_entry->userdata);
534 call_info.method_handler->receive_cb(connection, message, call_info.iface_entry->userdata);
539 call_info.iface_entry->get_all_properties_cb(connection, message, call_info.iface_entry->userdata);
545 pa_assert_se(dummy_reply = dbus_message_new_method_return(message));
555 pa_dbus_send_error(connection, message, DBUS_ERROR_ACCESS_DENIED,
560 pa_dbus_send_error(connection, message, DBUS_ERROR_UNKNOWN_METHOD, "No such method: %s", call_info.method);
564 pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_INTERFACE, "No such interface: %s", call_info.interface);
568 pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_PROPERTY, "No such property: %s", call_info.property);
572 pa_dbus_send_error(connection, message, PA_DBUS_ERROR_NO_SUCH_INTERFACE, "No such property interface: %s", call_info.property_interface);
576 pa_dbus_send_error(connection, message, DBUS_ERROR_INVALID_ARGS,
582 pa_dbus_send_error(connection, message, DBUS_ERROR_INVALID_ARGS,