25 #ifndef PIPEWIRE_IMPL_DEVICE_H 26 #define PIPEWIRE_IMPL_DEVICE_H 46 struct pw_impl_device;
57 #define PW_VERSION_IMPL_DEVICE_EVENTS 0 73 size_t user_data_size);
101 int seq, uint32_t param_id,
102 uint32_t index, uint32_t max,
104 int (*callback) (
void *
data,
int seq,
105 uint32_t
id, uint32_t index, uint32_t next,
Definition: properties.h:49
int pw_impl_device_register(struct pw_impl_device *device, struct pw_properties *properties)
Definition: impl-device.c:554
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:76
int pw_impl_device_update_properties(struct pw_impl_device *device, const struct spa_dict *dict)
Definition: impl-device.c:901
void(* free)(void *data)
the device is freed
Definition: impl-device.h:63
void(* destroy)(void *data)
the device is destroyed
Definition: impl-device.h:61
struct spa_device * pw_impl_device_get_implementation(struct pw_impl_device *device)
Get the device implementation.
Definition: impl-device.c:889
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
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:921
static uint32_t int seq
Definition: core.h:328
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
Definition: utils/dict.h:48
Device events, listen to them with pw_impl_device_add_listener.
Definition: impl-device.h:56
The device information.
Definition: src/pipewire/device.h:43
void(* initialized)(void *data)
the device is initialized
Definition: impl-device.h:65
struct pw_global * pw_impl_device_get_global(struct pw_impl_device *device)
Get the global of this device.
Definition: impl-device.c:915
uint32_t version
Definition: impl-device.h:58
int pw_impl_device_set_implementation(struct pw_impl_device *device, struct spa_device *spa_device)
Set the device implementation.
Definition: impl-device.c:872
void pw_impl_device_destroy(struct pw_impl_device *device)
Definition: impl-device.c:194
Definition: x86_64-redhat-linux-gnu/doc/spa/monitor/device.h:53
void * pw_impl_device_get_user_data(struct pw_impl_device *device)
Definition: impl-device.c:909
void(* info_changed)(void *data, const struct pw_device_info *info)
the device info changed
Definition: impl-device.h:68
const struct pw_properties * pw_impl_device_get_properties(struct pw_impl_device *device)
Definition: impl-device.c:895