20 #ifndef __PIPEWIRE_CORE_H__ 21 #define __PIPEWIRE_CORE_H__ 27 #include <spa/utils/defs.h> 28 #include <spa/utils/hook.h> 76 #define PW_PERM_R 0400 77 #define PW_PERM_W 0200 78 #define PW_PERM_X 0100 80 #define PW_PERM_RWX (PW_PERM_R|PW_PERM_W|PW_PERM_X) 82 #define PW_PERM_IS_R(p) (((p)&PW_PERM_R) == PW_PERM_R) 83 #define PW_PERM_IS_W(p) (((p)&PW_PERM_W) == PW_PERM_W) 84 #define PW_PERM_IS_X(p) (((p)&PW_PERM_X) == PW_PERM_X) 88 #define PW_VERSION_CORE_EVENTS 0 94 void (*
free) (
void *data);
104 #define PW_CORE_PROP_USER_NAME "pipewire.core.user-name" 106 #define PW_CORE_PROP_HOST_NAME "pipewire.core.host-name" 108 #define PW_CORE_PROP_NAME "pipewire.core.name" 110 #define PW_CORE_PROP_VERSION "pipewire.core.version" 112 #define PW_CORE_PROP_DAEMON "pipewire.daemon" 122 struct spa_hook *listener,
152 int (*callback) (
void *data,
struct pw_global *global),
const struct pw_properties * pw_core_get_properties(struct pw_core *core)
Get the core properties.
Definition: core.c:539
A collection of key/value pairs.
Definition: properties.h:38
struct pw_factory * pw_core_find_factory(struct pw_core *core, const char *name)
Find a factory by name.
Definition: core.c:827
core events emited by the core object added with pw_core_add_listener
Definition: core.h:88
PipeWire loop object provides an implementation of the spa loop interfaces.
Definition: loop.h:37
const struct pw_core_info * pw_core_get_info(struct pw_core *core)
Get the core info object.
Definition: core.c:505
struct spa_dict dict
Definition: properties.h:39
void(* destroy)(void *data)
The core is being destroyed.
Definition: core.h:93
const struct spa_support * pw_core_get_support(struct pw_core *core, uint32_t *n_support)
Get the core support objects.
Definition: core.c:528
uint32_t version
Definition: core.h:90
struct pw_global * pw_core_find_global(struct pw_core *core, uint32_t id)
Find a core global by id.
Definition: core.c:592
The core information.
Definition: introspect.h:76
uint32_t core
Definition: type.h:54
void(* global_removed)(void *data, struct pw_global *global)
a global object was removed
Definition: core.h:101
void(* free)(void *data)
The core is being freed.
Definition: core.h:95
PipeWire factory interface.
struct pw_global * pw_core_get_global(struct pw_core *core)
Get the core global object.
Definition: core.c:510
struct pw_core * pw_core_new(struct pw_loop *main_loop, struct pw_properties *properties)
Create a new core object.
Definition: core.c:361
PipeWire type support struct.
Definition: type.h:51
void(* info_changed)(void *data, struct pw_core_info *info)
The core info changed, use pw_core_get_info() to get the updated info.
Definition: core.h:97
int pw_core_for_each_global(struct pw_core *core, int(*callback)(void *data, struct pw_global *global), void *data)
Iterate the globals of the core.
Definition: core.c:575
struct pw_type * pw_core_get_type(struct pw_core *core)
Get the type object of a core.
Definition: core.c:523
void pw_core_destroy(struct pw_core *core)
Destroy a core object.
Definition: core.c:469
A global object visible to remote clients.
struct pw_loop * pw_core_get_main_loop(struct pw_core *core)
get the core main loop
Definition: core.c:534
int pw_core_update_properties(struct pw_core *core, const struct spa_dict *dict)
Update core properties.
Definition: core.c:553
void pw_core_add_listener(struct pw_core *core, struct spa_hook *listener, const struct pw_core_events *events, void *data)
Add a new event listener to a core.
Definition: core.c:515
void(* global_added)(void *data, struct pw_global *global)
a new global object was added
Definition: core.h:99