PipeWire
0.2.7
|
Represents an object on the client side. More...
Public Member Functions | |
SPA_EXPORT struct pw_proxy * | pw_proxy_new (struct pw_proxy *factory, uint32_t type, size_t user_data_size) |
Create a proxy object with a given id and type. More... | |
SPA_EXPORT void | pw_proxy_destroy (struct pw_proxy *proxy) |
Destroy a proxy object. More... | |
Represents an object on the client side.
A pw_proxy acts as a client side proxy to an object existing in a remote pipewire instance. The proxy is responsible for converting interface functions invoked by the client to PipeWire messages. Events will call the handlers set in listener.
See Proxy
SPA_EXPORT void pw_proxy_destroy | ( | struct pw_proxy * | proxy | ) |
Destroy a proxy object.
proxy | Proxy object to destroy |
References pw_log::pw_log_debug(), and pw_map::pw_map_insert_at().
Referenced by pw_remote_disconnect(), and pw_stream_disconnect().
SPA_EXPORT struct pw_proxy * pw_proxy_new | ( | struct pw_proxy * | factory, |
uint32_t | type, | ||
size_t | user_data_size | ||
) |
Create a proxy object with a given id and type.
factory | another proxy object that serves as a factory |
type | Type of the proxy object |
user_data_size | size of user_data |
This function creates a new proxy object with the supplied id and type. The proxy object will have an id assigned from the client id space.
References pw_log::pw_log_debug(), pw_map::pw_map_insert_new(), and pw_protocol_get_marshal().