mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Add some more useful functions
This commit is contained in:
parent
b0932e687f
commit
2474f9ae7d
4 changed files with 17 additions and 0 deletions
|
|
@ -72,6 +72,12 @@ struct pw_protocol *pw_protocol_new(struct pw_core *core,
|
|||
return protocol;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
struct pw_core *pw_protocol_get_core(struct pw_protocol *protocol)
|
||||
{
|
||||
return protocol->core;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
void *pw_protocol_get_user_data(struct pw_protocol *protocol)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -112,6 +112,8 @@ struct pw_protocol *pw_protocol_new(struct pw_core *core, const char *name, size
|
|||
|
||||
void pw_protocol_destroy(struct pw_protocol *protocol);
|
||||
|
||||
struct pw_core *pw_protocol_get_core(struct pw_protocol *protocol);
|
||||
|
||||
void *pw_protocol_get_user_data(struct pw_protocol *protocol);
|
||||
|
||||
const struct pw_protocol_implementaton *
|
||||
|
|
|
|||
|
|
@ -146,6 +146,12 @@ uint32_t pw_proxy_get_type(struct pw_proxy *proxy, uint32_t *version)
|
|||
return proxy->type;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
struct pw_remote *pw_proxy_get_remote(struct pw_proxy *proxy)
|
||||
{
|
||||
return proxy->remote;
|
||||
}
|
||||
|
||||
SPA_EXPORT
|
||||
struct pw_protocol *pw_proxy_get_protocol(struct pw_proxy *proxy)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -154,6 +154,9 @@ uint32_t pw_proxy_get_id(struct pw_proxy *proxy);
|
|||
/** Get the type and version of the proxy */
|
||||
uint32_t pw_proxy_get_type(struct pw_proxy *proxy, uint32_t *version);
|
||||
|
||||
/** Get the remote managing this proxy */
|
||||
struct pw_remote *pw_proxy_get_remote(struct pw_proxy *proxy);
|
||||
|
||||
/** Get the protocol used for the proxy */
|
||||
struct pw_protocol *pw_proxy_get_protocol(struct pw_proxy *proxy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue