Lines Matching refs:endpoint

452     const char *endpoint;
470 pa_assert_se(endpoint = endpoint_conf->choose_remote_endpoint(capabilities_hashmap, &device->discovery->core->default_sample_spec, is_a2dp_sink));
471 pa_assert_se(capabilities = pa_hashmap_get(all_endpoints, endpoint));
481 pa_assert_se(m = dbus_message_new_method_call(BLUEZ_SERVICE, endpoint,
1146 pa_log_debug("Remote endpoint %s was removed", path);
1733 char *endpoint;
1738 pa_assert_se(endpoint = p->call_data);
1742 pa_log_info("Couldn't register endpoint %s because it is disabled in BlueZ", endpoint);
1758 pa_xfree(endpoint);
1761 static void register_legacy_sbc_endpoint(pa_bluetooth_discovery *y, const pa_a2dp_endpoint_conf *endpoint_conf, const char *path, const char *endpoint, const char *uuid) {
1768 pa_log_debug("Registering %s on adapter %s", endpoint, path);
1777 pa_assert_se(dbus_message_iter_append_basic(&i, DBUS_TYPE_OBJECT_PATH, &endpoint));
1790 send_and_add_to_pending(y, m, register_legacy_sbc_endpoint_reply, pa_xstrdup(endpoint));
1878 static void parse_remote_endpoint_properties(pa_bluetooth_discovery *y, const char *endpoint, DBusMessageIter *i) {
1892 pa_log_debug("Parsing remote endpoint %s", endpoint);
1904 pa_log_error("Received invalid property for remote endpoint %s", endpoint);
1912 pa_log_warn("Remote endpoint %s property 'UUID' is not string, ignoring", endpoint);
1919 pa_log_warn("Remote endpoint %s property 'Codec' is not byte, ignoring", endpoint);
1929 pa_log_warn("Remote endpoint %s property 'Capabilities' is not array, ignoring", endpoint);
1935 pa_log_warn("Remote endpoint %s property 'Capabilities' is not array of bytes, ignoring", endpoint);
1942 pa_log_warn("Remote endpoint %s property 'Device' is not path, ignoring", endpoint);
1953 pa_log_warn("Remote endpoint %s does not have property 'UUID', ignoring", endpoint);
1958 pa_log_warn("Remote endpoint %s does not have property 'Codec', ignoring", endpoint);
1963 pa_log_warn("Remote endpoint %s does not have property 'Capabilities', ignoring", endpoint);
1968 pa_log_warn("Remote endpoint %s does not have property 'Device', ignoring", endpoint);
1974 pa_log_warn("Device for remote endpoint %s was not found", endpoint);
1983 pa_log_warn("Remote endpoint %s does not have valid property 'UUID', ignoring", endpoint);
1988 pa_log_warn("Remote endpoint %s does not have valid property 'Capabilities', ignoring", endpoint);
1996 pa_log_warn("Remote endpoint %s does not have valid property 'Capabilities', ignoring", endpoint);
2022 if (pa_hashmap_remove_and_free(endpoints, endpoint) >= 0)
2023 pa_log_debug("Replacing existing remote endpoint %s", endpoint);
2024 pa_hashmap_put(endpoints, pa_xstrdup(endpoint), a2dp_codec_capabilities);
2354 pa_log_info("Properties changed in remote endpoint %s", dbus_message_get_path(m));
2420 static const pa_a2dp_endpoint_conf *a2dp_sep_to_a2dp_endpoint_conf(const char *endpoint) {
2423 if (pa_startswith(endpoint, A2DP_SINK_ENDPOINT "/"))
2424 codec_name = endpoint + strlen(A2DP_SINK_ENDPOINT "/");
2425 else if (pa_startswith(endpoint, A2DP_SOURCE_ENDPOINT "/"))
2426 codec_name = endpoint + strlen(A2DP_SOURCE_ENDPOINT "/");
2494 pa_log_error("UUID %s of transport %s incompatible with endpoint %s", uuid, path, endpoint_path);
2658 * unregisters the endpoint. An endpoint can use it to do
2660 * endpoint, because when this method gets called it has
2717 static void endpoint_init(pa_bluetooth_discovery *y, const char *endpoint) {
2723 pa_assert(endpoint);
2725 pa_assert_se(dbus_connection_register_object_path(pa_dbus_connection_get(y->connection), endpoint,
2729 static void endpoint_done(pa_bluetooth_discovery *y, const char *endpoint) {
2731 pa_assert(endpoint);
2733 dbus_connection_unregister_object_path(pa_dbus_connection_get(y->connection), endpoint);
2736 static void append_a2dp_object(DBusMessageIter *iter, const char *endpoint, const char *uuid, uint8_t codec_id, uint8_t *capabilities, uint8_t capabilities_size) {
2741 pa_assert_se(dbus_message_iter_append_basic(&object, DBUS_TYPE_OBJECT_PATH, &endpoint));
2820 char *endpoint;
2829 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SINK_ENDPOINT, endpoint_conf->bt_codec.name);
2830 append_a2dp_object(&array, endpoint, PA_BLUETOOTH_UUID_A2DP_SINK, codec_id,
2832 pa_xfree(endpoint);
2838 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SOURCE_ENDPOINT, endpoint_conf->bt_codec.name);
2839 append_a2dp_object(&array, endpoint, PA_BLUETOOTH_UUID_A2DP_SOURCE, codec_id,
2841 pa_xfree(endpoint);
2877 char *endpoint;
2941 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SINK_ENDPOINT, endpoint_conf->bt_codec.name);
2942 endpoint_init(y, endpoint);
2943 pa_xfree(endpoint);
2947 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SOURCE_ENDPOINT, endpoint_conf->bt_codec.name);
2948 endpoint_init(y, endpoint);
2949 pa_xfree(endpoint);
2976 char *endpoint;
3032 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SINK_ENDPOINT, endpoint_conf->bt_codec.name);
3033 endpoint_done(y, endpoint);
3034 pa_xfree(endpoint);
3038 endpoint = pa_sprintf_malloc("%s/%s", A2DP_SOURCE_ENDPOINT, endpoint_conf->bt_codec.name);
3039 endpoint_done(y, endpoint);
3040 pa_xfree(endpoint);