PipeWire  0.3.33
impl-device.h
Go to the documentation of this file.
1 /* PipeWire
2  *
3  * Copyright © 2018 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef PIPEWIRE_IMPL_DEVICE_H
26 #define PIPEWIRE_IMPL_DEVICE_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
46 struct pw_impl_device;
47 
48 #include <spa/monitor/device.h>
49 
50 #include <pipewire/context.h>
51 #include <pipewire/global.h>
52 #include <pipewire/properties.h>
53 #include <pipewire/resource.h>
54 
57 #define PW_VERSION_IMPL_DEVICE_EVENTS 0
58  uint32_t version;
59 
61  void (*destroy) (void *data);
63  void (*free) (void *data);
65  void (*initialized) (void *data);
66 
68  void (*info_changed) (void *data, const struct pw_device_info *info);
69 };
70 
71 struct pw_impl_device *pw_context_create_device(struct pw_context *context,
72  struct pw_properties *properties,
73  size_t user_data_size);
74 
75 int pw_impl_device_register(struct pw_impl_device *device,
76  struct pw_properties *properties);
77 
78 void pw_impl_device_destroy(struct pw_impl_device *device);
79 
80 void *pw_impl_device_get_user_data(struct pw_impl_device *device);
81 
83 int pw_impl_device_set_implementation(struct pw_impl_device *device, struct spa_device *spa_device);
85 struct spa_device *pw_impl_device_get_implementation(struct pw_impl_device *device);
86 
88 struct pw_global *pw_impl_device_get_global(struct pw_impl_device *device);
89 
91 void pw_impl_device_add_listener(struct pw_impl_device *device,
92  struct spa_hook *listener,
93  const struct pw_impl_device_events *events,
94  void *data);
95 
96 int pw_impl_device_update_properties(struct pw_impl_device *device, const struct spa_dict *dict);
97 
98 const struct pw_properties *pw_impl_device_get_properties(struct pw_impl_device *device);
99 
100 int pw_impl_device_for_each_param(struct pw_impl_device *device,
101  int seq, uint32_t param_id,
102  uint32_t index, uint32_t max,
103  const struct spa_pod *filter,
104  int (*callback) (void *data, int seq,
105  uint32_t id, uint32_t index, uint32_t next,
106  struct spa_pod *param),
107  void *data);
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif /* PIPEWIRE_IMPL_DEVICE_H */
PW_VERSION_IMPL_DEVICE_EVENTS
#define PW_VERSION_IMPL_DEVICE_EVENTS
Definition: impl-device.h:57
pw_impl_device_update_properties
int pw_impl_device_update_properties(struct pw_impl_device *device, const struct spa_dict *dict)
Definition: impl-device.c:903
PW_KEY_DEVICE_NAME
#define PW_KEY_DEVICE_NAME
device name
Definition: src/pipewire/keys.h:211
pw_properties_get
int int const char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:487
spa_device_sync
#define spa_device_sync(d,...)
Definition: build-12775836/doc/spa/monitor/device.h:254
global.h
spa_device_info::change_mask
uint64_t change_mask
Definition: build-12775836/doc/spa/monitor/device.h:67
device::listener
struct spa_hook listener
Definition: alsa-monitor.c:105
resource_data::subscribe_ids
uint32_t subscribe_ids[MAX_PARAMS]
Definition: impl-device.c:68
PW_TYPE_INTERFACE_Device
#define PW_TYPE_INTERFACE_Device
Definition: src/pipewire/device.h:37
pw_properties_update
int pw_properties_update(struct pw_properties *props, const struct spa_dict *dict)
Update properties.
Definition: properties.c:298
spa_zero
#define spa_zero(x)
Definition: defs.h:303
pw_impl_device_register
int pw_impl_device_register(struct pw_impl_device *device, struct pw_properties *properties)
Definition: impl-device.c:554
SPA_TYPE_INTERFACE_Device
#define SPA_TYPE_INTERFACE_Device
Definition: build-12775836/doc/spa/monitor/device.h:50
resource_data::device
struct pw_impl_device * device
Definition: impl-device.c:62
PW_KEY_OBJECT_ID
#define PW_KEY_OBJECT_ID
a global object id
Definition: src/pipewire/keys.h:66
pw_impl_device_get_properties
const struct pw_properties * pw_impl_device_get_properties(struct pw_impl_device *device)
Definition: impl-device.c:897
pw_global_register
int pw_global_register(struct pw_global *global)
Register a global object to the context registry.
Definition: global.c:125
result_device_params_data::seq
int seq
Definition: impl-device.c:56
types.h
resource_data::pi
struct spa_param_info * pi
Definition: impl-device.c:75
OBJECT_DEVICE
#define OBJECT_DEVICE
Definition: impl-device.c:84
spa_device
Definition: build-12775836/doc/spa/monitor/device.h:53
PW_KEY_MODULE_ID
#define PW_KEY_MODULE_ID
module properties
Definition: src/pipewire/keys.h:249
pw_impl_device_set_implementation
int pw_impl_device_set_implementation(struct pw_impl_device *device, struct spa_device *spa_device)
Set the device implementation.
Definition: impl-device.c:874
resource_data
Definition: impl-core.c:74
name
const char * name
Definition: media-session.c:2379
resource_data::seq
int seq
Definition: impl-device.c:72
string.h
data
user data to add to an object
Definition: filter.c:75
pw_global_new
struct pw_global * pw_global_new(struct pw_context *context, const char *type, uint32_t version, struct pw_properties *properties, pw_global_bind_func_t func, void *object)
Create a new global object.
Definition: global.c:66
object_data::type
uint32_t type
Definition: impl-device.c:85
pw_global_add_resource
int pw_global_add_resource(struct pw_global *global, struct pw_resource *resource)
Add a resource to a global.
Definition: global.c:230
spa_streq
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
PW_KEY_OBJECT_PATH
#define PW_KEY_OBJECT_PATH
object properties
Definition: src/pipewire/keys.h:65
resource_data::resource_listener
struct spa_hook resource_listener
Definition: impl-core.c:76
spa_list_for_each
#define spa_list_for_each(pos, head, member)
Definition: list.h:111
spa_device_object_info::props
const struct spa_dict * props
extra object properties
Definition: build-12775836/doc/spa/monitor/device.h:92
SPA_DEVICE_OBJECT_CHANGE_MASK_PROPS
#define SPA_DEVICE_OBJECT_CHANGE_MASK_PROPS
Definition: build-12775836/doc/spa/monitor/device.h:89
impl::param_list
struct spa_list param_list
Definition: impl-device.c:40
spa_device_info::props
const struct spa_dict * props
device properties
Definition: build-12775836/doc/spa/monitor/device.h:69
pw_impl_node_update_properties
int pw_impl_node_update_properties(struct pw_impl_node *node, const struct spa_dict *dict)
Update the node properties.
Definition: impl-node.c:1286
SPA_EXPORT
#define SPA_EXPORT
Definition: defs.h:208
pw_impl_device_for_each_param
int pw_impl_device_for_each_param(struct pw_impl_device *device, int seq, uint32_t param_id, uint32_t index, uint32_t max, const struct spa_pod *filter, int(*callback)(void *data, int seq, uint32_t id, uint32_t index, uint32_t next, struct spa_pod *param), void *data)
Definition: impl-device.c:293
pw_global_events
Global events, use pw_global_add_listener.
Definition: global.h:68
pw_impl_device_events::version
uint32_t version
Definition: impl-device.h:58
PW_VERSION_DEVICE
#define PW_VERSION_DEVICE
Definition: src/pipewire/device.h:39
spa_result_device_params::param
struct spa_pod * param
Definition: build-12775836/doc/spa/monitor/device.h:103
device
Definition: alsa-monitor.c:82
node
Definition: module-filter-chain.c:155
NAME
#define NAME
Definition: impl-device.c:35
impl
Definition: control.c:33
resource_data::orig_seq
int orig_seq
Definition: impl-device.c:73
SPA_PARAM_INFO_READ
#define SPA_PARAM_INFO_READ
Definition: param.h:68
pw_impl_node_set_implementation
int pw_impl_node_set_implementation(struct pw_impl_node *node, struct spa_node *spa_node)
Set the node implementation.
Definition: impl-node.c:1663
spa_hook_list_append
void spa_hook_list_append(struct spa_hook_list *list, struct spa_hook *hook, const void *funcs, void *data)
Append a hook.
Definition: hook.h:316
spa_list
Definition: list.h:37
pw_impl_device_get_global
struct pw_global * pw_impl_device_get_global(struct pw_impl_device *device)
Get the global of this device.
Definition: impl-device.c:917
spa_result_device_params
Definition: build-12775836/doc/spa/monitor/device.h:99
SPA_PTROFF
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:159
pw_impl_device_events::free
void(* free)(void *data)
the device is freed
Definition: impl-device.h:63
SPA_DEVICE_CHANGE_MASK_PROPS
#define SPA_DEVICE_CHANGE_MASK_PROPS
Definition: build-12775836/doc/spa/monitor/device.h:65
handle
Definition: pipewire.c:68
impl::id
uint32_t id
Definition: module-echo-cancel.c:139
result_device_params_data::impl
struct impl * impl
Definition: impl-device.c:51
pw_device_methods
Device methods.
Definition: src/pipewire/device.h:100
props
const char * props
Definition: media-session.c:2382
impl.h
pw_properties::dict
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
spa_pod_filter
int spa_pod_filter(struct spa_pod_builder *b, struct spa_pod **result, const struct spa_pod *pod, const struct spa_pod *filter)
Definition: build-12775836/doc/spa/pod/filter.h:387
SPA_CONTAINER_OF
#define SPA_CONTAINER_OF(p, t, m)
Definition: defs.h:170
spa_param_info::flags
uint32_t flags
Definition: param.h:71
spa_list_consume
#define spa_list_consume(pos, head, member)
Definition: list.h:96
SPA_TYPE_INTERFACE_Node
#define SPA_TYPE_INTERFACE_Node
Definition: build-12775836/doc/spa/node/node.h:50
object_data::id
uint32_t id
Definition: impl-device.c:82
spa_pod
Definition: pod/pod.h:50
spa_device_enum_params
#define spa_device_enum_params(d,...)
Definition: build-12775836/doc/spa/monitor/device.h:255
pw_impl_device_events::destroy
void(* destroy)(void *data)
the device is destroyed
Definition: impl-device.h:61
SPA_DEVICE_CHANGE_MASK_PARAMS
#define SPA_DEVICE_CHANGE_MASK_PARAMS
Definition: build-12775836/doc/spa/monitor/device.h:66
pw_global_add_listener
void pw_global_add_listener(struct pw_global *global, struct spa_hook *listener, const struct pw_global_events *events, void *data)
Add an event listener on the global.
Definition: global.c:255
PW_DEVICE_CHANGE_MASK_ALL
#define PW_DEVICE_CHANGE_MASK_ALL
Definition: src/pipewire/device.h:47
spa_list_remove
void spa_list_remove(struct spa_list *elem)
Definition: list.h:69
pw_resource_add_object_listener
void pw_resource_add_object_listener(struct pw_resource *resource, struct spa_hook *listener, const void *funcs, void *data)
Set the resource implementation.
Definition: resource.c:174
SPA_N_ELEMENTS
#define SPA_N_ELEMENTS(arr)
Definition: defs.h:109
pw_device_resource_info
#define pw_device_resource_info(r,...)
Definition: impl-device.c:47
pw_device_methods::version
uint32_t version
Definition: src/pipewire/device.h:102
resource_data::object_listener
struct spa_hook object_listener
Definition: impl-core.c:77
pw_impl_device_events::info_changed
void(* info_changed)(void *data, const struct pw_device_info *info)
the device info changed
Definition: impl-device.h:68
PW_KEY_FACTORY_ID
#define PW_KEY_FACTORY_ID
Factory properties.
Definition: src/pipewire/keys.h:259
pw_device_resource_param
#define pw_device_resource_param(r,...)
Definition: impl-device.c:48
filter
Definition: filter.c:126
result_device_params_data::callback
int(* callback)(void *data, int seq, uint32_t id, uint32_t index, uint32_t next, struct spa_pod *param)
Definition: impl-device.c:53
spa_device_object_info::factory_name
const char * factory_name
a factory name that implements the object
Definition: build-12775836/doc/spa/monitor/device.h:86
PW_KEY_DEVICE_API
#define PW_KEY_DEVICE_API
API this device is accessed with.
Definition: src/pipewire/keys.h:217
spa_hook
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
PW_VERSION_IMPL_NODE_EVENTS
#define PW_VERSION_IMPL_NODE_EVENTS
Definition: impl-node.h:52
pw_resource_errorf
void pw_resource_errorf(struct pw_resource *resource, int res, const char *error,...) 1(3
filter.h
PW_VERSION_RESOURCE_EVENTS
#define PW_VERSION_RESOURCE_EVENTS
Definition: resource.h:61
object_data
Definition: impl-device.c:80
object_data::listener
struct spa_hook listener
Definition: impl-device.c:88
spa_device_info::flags
uint64_t flags
Definition: build-12775836/doc/spa/monitor/device.h:68
resource.h
pw_impl_device_get_implementation
struct spa_device * pw_impl_device_get_implementation(struct pw_impl_device *device)
Get the device implementation.
Definition: impl-device.c:891
pw_impl_node_register
int pw_impl_node_register(struct pw_impl_node *node, struct pw_properties *properties)
Complete initialization of the node and register.
Definition: impl-node.c:650
pw_resource_add_listener
void pw_resource_add_listener(struct pw_resource *resource, struct spa_hook *listener, const struct pw_resource_events *events, void *data)
Add an event listener.
Definition: resource.c:165
start
int(* start)(struct sm_media_session *sess)
Definition: media-session.c:2381
pw_impl_node_events
Node events, listen to them with pw_impl_node_add_listener.
Definition: impl-node.h:51
spa_handle
Definition: plugin.h:44
PW_KEY_DEVICE_DESCRIPTION
#define PW_KEY_DEVICE_DESCRIPTION
localized human readable device one-line description.
Definition: src/pipewire/keys.h:219
buffer
Definition: filter.c:59
pw_properties_update_ignore
int pw_properties_update_ignore(struct pw_properties *props, const struct spa_dict *dict, const char *const ignore[])
Definition: properties.c:259
spa_param_info
information about a parameter
Definition: param.h:64
object_data::object
void * object
Definition: impl-device.c:87
spa_list_init
void spa_list_init(struct spa_list *list)
Definition: list.h:44
impl::pending_list
struct spa_list pending_list
Definition: impl-device.c:41
spa_pod_builder_init
void spa_pod_builder_init(struct spa_pod_builder *builder, void *data, uint32_t size)
Definition: builder.h:96
PW_KEY_DEVICE_NICK
#define PW_KEY_DEVICE_NICK
a short device nickname
Definition: src/pipewire/keys.h:214
SPA_VERSION_DEVICE_EVENTS
#define SPA_VERSION_DEVICE_EVENTS
version of the structure
Definition: build-12775836/doc/spa/monitor/device.h:119
spa_dict
Definition: utils/dict.h:48
PW_VERSION_DEVICE_METHODS
#define PW_VERSION_DEVICE_METHODS
Definition: src/pipewire/device.h:101
SPA_RESULT_IS_ASYNC
#define SPA_RESULT_IS_ASYNC(res)
Definition: result.h:46
device.h
spa_device_object_info::type
const char * type
the object type managed by this device
Definition: build-12775836/doc/spa/monitor/device.h:85
pw_impl_node_set_active
int pw_impl_node_set_active(struct pw_impl_node *node, bool active)
Set a node active.
Definition: impl-node.c:2115
utils.h
pw_global_update_keys
int pw_global_update_keys(struct pw_global *global, const struct spa_dict *dict, const char *const keys[])
Update the global properties, must be done when unregistered.
Definition: global.c:209
pw_impl_client_set_busy
void pw_impl_client_set_busy(struct pw_impl_client *client, bool busy)
Mark the client busy.
Definition: impl-client.c:716
pw_impl_device_add_listener
void pw_impl_device_add_listener(struct pw_impl_device *device, struct spa_hook *listener, const struct pw_impl_device_events *events, void *data)
Add an event listener.
Definition: impl-device.c:923
result_device_params_data::cache
unsigned int cache
Definition: impl-device.c:58
pw_device_info
The device information.
Definition: src/pipewire/device.h:43
impl::cache_params
unsigned int cache_params
Definition: impl-device.c:43
pw_context_load_spa_handle
struct spa_handle * pw_context_load_spa_handle(struct pw_context *context, const char *factory_name, const struct spa_dict *info)
Definition: context.c:1340
object_data::handle
struct spa_handle * handle
Definition: impl-device.c:86
spa_strerror
#define spa_strerror(err)
Definition: result.h:51
device::id
uint32_t id
Definition: alsa-monitor.c:85
resource_data::end
int end
Definition: impl-device.c:74
pw_resource_new
struct pw_resource * pw_resource_new(struct pw_impl_client *client, uint32_t id, uint32_t permissions, const char *type, uint32_t version, size_t user_data_size)
Make a new resource for client.
Definition: resource.c:43
spa_device_set_param
#define spa_device_set_param(d,...)
Definition: build-12775836/doc/spa/monitor/device.h:256
param
Definition: filter.c:80
pw_context_create_device
struct pw_impl_device * pw_context_create_device(struct pw_context *context, struct pw_properties *properties, size_t user_data_size)
Definition: impl-device.c:141
spa_device_info::n_params
uint32_t n_params
number of elements in params
Definition: build-12775836/doc/spa/monitor/device.h:71
device::name
char * name
Definition: default-profile.c:105
pw_log_debug
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
result_device_params_data::data
void * data
Definition: impl-device.c:52
client
Definition: module-protocol-native.c:103
spa_handle_get_interface
#define spa_handle_get_interface(h,...)
Definition: plugin.h:73
pw_impl_device_destroy
void pw_impl_device_destroy(struct pw_impl_device *device)
Definition: impl-device.c:194
pw_global_destroy
void pw_global_destroy(struct pw_global *global)
Destroy a global.
Definition: global.c:369
pw_impl_node_get_user_data
void * pw_impl_node_get_user_data(struct pw_impl_node *node)
Get node user_data.
Definition: impl-node.c:1237
resource_data::n_subscribe_ids
uint32_t n_subscribe_ids
Definition: impl-device.c:69
SPA_MIN
#define SPA_MIN(a, b)
Definition: defs.h:123
spa_device_info
Information about the device and parameters it supports.
Definition: build-12775836/doc/spa/monitor/device.h:60
PW_VERSION_GLOBAL_EVENTS
#define PW_VERSION_GLOBAL_EVENTS
Definition: global.h:69
SPA_ID_INVALID
#define SPA_ID_INVALID
Definition: defs.h:182
pw_unload_spa_handle
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:321
spa_param_info::user
uint32_t user
private user field.
Definition: param.h:72
PW_KEY_MEDIA_CLASS
#define PW_KEY_MEDIA_CLASS
class Ex: "Video/Source"
Definition: src/pipewire/keys.h:285
PW_KEY_CLIENT_ID
#define PW_KEY_CLIENT_ID
Client properties.
Definition: src/pipewire/keys.h:131
resource_data::data
struct result_device_params_data data
Definition: impl-device.c:76
pw_context_create_node
struct pw_impl_node * pw_context_create_node(struct pw_context *context, struct pw_properties *properties, size_t user_data_size)
Create a new node.
Definition: impl-node.c:1112
spa_param_info::id
uint32_t id
enum spa_param_type
Definition: param.h:65
pw_impl_device_get_user_data
void * pw_impl_device_get_user_data(struct pw_impl_device *device)
Definition: impl-device.c:911
result_device_params_data::count
uint32_t count
Definition: impl-device.c:57
pw_log_warn
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
device::device
struct spa_device * device
Definition: alsa-monitor.c:101
context.h
impl::this
struct pw_control this
Definition: control.c:34
pw_properties_copy
struct pw_properties * pw_properties_copy(const struct pw_properties *properties)
Copy a properties object.
Definition: properties.c:222
SPA_RESULT_TYPE_DEVICE_PARAMS
#define SPA_RESULT_TYPE_DEVICE_PARAMS
the result of spa_device_enum_params()
Definition: build-12775836/doc/spa/monitor/device.h:98
spa_result_device_params::next
uint32_t next
Definition: build-12775836/doc/spa/monitor/device.h:102
spa_type_param
const struct spa_type_info spa_type_param[]
Definition: param/type-info.h:46
pw_impl_device_events::initialized
void(* initialized)(void *data)
the device is initialized
Definition: impl-device.h:65
spa_hook_remove
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:336
pw_resource_get_user_data
void * pw_resource_get_user_data(struct pw_resource *resource)
Get the user data for the resource, the size was given in pw_resource_new.
Definition: resource.c:159
result_device_params_data
Definition: impl-device.c:50
pw_impl_node_destroy
void pw_impl_node_destroy(struct pw_impl_node *node)
Destroy a node.
Definition: impl-node.c:1707
resource_data::resource
struct pw_resource * resource
Definition: impl-core.c:75
spa_hook_list_init
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list to the empty list.
Definition: hook.h:305
pw_impl_node_add_listener
void pw_impl_node_add_listener(struct pw_impl_node *node, struct spa_hook *listener, const struct pw_impl_node_events *events, void *data)
Add an event listener.
Definition: impl-node.c:1692
properties.h
OBJECT_NODE
#define OBJECT_NODE
Definition: impl-device.c:83
spa_result_device_params::id
uint32_t id
Definition: build-12775836/doc/spa/monitor/device.h:100
spa_device_add_listener
#define spa_device_add_listener(d,...)
Definition: build-12775836/doc/spa/monitor/device.h:253
resource_data::listener
struct spa_hook listener
Definition: impl-device.c:77
device::props
struct pw_properties * props
Definition: alsa-monitor.c:98
device::link
struct spa_list link
Definition: alsa-monitor.c:84
pw_properties_new
struct pw_properties * pw_properties_new(const char *key,...) 1
Make a new properties object.
Definition: properties.c:98
pw_impl_device_events
Device events, listen to them with pw_impl_device_add_listener.
Definition: impl-device.h:56
pw_resource_events
Resource events.
Definition: resource.h:60
pw_properties_setf
int pw_properties_setf(struct pw_properties *properties, const char *key, const char *format,...) 1(3
spa_device_events
spa_device_events:
Definition: build-12775836/doc/spa/monitor/device.h:117
PW_DEVICE_CHANGE_MASK_PROPS
#define PW_DEVICE_CHANGE_MASK_PROPS
Definition: src/pipewire/device.h:45
spa_pod_builder
Definition: builder.h:63
spa_result_device_params::index
uint32_t index
Definition: build-12775836/doc/spa/monitor/device.h:101
spa_device_object_info::change_mask
uint64_t change_mask
Definition: build-12775836/doc/spa/monitor/device.h:90
spa_device_object_info
Information about a device object.
Definition: build-12775836/doc/spa/monitor/device.h:81
object_data::link
struct spa_list link
Definition: impl-device.c:81
PW_DEVICE_CHANGE_MASK_PARAMS
#define PW_DEVICE_CHANGE_MASK_PARAMS
Definition: src/pipewire/device.h:46
pw_properties
Definition: properties.h:49
spa_hook_list_clean
void spa_hook_list_clean(struct spa_hook_list *list)
Remove all hooks from the list.
Definition: hook.h:344
pw_properties_free
void pw_properties_free(struct pw_properties *properties)
Free a properties object.
Definition: properties.c:364
spa_device_info::params
struct spa_param_info * params
supported parameters
Definition: build-12775836/doc/spa/monitor/device.h:70
pw_log_error
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
spa_debug_type_find_name
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68
spa_list_append
#define spa_list_append(list, item)
Definition: list.h:81