Go to the documentation of this file.
25 #ifndef PIPEWIRE_IMPL_PORT_H
26 #define PIPEWIRE_IMPL_PORT_H
59 #define PW_VERSION_IMPL_PORT_EVENTS 2
104 size_t user_data_size);
@ SPA_MEDIA_SUBTYPE_dsp
Definition: param/format.h:54
@ PW_IMPL_PORT_STATE_INIT
the port is being created
Definition: impl-port.h:51
#define PW_KEY_PORT_EXTRA
api specific extra port info, API name should be prefixed.
Definition: src/pipewire/keys.h:193
#define PW_KEY_FORMAT_DSP
format related properties
Definition: src/pipewire/keys.h:302
#define PW_DIRECTION_INPUT
Definition: port.h:57
int int const char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:487
Definition: module-filter-chain.c:176
uint32_t max_rate
Definition: latency-utils.h:42
#define spa_node_remove_port(n,...)
Definition: build-12775836/doc/spa/node/node.h:656
pw_impl_port_state
Definition: impl-port.h:49
int32_t status
the status code
Definition: io.h:99
int(* callback)(void *data, int seq, uint32_t id, uint32_t index, uint32_t next, struct spa_pod *param)
Definition: impl-port.c:1126
uint32_t pw_impl_port_get_id(struct pw_impl_port *port)
Get the port id.
Definition: impl-port.c:659
enum spa_direction direction
Definition: latency-utils.h:38
uint32_t next
next index of iteration
Definition: build-12775836/doc/spa/node/node.h:140
uint32_t subscribe_ids[MAX_PARAMS]
Definition: impl-device.c:68
#define PW_KEY_NODE_ID
Node keys.
Definition: src/pipewire/keys.h:137
#define SPA_PORT_CHANGE_MASK_PARAMS
Definition: build-12775836/doc/spa/node/node.h:98
#define SPA_PARAM_INFO_WRITE
Definition: param.h:69
int spa_latency_info_combine(struct spa_latency_info *info, const struct spa_latency_info *other)
Definition: latency-utils.h:63
@ SPA_PARAM_IO_size
size of the io area (Int)
Definition: param.h:101
#define SPA_POD_Int(val)
Definition: vararg.h:59
#define SPA_STATUS_NEED_DATA
Definition: io.h:95
#define spa_zero(x)
Definition: defs.h:303
struct spa_param_info params[N_PORT_PARAMS]
Definition: filter.c:110
void pw_impl_link_destroy(struct pw_impl_link *link)
Destroy a link.
Definition: impl-link.c:1307
Port methods.
Definition: port.h:118
#define NAME
Definition: impl-port.c:41
#define PW_KEY_OBJECT_ID
a global object id
Definition: src/pipewire/keys.h:66
struct spa_port_info info
Definition: filter.c:101
#define SPA_PORT_CHANGE_MASK_PROPS
Definition: build-12775836/doc/spa/node/node.h:97
struct impl * impl
Definition: impl-port.c:1124
int pw_impl_port_set_param(struct pw_impl_port *port, uint32_t id, uint32_t flags, const struct spa_pod *param)
Definition: impl-port.c:1365
int pw_global_register(struct pw_global *global)
Register a global object to the context registry.
Definition: global.c:125
uint64_t max_ns
Definition: latency-utils.h:44
#define PW_KEY_PORT_NAME
port name
Definition: src/pipewire/keys.h:184
#define spa_node_port_enum_params(n,...)
Definition: build-12775836/doc/spa/node/node.h:657
void(* control_removed)(void *data, struct pw_control *control)
a control was removed from the port
Definition: impl-port.h:88
Definition: latency-utils.h:37
#define SPA_DICT_ITEM_INIT(key, value)
Definition: utils/dict.h:46
Definition: impl-core.c:74
int seq
Definition: impl-device.c:72
int spa_latency_info_compare(const struct spa_latency_info *a, struct spa_latency_info *b)
Definition: latency-utils.h:50
int spa_latency_parse(const struct spa_pod *latency, struct spa_latency_info *info)
Definition: latency-utils.h:83
uint32_t n_params
number of items in params
Definition: build-12775836/doc/spa/node/node.h:123
@ SPA_PARAM_Latency
latency reporting, a SPA_TYPE_OBJECT_ParamLatency
Definition: param.h:59
user data to add to an object
Definition: filter.c:75
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
int pw_global_add_resource(struct pw_global *global, struct pw_resource *resource)
Add a resource to a global.
Definition: global.c:230
#define SPA_DICT_INIT_ARRAY(items)
Definition: utils/dict.h:56
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
#define PW_KEY_OBJECT_PATH
object properties
Definition: src/pipewire/keys.h:65
struct spa_hook resource_listener
Definition: impl-core.c:76
#define spa_list_for_each(pos, head, member)
Definition: list.h:111
#define PW_BUFFERS_FLAG_DYNAMIC
buffers have dynamic data
Definition: buffers.h:40
struct spa_list param_list
Definition: impl-device.c:40
uint32_t version
Definition: impl-port.h:60
struct spa_io_buffers * io
Definition: filter.c:112
struct pw_impl_port * pw_context_create_port(struct pw_context *context, enum pw_direction direction, uint32_t port_id, const struct spa_port_info *info, size_t user_data_size)
Create a new port.
Definition: impl-port.c:443
Port events, use pw_impl_port_add_listener.
Definition: impl-port.h:58
uint64_t flags
port flags
Definition: build-12775836/doc/spa/node/node.h:119
uint32_t min_rate
Definition: latency-utils.h:41
#define SPA_EXPORT
Definition: defs.h:208
@ SPA_DIRECTION_INPUT
Definition: defs.h:79
Global events, use pw_global_add_listener.
Definition: global.h:68
#define pw_log_trace(...)
Definition: src/pipewire/log.h:90
const struct pw_port_info * pw_impl_port_get_info(struct pw_impl_port *port)
Get the port info.
Definition: impl-port.c:700
float max_quantum
Definition: latency-utils.h:40
uint32_t id
id of parameter
Definition: build-12775836/doc/spa/node/node.h:138
int pw_impl_port_recalc_latency(struct pw_impl_port *port)
Definition: impl-port.c:1301
#define SPA_PORT_FLAG_PHYSICAL
connects to some device
Definition: build-12775836/doc/spa/node/node.h:112
struct pw_control * pw_control_new(struct pw_context *context, struct pw_impl_port *port, uint32_t id, uint32_t size, size_t user_data_size)
Definition: control.c:40
int pw_impl_port_for_each_param(struct pw_impl_port *port, 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-port.c:1157
void(* control_added)(void *data, struct pw_control *control)
a control was added to the port
Definition: impl-port.h:85
#define PW_KEY_PORT_CONTROL
if this port is a control port
Definition: src/pipewire/keys.h:190
Definition: module-filter-chain.c:155
int pw_impl_port_register(struct pw_impl_port *port, struct pw_properties *properties)
Definition: impl-port.c:877
uint32_t index
index of parameter
Definition: build-12775836/doc/spa/node/node.h:139
#define PW_PORT_CHANGE_MASK_ALL
Definition: port.h:68
int spa_node_port_enum_params_sync(struct spa_node *node, enum spa_direction direction, uint32_t port_id, uint32_t id, uint32_t *index, const struct spa_pod *filter, struct spa_pod **param, struct spa_pod_builder *builder)
Definition: build-12775836/doc/spa/node/utils.h:92
int pw_buffers_negotiate(struct pw_context *context, uint32_t flags, struct spa_node *outnode, uint32_t out_port_id, struct spa_node *innode, uint32_t in_port_id, struct pw_buffers *result)
Definition: buffers.c:238
int pw_impl_port_use_buffers(struct pw_impl_port *port, struct pw_impl_port_mix *mix, uint32_t flags, struct spa_buffer **buffers, uint32_t n_buffers)
Definition: impl-port.c:1485
#define SPA_PARAM_INFO_READ
Definition: param.h:68
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_PARAM_IO_id
type ID, uniquely identifies the io area (Id enum spa_io_type)
Definition: param.h:100
@ SPA_MEDIA_TYPE_audio
Definition: param/format.h:42
#define SPA_NAME_CONTROL_MIXER
mixes control streams
Definition: names.h:51
int pw_impl_port_set_mix(struct pw_impl_port *port, struct spa_node *node, uint32_t flags)
Definition: impl-port.c:539
int pw_impl_port_for_each_filtered_param(struct pw_impl_port *in_port, struct pw_impl_port *out_port, int seq, uint32_t in_param_id, uint32_t out_param_id, 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-port.c:1259
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:159
struct spa_node * node
Definition: buffers.c:45
@ SPA_IO_Control
area for control messages, struct spa_io_sequence
Definition: io.h:57
@ PW_IMPL_PORT_STATE_ERROR
the port is in error
Definition: impl-port.h:50
#define spa_node_port_set_param(n,...)
Definition: build-12775836/doc/spa/node/node.h:658
#define SPA_VERSION_NODE_EVENTS
Definition: build-12775836/doc/spa/node/node.h:157
Definition: pipewire.c:68
#define PW_KEY_PORT_MONITOR
if this port is a monitor port
Definition: src/pipewire/keys.h:191
uint32_t id
Definition: module-echo-cancel.c:139
struct pw_properties * pw_properties_new_dict(const struct spa_dict *dict)
Make a new properties object from the given dictionary.
Definition: properties.c:126
struct pw_impl_node * pw_impl_port_get_node(struct pw_impl_port *port)
Get the port parent node or NULL when not yet set.
Definition: impl-port.c:685
#define SPA_INTERFACE_INIT(_type, _version, _funcs, _data)
Initialize a spa_interface.
Definition: hook.h:165
void * pw_impl_port_get_user_data(struct pw_impl_port *port)
Definition: impl-port.c:706
#define SPA_LATENCY_INFO(dir,...)
Definition: latency-utils.h:47
Definition: build-12775836/doc/spa/support/loop.h:44
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
struct spa_latency_info latency[2]
Definition: filter.c:120
#define SPA_VERSION_NODE
Definition: build-12775836/doc/spa/node/node.h:52
Definition: utils/dict.h:41
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
#define SPA_CONTAINER_OF(p, t, m)
Definition: defs.h:170
uint64_t min_ns
Definition: latency-utils.h:43
@ SPA_PARAM_Format
configured format as SPA_TYPE_OBJECT_Format
Definition: param.h:48
uint32_t flags
Definition: param.h:71
#define spa_list_consume(pos, head, member)
Definition: list.h:96
uint32_t n_params
Definition: impl-port.c:1249
#define SPA_TYPE_INTERFACE_Node
Definition: build-12775836/doc/spa/node/node.h:50
@ SPA_AUDIO_FORMAT_DSP_F32
Definition: audio/raw.h:100
struct spa_list link
Definition: filter.c:89
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:729
IO area to exchange buffers.
Definition: io.h:93
struct pw_port * port
Definition: filter.c:96
const struct pw_properties * pw_impl_port_get_properties(struct pw_impl_port *port)
Get the port properties.
Definition: impl-port.c:665
#define spa_node_add_port(n,...)
Definition: build-12775836/doc/spa/node/node.h:655
#define SPA_PORT_FLAG_TERMINAL
data was not created from this port or will not be made available on another port
Definition: build-12775836/doc/spa/node/node.h:113
@ SPA_IO_Buffers
area to exchange buffers, struct spa_io_buffers
Definition: io.h:53
#define SPA_VERSION_NODE_METHODS
Definition: build-12775836/doc/spa/node/node.h:284
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
#define spa_node_port_set_io(n,...)
Definition: build-12775836/doc/spa/node/node.h:660
@ SPA_MEDIA_TYPE_application
Definition: param/format.h:47
struct spa_pod * param
the result param
Definition: build-12775836/doc/spa/node/node.h:141
#define PW_DIRECTION_OUTPUT
Definition: port.h:58
Node methods.
Definition: build-12775836/doc/spa/node/node.h:281
#define PW_PORT_CHANGE_MASK_PROPS
Definition: port.h:66
#define spa_node_port_use_buffers(n,...)
Definition: build-12775836/doc/spa/node/node.h:659
void spa_list_remove(struct spa_list *elem)
Definition: list.h:69
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
int spa_format_audio_dsp_parse(const struct spa_pod *format, struct spa_audio_info_dsp *info)
Definition: audio/format-utils.h:62
#define SPA_N_ELEMENTS(arr)
Definition: defs.h:109
#define SPA_FLAG_SET(field, flag)
Definition: defs.h:74
struct spa_hook object_listener
Definition: impl-core.c:77
#define SPA_RESULT_IS_OK(res)
Definition: result.h:44
#define SPA_DIRECTION_REVERSE(d)
Definition: defs.h:83
#define SPA_STATUS_HAVE_DATA
Definition: io.h:96
A Buffer.
Definition: buffer/buffer.h:93
void pw_control_destroy(struct pw_control *control)
Definition: control.c:94
@ SPA_TYPE_OBJECT_ParamIO
Definition: build-12775836/doc/spa/utils/type.h:93
struct spa_pod * spa_latency_build(struct spa_pod_builder *builder, uint32_t id, const struct spa_latency_info *info)
Definition: latency-utils.h:102
Definition: build-12775836/doc/spa/node/node.h:53
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:295
int pw_impl_port_is_linked(struct pw_impl_port *port)
check is a port has links, return 0 if not, 1 if it is linked
Definition: impl-port.c:1359
void pw_resource_errorf(struct pw_resource *resource, int res, const char *error,...) 1(3
#define PW_VERSION_RESOURCE_EVENTS
Definition: resource.h:61
the result of enum_params or port_enum_params.
Definition: build-12775836/doc/spa/node/node.h:137
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
#define SPA_RESULT_TYPE_NODE_PARAMS
Definition: build-12775836/doc/spa/node/node.h:129
#define SPA_PORT_CHANGE_MASK_FLAGS
Definition: build-12775836/doc/spa/node/node.h:95
void * data
Definition: impl-port.c:1248
enum spa_audio_format format
Definition: audio/raw.h:305
uint64_t change_mask
Definition: build-12775836/doc/spa/node/node.h:99
@ SPA_LOG_LEVEL_DEBUG
Definition: build-12775836/doc/spa/support/log.h:51
#define SPA_FLAG_IS_SET(field, flag)
Definition: defs.h:73
#define spa_node_port_reuse_buffer(n,...)
Definition: build-12775836/doc/spa/node/node.h:662
int pw_properties_update_ignore(struct pw_properties *props, const struct spa_dict *dict, const char *const ignore[])
Definition: properties.c:259
information about a parameter
Definition: param.h:64
void spa_list_init(struct spa_list *list)
Definition: list.h:44
struct spa_node * node
Definition: alsa-monitor.c:76
#define spa_list_for_each_safe(pos, tmp, head, member)
Definition: list.h:129
struct spa_list pending_list
Definition: impl-device.c:41
void spa_pod_builder_init(struct spa_pod_builder *builder, void *data, uint32_t size)
Definition: builder.h:96
#define PW_VERSION_PORT
Definition: port.h:52
uint32_t out_param_id
Definition: impl-port.c:1245
Definition: utils/dict.h:48
int seq
Definition: impl-port.c:1243
@ SPA_IO_Notify
area for notify messages, struct spa_io_sequence
Definition: io.h:58
int pw_impl_port_add(struct pw_impl_port *port, struct pw_impl_node *node)
Add a port to a node.
Definition: impl-port.c:926
Port information structure.
Definition: build-12775836/doc/spa/node/node.h:94
Definition: impl-port.c:1240
#define SPA_RESULT_IS_ASYNC(res)
Definition: result.h:46
@ SPA_DIRECTION_OUTPUT
Definition: defs.h:80
uint32_t in_param_id
Definition: impl-port.c:1244
int pw_impl_port_init_mix(struct pw_impl_port *port, struct pw_impl_port_mix *mix)
Definition: impl-port.c:207
void(* link_removed)(void *data, struct pw_impl_link *link)
a link is removed from this port
Definition: impl-port.h:78
Definition: audio/raw.h:304
#define SPA_NAME_AUDIO_MIXER_DSP
mixes mono audio with fixed input and output buffer sizes.
Definition: names.h:57
int(* callback)(void *data, int seq, uint32_t id, uint32_t index, uint32_t next, struct spa_pod *param)
Definition: impl-port.c:1246
void(* param_changed)(void *data, uint32_t id)
a parameter changed, since version 1
Definition: impl-port.h:91
void(* destroy)(void *data)
The port is destroyed.
Definition: impl-port.h:63
void pw_impl_port_add_listener(struct pw_impl_port *port, struct spa_hook *listener, const struct pw_impl_port_events *events, void *data)
Add an event listener on the port.
Definition: impl-port.c:691
uint32_t port_id
Definition: buffers.c:47
void pw_buffers_clear(struct pw_buffers *buffers)
Definition: buffers.c:356
@ SPA_LOG_LEVEL_ERROR
Definition: build-12775836/doc/spa/support/log.h:48
void(* latency_changed)(void *data)
latency changed.
Definition: impl-port.h:94
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
uint32_t flags
Definition: filter.c:95
#define spa_pod_parse_object(pod, type, id,...)
Definition: parser.h:560
unsigned int cache_params
Definition: impl-device.c:43
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
struct spa_param_info * params
parameter information
Definition: build-12775836/doc/spa/node/node.h:122
#define spa_strerror(err)
Definition: result.h:51
void pw_impl_port_destroy(struct pw_impl_port *port)
Definition: impl-port.c:1079
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
void pw_impl_port_update_state(struct pw_impl_port *port, enum pw_impl_port_state state, int res, char *error)
Definition: impl-port.c:106
@ PW_IMPL_PORT_STATE_CONFIGURE
the port is ready for format negotiation
Definition: impl-port.h:52
#define PW_NODE_CHANGE_MASK_OUTPUT_PORTS
Definition: src/pipewire/node.h:75
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
int spa_format_parse(const struct spa_pod *format, uint32_t *media_type, uint32_t *media_subtype)
Definition: format-utils.h:42
struct pw_impl_port * in_port
Definition: impl-port.c:1241
Definition: module-protocol-native.c:103
uint32_t count
Definition: impl-port.c:1130
const struct spa_type_info spa_type_io[]
Definition: node/type-info.h:46
#define PW_KEY_PORT_TERMINAL
if this port consumes the data
Definition: src/pipewire/keys.h:189
#define spa_handle_get_interface(h,...)
Definition: plugin.h:73
#define pw_log(lev,...)
Definition: src/pipewire/log.h:80
enum pw_direction pw_impl_port_get_direction(struct pw_impl_port *port)
Get the port direction.
Definition: impl-port.c:653
void pw_global_destroy(struct pw_global *global)
Destroy a global.
Definition: global.c:369
uint8_t user_data[0]
Definition: filter.c:123
struct pw_impl_port * out_port
Definition: impl-port.c:1242
uint32_t n_subscribe_ids
Definition: impl-device.c:69
#define SPA_MIN(a, b)
Definition: defs.h:123
#define PW_VERSION_GLOBAL_EVENTS
Definition: global.h:69
#define SPA_ID_INVALID
Definition: defs.h:182
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:321
uint32_t user
private user field.
Definition: param.h:72
int pw_properties_set(struct pw_properties *properties, const char *key, const char *value)
Set a property value.
Definition: properties.c:435
#define spa_list_is_empty(l)
Definition: list.h:49
@ SPA_MEDIA_SUBTYPE_control
control stream, data contains spa_pod_sequence with control info.
Definition: param/format.h:94
struct result_device_params_data data
Definition: impl-device.c:76
@ SPA_PARAM_IO
configurable IO areas as SPA_TYPE_OBJECT_ParamIO
Definition: param.h:51
uint32_t type
Definition: pod/pod.h:52
#define PW_KEY_PORT_PHYSICAL
if this is a physical port
Definition: src/pipewire/keys.h:188
#define PW_PORT_CHANGE_MASK_PARAMS
Definition: port.h:67
uint32_t id
enum spa_param_type
Definition: param.h:65
const struct spa_type_info spa_type_media_subtype[]
Definition: param/type-info.h:194
#define PW_NODE_CHANGE_MASK_INPUT_PORTS
Definition: src/pipewire/node.h:74
void pw_resource_error(struct pw_resource *resource, int res, const char *error)
Generate an error for a resource.
Definition: resource.c:255
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
void(* info_changed)(void *data, const struct pw_port_info *info)
the port info changed
Definition: impl-port.h:72
void(* link_added)(void *data, struct pw_impl_link *link)
a new link is added on this port
Definition: impl-port.h:75
int pw_impl_port_release_mix(struct pw_impl_port *port, struct pw_impl_port_mix *mix)
Definition: impl-port.c:252
const struct spa_type_info spa_type_media_type[]
Definition: param/type-info.h:180
int pw_impl_port_for_each_link(struct pw_impl_port *port, int(*callback)(void *data, struct pw_impl_link *link), void *data)
Definition: impl-port.c:1282
void * data
Definition: impl-port.c:1125
struct pw_control this
Definition: control.c:34
A map.
Definition: map.h:55
#define pw_loop_invoke(l,...)
Definition: src/pipewire/loop.h:63
void(* initialized)(void *data)
The port is initialized.
Definition: impl-port.h:69
const struct spa_type_info spa_type_param[]
Definition: param/type-info.h:46
void spa_hook_remove(struct spa_hook *hook)
Remove a hook.
Definition: hook.h:336
#define PW_VERSION_PORT_METHODS
Definition: port.h:119
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
#define spa_node_add_listener(n,...)
Definition: build-12775836/doc/spa/node/node.h:648
unsigned long p
Definition: module-filter-chain.c:145
uint32_t buffer_id
a buffer id
Definition: io.h:100
events from the spa_node.
Definition: build-12775836/doc/spa/node/node.h:156
@ PW_IMPL_PORT_STATE_PAUSED
the port is paused
Definition: impl-port.h:54
void(* free)(void *data)
The port is freed.
Definition: impl-port.h:66
#define PW_KEY_PORT_ID
Port keys.
Definition: src/pipewire/keys.h:183
#define pw_log_trace_fp(...)
Definition: src/pipewire/log.h:93
#define PW_KEY_PORT_DIRECTION
the port direction, one of "in" or "out" or "control" and "notify" for control ports
Definition: src/pipewire/keys.h:185
struct pw_resource * resource
Definition: impl-core.c:75
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list to the empty list.
Definition: hook.h:305
int seq
Definition: impl-port.c:1129
#define SPA_NODE_BUFFERS_FLAG_ALLOC
flags to pass to the use_buffers functions
Definition: build-12775836/doc/spa/node/node.h:256
const char * pw_direction_as_string(enum pw_direction direction)
Convert a pw_direction to a readable string.
Definition: introspect.c:52
void(* state_changed)(void *data, enum pw_impl_port_state old, enum pw_impl_port_state state, const char *error)
the state of the port changed
Definition: impl-port.h:81
#define SPA_IO_BUFFERS_INIT
Definition: io.h:103
void pw_impl_port_unlink(struct pw_impl_port *port)
Definition: impl-port.c:1027
#define SPA_POD_Id(val)
Definition: vararg.h:56
void pw_impl_port_update_info(struct pw_impl_port *port, const struct spa_port_info *info)
Definition: impl-port.c:678
#define SPA_UNLIKELY(x)
Definition: defs.h:235
struct pw_properties * pw_properties_new(const char *key,...) 1
Make a new properties object.
Definition: properties.c:98
int pw_impl_port_update_properties(struct pw_impl_port *port, const struct spa_dict *dict)
Update the port properties.
Definition: impl-port.c:671
struct buffer buffers[MAX_BUFFERS]
Definition: filter.c:114
Resource events.
Definition: resource.h:60
int pw_properties_setf(struct pw_properties *properties, const char *key, const char *format,...) 1(3
enum spa_direction direction
Definition: buffers.c:46
const struct spa_dict * props
extra port properties
Definition: build-12775836/doc/spa/node/node.h:121
uint32_t version
Definition: resource.h:62
#define pw_direction
The direction of a port.
Definition: port.h:56
uint32_t n_buffers
Definition: filter.c:115
uint32_t id
Definition: filter.c:94
#define PW_KEY_PORT_ALIAS
port alias
Definition: src/pipewire/keys.h:187
Definition: impl-port.c:1123
unsigned int cache
Definition: impl-port.c:1131
#define PW_KEY_AUDIO_CHANNEL
audio related properties
Definition: src/pipewire/keys.h:305
Definition: properties.h:49
void spa_hook_list_clean(struct spa_hook_list *list)
Remove all hooks from the list.
Definition: hook.h:344
void pw_properties_free(struct pw_properties *properties)
Free a properties object.
Definition: properties.c:364
uint32_t id
Definition: alsa-monitor.c:72
#define PW_TYPE_INTERFACE_Port
Definition: port.h:50
#define SPA_KEY_LIBRARY_NAME
the name of a library.
Definition: plugin.h:216
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68
@ PW_IMPL_PORT_STATE_READY
the port is ready for buffer allocation
Definition: impl-port.h:53
#define spa_list_append(list, item)
Definition: list.h:81
float min_quantum
Definition: latency-utils.h:39