PipeWire
0.1.4
|
Go to the source code of this file.
Data Structures | |
struct | pw_remote_events |
Macros | |
#define | PW_VERSION_REMOTE_EVENTS 0 |
Enumerations | |
enum | pw_remote_state { PW_REMOTE_STATE_ERROR = -1, PW_REMOTE_STATE_UNCONNECTED = 0, PW_REMOTE_STATE_CONNECTING = 1, PW_REMOTE_STATE_CONNECTED = 2 } |
The state of a pw_remote. More... | |
Functions | |
struct pw_core * | pw_remote_get_core (struct pw_remote *remote) |
Get the core used to construct this remote. More... | |
enum pw_remote_state | pw_remote_get_state (struct pw_remote *remote, const char **error) |
Get the current state, error is set when state is PW_REMOTE_STATE_ERROR. More... | |
void | pw_remote_add_listener (struct pw_remote *remote, struct spa_hook *listener, const struct pw_remote_events *events, void *data) |
Add listener for events. More... | |
struct pw_core_proxy * | pw_remote_get_core_proxy (struct pw_remote *remote) |
Get the core proxy, can only be called when connected. More... | |
const struct pw_core_info * | pw_remote_get_core_info (struct pw_remote *remote) |
Get the remote core info, can only be called when connected. More... | |
struct pw_proxy * | pw_remote_get_proxy (struct pw_remote *remote, uint32_t id) |
void | pw_remote_update_state (struct pw_remote *remote, enum pw_remote_state state, const char *fmt,...) |
Update the state of the remote, mostly used by protocols. More... | |
struct pw_proxy * | pw_remote_export (struct pw_remote *remote, struct pw_node *node) |
run a local node in a remote graph More... | |
#define PW_VERSION_REMOTE_EVENTS 0 |
enum pw_remote_state |
The state of a pw_remote.
void pw_remote_add_listener | ( | struct pw_remote * | remote, |
struct spa_hook * | listener, | ||
const struct pw_remote_events * | events, | ||
void * | data | ||
) |
Add listener for events.
References pw_remote::listener_list.
run a local node in a remote graph
Get the core used to construct this remote.
References pw_remote::core.
const struct pw_core_info* pw_remote_get_core_info | ( | struct pw_remote * | remote | ) |
Get the remote core info, can only be called when connected.
References pw_remote::info.
struct pw_core_proxy* pw_remote_get_core_proxy | ( | struct pw_remote * | remote | ) |
Get the core proxy, can only be called when connected.
References pw_remote::core_proxy.
References pw_remote::objects.
enum pw_remote_state pw_remote_get_state | ( | struct pw_remote * | remote, |
const char ** | error | ||
) |
Get the current state, error is set when state is PW_REMOTE_STATE_ERROR.
References pw_remote::error, and pw_remote::state.
void pw_remote_update_state | ( | struct pw_remote * | remote, |
enum pw_remote_state | state, | ||
const char * | fmt, | ||
... | |||
) |
Update the state of the remote, mostly used by protocols.
References pw_remote::error, pw_remote::listener_list, pw_remote_state_as_string(), and pw_remote::state.
Referenced by pw_remote_connect(), pw_remote_connect_fd(), and pw_remote_disconnect().