Lines Matching refs:ports

92     pa_hashmap *ports;
666 const char **ports;
674 *n = pa_hashmap_size(d->ports);
679 ports = pa_xnew(const char *, *n);
681 PA_HASHMAP_FOREACH(port, d->ports, state)
682 ports[i++] = pa_dbusiface_device_port_get_path(port);
684 return ports;
689 const char **ports = NULL;
696 ports = get_ports(d, &n_ports);
698 pa_dbus_send_basic_array_variant_reply(conn, msg, DBUS_TYPE_OBJECT_PATH, ports, n_ports);
700 pa_xfree(ports);
712 pa_assert(pa_hashmap_isempty(d->ports));
716 "The sink %s has no ports, and therefore there's no active port either.", d->sink->name);
719 "The source %s has no ports, and therefore there's no active port either.", d->source->name);
723 active_port = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name));
742 pa_assert(pa_hashmap_isempty(d->ports));
746 "The sink %s has no ports, and therefore there's no active port either.", d->sink->name);
749 "The source %s has no ports, and therefore there's no active port either.", d->source->name);
755 PA_HASHMAP_FOREACH(port, d->ports, state) {
823 const char **ports = NULL;
883 ports = get_ports(d, &n_ports);
885 active_port = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name));
919 pa_dbus_append_basic_array_variant_dict_entry(&dict_iter, property_handlers[PROPERTY_HANDLER_PORTS].property_name, DBUS_TYPE_OBJECT_PATH, ports, n_ports);
932 pa_xfree(ports);
979 if (!(port = pa_hashmap_get(d->ports, port_name))) {
1203 object_path = pa_dbusiface_device_port_get_path(pa_hashmap_get(d->ports, d->active_port->name));
1262 d->ports = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_dbusiface_device_port_free);
1278 PA_HASHMAP_FOREACH(port, sink->ports, state) {
1280 pa_hashmap_put(d->ports, (char *) pa_dbusiface_device_port_get_name(p), p);
1305 d->ports = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_dbusiface_device_port_free);
1321 PA_HASHMAP_FOREACH(port, source->ports, state) {
1323 pa_hashmap_put(d->ports, (char *) pa_dbusiface_device_port_get_name(p), p);
1351 pa_hashmap_free(d->ports);