25#ifndef PIPEWIRE_IMPL_LINK_H
26#define PIPEWIRE_IMPL_LINK_H
48#define PW_VERSION_IMPL_LINK_EVENTS 0
81 size_t user_data_size );
int pw_impl_link_register(struct pw_impl_link *link, struct pw_properties *properties)
Finish link configuration and register.
Definition: impl-link.c:1342
struct pw_impl_port * pw_impl_link_get_output(struct pw_impl_link *link)
Get the output port of the link.
Definition: impl-link.c:1499
void pw_impl_link_add_listener(struct pw_impl_link *link, struct spa_hook *listener, const struct pw_impl_link_events *events, void *data)
Add an event listener to link.
Definition: impl-link.c:1454
void pw_impl_link_destroy(struct pw_impl_link *link)
Destroy a link.
Definition: impl-link.c:1411
const struct pw_link_info * pw_impl_link_get_info(struct pw_impl_link *link)
Get the link info.
Definition: impl-link.c:1487
struct pw_impl_link * pw_context_create_link(struct pw_context *context, struct pw_impl_port *output, struct pw_impl_port *input, struct spa_pod *format_filter, struct pw_properties *properties, size_t user_data_size)
Make a new link between two ports.
Definition: impl-link.c:1165
struct pw_global * pw_impl_link_get_global(struct pw_impl_link *link)
Get the global of the link.
Definition: impl-link.c:1493
struct pw_impl_link * pw_impl_link_find(struct pw_impl_port *output, struct pw_impl_port *input)
Find the link between 2 ports.
Definition: impl-link.c:1463
struct pw_impl_port * pw_impl_link_get_input(struct pw_impl_link *link)
Get the input port of the link.
Definition: impl-link.c:1505
void * pw_impl_link_get_user_data(struct pw_impl_link *link)
Get the user_data of a link, the size of the memory is given when constructing the link.
Definition: impl-link.c:1481
struct pw_context * pw_impl_link_get_context(struct pw_impl_link *link)
Get the context of a link.
Definition: impl-link.c:1475
pw_link_state
The different link states.
Definition: link.h:65
link events added with pw_impl_link_add_listener
Definition: impl-link.h:53
void(* state_changed)(void *data, enum pw_link_state old, enum pw_link_state state, const char *error)
The link state changed, error is only valid when the state is in error.
Definition: impl-link.h:72
uint32_t version
Definition: impl-link.h:56
void(* info_changed)(void *data, const struct pw_link_info *info)
The info changed on a link.
Definition: impl-link.h:68
void(* free)(void *data)
A link is freed.
Definition: impl-link.h:62
void(* destroy)(void *data)
A link is destroyed.
Definition: impl-link.h:59
void(* port_unlinked)(void *data, struct pw_impl_port *port)
A port is unlinked.
Definition: impl-link.h:76
void(* initialized)(void *data)
a Link is initialized
Definition: impl-link.h:65
The link information.
Definition: link.h:78
enum pw_link_state state
the current state of the link
Definition: link.h:93
const char * error
an error reason if state is error
Definition: link.h:94
Definition: properties.h:53
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:351