Home
last modified time | relevance | path

Searched refs:object_path (Results 1 - 19 of 19) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
H A Dmessage-handler.c69 /* Register message handler for the specified object. object_path must be a unique name starting with "/". */
70 void pa_message_handler_register(pa_core *c, const char *object_path, const char *description, pa_message_handler_cb_t cb, void *userdata) { in pa_message_handler_register() argument
74 pa_assert(object_path); in pa_message_handler_register()
79 pa_assert(object_path_is_valid(object_path)); in pa_message_handler_register()
84 handler->object_path = pa_xstrdup(object_path); in pa_message_handler_register()
87 pa_assert_se(pa_hashmap_put(c->message_handlers, handler->object_path, handler) == 0); in pa_message_handler_register()
91 void pa_message_handler_unregister(pa_core *c, const char *object_path) { in pa_message_handler_unregister() argument
95 pa_assert(object_path); in pa_message_handler_unregister()
97 pa_assert_se(handler = pa_hashmap_remove(c->message_handlers, object_path)); in pa_message_handler_unregister()
105 pa_message_handler_send_message(pa_core *c, const char *object_path, const char *message, const char *message_parameters, char **response) pa_message_handler_send_message() argument
166 pa_message_handler_set_description(pa_core *c, const char *object_path, const char *description) pa_message_handler_set_description() argument
[all...]
H A Dmessage-handler.h28 const char *object_path,
36 char *object_path; member
43 void pa_message_handler_register(pa_core *c, const char *object_path, const char *description, pa_message_handler_cb_t cb, void *userdata);
44 void pa_message_handler_unregister(pa_core *c, const char *object_path);
47 int pa_message_handler_send_message(pa_core *c, const char *object_path, const char *message, const char *message_parameters, char **response);
50 int pa_message_handler_set_description(pa_core *c, const char *object_path, const char *description);
H A Dcard.c41 static int card_message_handler(const char *object_path, const char *message, const pa_json_object *parameters, char **response, void *userdata);
148 char *object_path, *description; in pa_card_new() local
198 object_path = make_message_handler_path(c->name); in pa_card_new()
202 pa_message_handler_register(c->core, object_path, description, card_message_handler, (void *) c); in pa_card_new()
203 pa_xfree(object_path); in pa_card_new()
260 char *object_path; in pa_card_free() local
275 object_path = make_message_handler_path(c->name); in pa_card_free()
276 pa_message_handler_unregister(core, object_path); in pa_card_free()
277 pa_xfree(object_path); in pa_card_free()
469 static int card_message_handler(const char *object_path, cons argument
[all...]
H A Dcore.c82 pa_json_encoder_add_member_string(encoder, "name", handler->object_path); in message_handler_list()
92 static int core_message_handler(const char *object_path, const char *message, const pa_json_object *parameters, char **response, void *userdata) { in core_message_handler() argument
98 pa_assert(pa_safe_streq(object_path, "/core")); in core_message_handler()
H A Dcli-command.c1793 const char *object_path, *message, *message_parameters; in pa_cli_command_send_message_to_object() local
1803 if (!(object_path = pa_tokenizer_get(t, 1))) { in pa_cli_command_send_message_to_object()
1816 ret = pa_message_handler_send_message(c, object_path, message, message_parameters, &response); in pa_cli_command_send_message_to_object()
H A Dprotocol-native.c4598 const char *object_path = NULL; in command_send_object_message() local
4609 if (pa_tagstruct_gets(t, &object_path) < 0 || in command_send_object_message()
4618 CHECK_VALIDITY(c->pstream, object_path != NULL, tag, PA_ERR_INVALID); in command_send_object_message()
4619 CHECK_VALIDITY(c->pstream, pa_utf8_valid(object_path), tag, PA_ERR_INVALID); in command_send_object_message()
4626 pa_log_debug("Client %s sent message %s to path %s", client_name, message, object_path); in command_send_object_message()
4630 ret = pa_message_handler_send_message(c->protocol->core, object_path, message, message_parameters, &response); in command_send_object_message()
/third_party/pulseaudio/src/modules/dbus/
H A Diface-core.c683 const char *object_path; in handle_get_fallback_sink() local
696 object_path = pa_dbusiface_device_get_path(fallback_sink); in handle_get_fallback_sink()
698 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_fallback_sink()
704 const char *object_path; in handle_set_fallback_sink() local
717 dbus_message_iter_get_basic(iter, &object_path); in handle_set_fallback_sink()
719 if (!(fallback_sink = pa_hashmap_get(c->sinks_by_path, object_path))) { in handle_set_fallback_sink()
720 pa_dbus_send_error(conn, msg, PA_DBUS_ERROR_NOT_FOUND, "%s: No such sink.", object_path); in handle_set_fallback_sink()
771 const char *object_path; in handle_get_fallback_source() local
784 object_path = pa_dbusiface_device_get_path(fallback_source); in handle_get_fallback_source()
786 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_fallback_source()
792 const char *object_path; handle_set_fallback_source() local
1181 const char *object_path; handle_get_card_by_name() local
1206 const char *object_path; handle_get_sink_by_name() local
1231 const char *object_path; handle_get_source_by_name() local
1256 const char *object_path; handle_get_sample_by_name() local
1297 const char *object_path; handle_upload_sample() local
1465 const char *object_path = NULL; handle_load_module() local
1585 const char *object_path; module_new_cb() local
1619 const char *object_path; module_removed_cb() local
1646 const char *object_path; sample_cache_new_cb() local
1672 const char *object_path; sample_cache_removed_cb() local
1697 const char *object_path; create_dbus_object_for_sink() local
1721 const char *object_path; default_sink_changed_cb() local
1765 const char *object_path; create_dbus_object_for_source() local
1789 const char *object_path; default_source_changed_cb() local
1835 const char *object_path; card_put_cb() local
1861 const char *object_path; card_unlink_cb() local
1888 const char *object_path; sink_input_put_cb() local
1914 const char *object_path; sink_input_unlink_cb() local
1941 const char *object_path; source_output_put_cb() local
1967 const char *object_path; source_output_unlink_cb() local
1994 const char *object_path; client_put_cb() local
2020 const char *object_path; client_unlink_cb() local
2065 const char *object_path = NULL; sink_unlink_cb() local
2110 const char *object_path = NULL; source_unlink_cb() local
2387 pa_dbusiface_core_get_sink(pa_dbusiface_core *c, const char *object_path) pa_dbusiface_core_get_sink() argument
2401 pa_dbusiface_core_get_source(pa_dbusiface_core *c, const char *object_path) pa_dbusiface_core_get_source() argument
[all...]
H A Diface-card.c471 const char *object_path; in card_profile_changed_cb() local
479 object_path = pa_dbusiface_card_profile_get_path(pa_hashmap_get(dbus_card->profiles, dbus_card->active_profile->name)); in card_profile_changed_cb()
484 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &object_path, DBUS_TYPE_INVALID)); in card_profile_changed_cb()
499 const char *object_path; in card_profile_added_cb() local
509 object_path = pa_dbusiface_card_profile_get_path(p); in card_profile_added_cb()
514 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &object_path, DBUS_TYPE_INVALID)); in card_profile_added_cb()
528 const char *object_path; in card_profile_available_changed_cb() local
537 object_path = pa_dbusiface_card_profile_get_path(p); in card_profile_available_changed_cb()
543 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &object_path, in card_profile_available_changed_cb()
H A Diface-core.h45 pa_sink *pa_dbusiface_core_get_sink(pa_dbusiface_core *c, const char *object_path);
48 pa_source *pa_dbusiface_core_get_source(pa_dbusiface_core *c, const char *object_path);
H A Diface-stream.c229 const char *object_path = NULL; in handle_get_owner_module() local
246 object_path = pa_dbusiface_core_get_module_path(s->core, owner_module); in handle_get_owner_module()
248 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_owner_module()
254 const char *object_path = NULL; in handle_get_client() local
271 object_path = pa_dbusiface_core_get_client_path(s->core, client); in handle_get_client()
273 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_client()
H A Diface-device.c301 const char *object_path = NULL; in handle_get_owner_module() local
319 object_path = pa_dbusiface_core_get_module_path(d->core, owner_module); in handle_get_owner_module()
321 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_owner_module()
327 const char *object_path = NULL; in handle_get_card() local
345 object_path = pa_dbusiface_core_get_card_path(d->core, card); in handle_get_card()
347 pa_dbus_send_basic_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, &object_path); in handle_get_card()
1200 const char *object_path = NULL; in port_changed_cb() local
1203 object_path = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name)); in port_changed_cb()
1208 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &object_path, DBUS_TYPE_INVALID)); in port_changed_cb()
/third_party/ninja/src/
H A Dmsvc_helper_main-win32.cc53 void WriteDepFileOrDie(const char* object_path, const CLParser& parse) { in WriteDepFileOrDie() argument
54 string depfile_path = string(object_path) + ".d"; in WriteDepFileOrDie()
57 unlink(object_path); in WriteDepFileOrDie()
61 if (fprintf(depfile, "%s: ", object_path) < 0) { in WriteDepFileOrDie()
62 unlink(object_path); in WriteDepFileOrDie()
71 unlink(object_path); in WriteDepFileOrDie()
/third_party/pulseaudio/src/modules/
H A Dreserve.c43 char *object_path; member
413 if (!(d->object_path = malloc(sizeof(OBJECT_PREFIX) + strlen(device_name)))) { in rd_acquire()
417 sprintf(d->object_path, OBJECT_PREFIX "%s", d->device_name); in rd_acquire()
444 d->object_path, in rd_acquire()
518 d->object_path, in rd_acquire()
578 d->object_path); in rd_release()
590 free(d->object_path); in rd_release()
H A Dmodule-stream-restore.c158 char *object_path; member
314 de->object_path = pa_sprintf_malloc("%s/%s%u", OBJECT_PATH, ENTRY_OBJECT_NAME, de->index); in dbus_entry_new()
316 pa_assert_se(pa_dbus_protocol_add_interface(u->dbus_protocol, de->object_path, &entry_interface_info, de) >= 0); in dbus_entry_new()
324 pa_assert_se(pa_dbus_protocol_remove_interface(de->userdata->dbus_protocol, de->object_path, entry_interface_info.name) >= 0); in dbus_entry_free()
327 pa_xfree(de->object_path); in dbus_entry_free()
450 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &entry->object_path, DBUS_TYPE_INVALID)); in send_new_entry_signal()
461 pa_assert_se(dbus_message_append_args(signal_msg, DBUS_TYPE_OBJECT_PATH, &entry->object_path, DBUS_TYPE_INVALID)); in send_entry_removed_signal()
475 pa_assert_se(signal_msg = dbus_message_new_signal(de->object_path, INTERFACE_ENTRY, entry_signals[ENTRY_SIGNAL_DEVICE_UPDATED].name)); in send_device_updated_signal()
488 pa_assert_se(signal_msg = dbus_message_new_signal(de->object_path, INTERFACE_ENTRY, entry_signals[ENTRY_SIGNAL_VOLUME_UPDATED].name)); in send_volume_updated_signal()
506 pa_assert_se(signal_msg = dbus_message_new_signal(de->object_path, INTERFACE_ENTR in send_mute_updated_signal()
[all...]
/third_party/cups-filters/cupsfilters/
H A Dcolord.c116 const char *object_path) in get_filename_for_profile_path()
129 object_path, in get_filename_for_profile_path()
171 const char *object_path, in get_profile_for_device_path()
187 object_path, in get_profile_for_device_path()
356 get_profile_inhibitors (DBusConnection *con, const char *object_path) in get_profile_inhibitors() argument
370 object_path, in get_profile_inhibitors()
115 get_filename_for_profile_path(DBusConnection *con, const char *object_path) get_filename_for_profile_path() argument
170 get_profile_for_device_path(DBusConnection *con, const char *object_path, const char **split) get_profile_for_device_path() argument
/third_party/pulseaudio/src/tests/
H A Dladspa-dbus.py37 core = connection.get_object(object_path="/org/pulseaudio/core1")
43 ladspa_sink_property_iface = dbus.Interface(connection.get_object(object_path=ladspa_sink_path), dbus.PROPERTIES_IFACE)
/third_party/pulseaudio/src/modules/bluetooth/
H A Dmodule-bluez5-device.c2566 static int bluez5_device_message_handler(const char *object_path, const char *message, const pa_json_object *parameters, char **response, void *userdata) { in bluez5_device_message_handler() argument
2581 if (!object_path || !pa_streq(object_path, message_handler_path)) { in bluez5_device_message_handler()
/third_party/pulseaudio/src/utils/
H A Dpactl.c67 *object_path = NULL, variable
2475 o = pa_context_send_message_to_object(c, object_path, message, message_args, send_message_callback, NULL); in context_state_callback()
3176 object_path = pa_xstrdup(argv[optind + 1]); in main()
3285 pa_xfree(object_path); in main()
/third_party/pulseaudio/src/pulse/
H A Dintrospect.c2255 pa_operation* pa_context_send_message_to_object(pa_context *c, const char *object_path, const char *message, const char *message_parameters, pa_context_string_cb_t cb, void *userdata) { in pa_context_send_message_to_object() argument
2271 pa_tagstruct_puts(t, object_path); in pa_context_send_message_to_object()

Completed in 37 milliseconds