PipeWire  0.2.7
global.c File Reference
Include dependency graph for global.c:

Functions

SPA_EXPORT uint32_t pw_global_get_permissions (struct pw_global *global, struct pw_client *client)
 Get the permissions of the global for a given client. More...
 
SPA_EXPORT struct pw_corepw_global_get_core (struct pw_global *global)
 Get the core object of this global. More...
 
SPA_EXPORT struct pw_clientpw_global_get_owner (struct pw_global *global)
 Get the owner of the global. More...
 
SPA_EXPORT struct pw_globalpw_global_get_parent (struct pw_global *global)
 Get the parent of a global. More...
 
SPA_EXPORT uint32_t pw_global_get_type (struct pw_global *global)
 Get the global type. More...
 
SPA_EXPORT uint32_t pw_global_get_version (struct pw_global *global)
 Get the global version. More...
 
SPA_EXPORT const struct pw_propertiespw_global_get_properties (struct pw_global *global)
 Get the global properties. More...
 
SPA_EXPORT void * pw_global_get_object (struct pw_global *global)
 Get the object associated with the global. More...
 
SPA_EXPORT uint32_t pw_global_get_id (struct pw_global *global)
 Get the unique id of the global. More...
 
SPA_EXPORT 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. More...
 

Function Documentation

◆ pw_global_add_listener()

SPA_EXPORT 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.

Referenced by pw_client_register(), pw_core::pw_core_new(), pw_factory_register(), pw_link_register(), and pw_port_register().

Here is the caller graph for this function:

◆ pw_global_get_core()

SPA_EXPORT struct pw_core* pw_global_get_core ( struct pw_global global)

Get the core object of this global.

◆ pw_global_get_id()

SPA_EXPORT uint32_t pw_global_get_id ( struct pw_global global)

Get the unique id of the global.

◆ pw_global_get_object()

SPA_EXPORT void* pw_global_get_object ( struct pw_global global)

Get the object associated with the global.

This depends on the type of the global

◆ pw_global_get_owner()

SPA_EXPORT struct pw_client* pw_global_get_owner ( struct pw_global global)

Get the owner of the global.

This can be NULL when the core is owner

◆ pw_global_get_parent()

SPA_EXPORT struct pw_global* pw_global_get_parent ( struct pw_global global)

Get the parent of a global.

◆ pw_global_get_permissions()

SPA_EXPORT uint32_t pw_global_get_permissions ( struct pw_global global,
struct pw_client client 
)

Get the permissions of the global for a given client.

References PW_PERM_RWX.

Referenced by pw_core_find_global(), pw_core::pw_core_find_port(), pw_core_for_each_global(), pw_global::pw_global_destroy(), and pw_global::pw_global_register().

Here is the caller graph for this function:

◆ pw_global_get_properties()

SPA_EXPORT const struct pw_properties* pw_global_get_properties ( struct pw_global global)

Get the global properties.

◆ pw_global_get_type()

SPA_EXPORT uint32_t pw_global_get_type ( struct pw_global global)

Get the global type.

◆ pw_global_get_version()

SPA_EXPORT uint32_t pw_global_get_version ( struct pw_global global)

Get the global version.