20 #ifndef __PIPEWIRE_CORE_H__ 21 #define __PIPEWIRE_CORE_H__ 28 #include <spa/format.h> 104 #define PW_PERM_R 0400 105 #define PW_PERM_W 0200 106 #define PW_PERM_X 0100 108 #define PW_PERM_RWX (PW_PERM_R|PW_PERM_W|PW_PERM_X) 112 #define PW_PERM_IS_R(p) (((p)&PW_PERM_R) == PW_PERM_R) 113 #define PW_PERM_IS_W(p) (((p)&PW_PERM_W) == PW_PERM_W) 114 #define PW_PERM_IS_X(p) (((p)&PW_PERM_X) == PW_PERM_X) 117 #define PW_VERSION_CORE_EVENTS 0 122 void (*
free) (
void *data);
137 struct spa_hook *listener,
161 bool (*callback) (
void *data,
struct pw_global *global),
171 uint32_t n_format_filters,
172 struct spa_format **format_filters,
180 uint32_t n_format_filters,
181 struct spa_format **format_filters,
const struct pw_properties * pw_core_get_properties(struct pw_core *core)
Definition: core.c:471
const char * name
the factory name
Definition: private.h:366
A collection of key/value pairs.
Definition: properties.h:38
struct pw_port * pw_core_find_port(struct pw_core *core, struct pw_port *other_port, uint32_t id, struct pw_properties *props, uint32_t n_format_filters, struct spa_format **format_filters, char **error)
PipeWire loop interface 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)
Definition: core.c:429
void(* destroy)(void *data)
Definition: core.h:121
void pw_core_set_permission_callback(struct pw_core *core, pw_permission_func_t callback, void *data)
Definition: core.c:447
const struct spa_support * pw_core_get_support(struct pw_core *core, uint32_t *n_support)
Definition: core.c:460
uint32_t version
Definition: core.h:119
A global object visible to all clients.
Definition: private.h:87
struct pw_global * pw_core_find_global(struct pw_core *core, uint32_t id)
Definition: core.c:516
The core information.
Definition: introspect.h:76
bool pw_core_for_each_global(struct pw_core *core, bool(*callback)(void *data, struct pw_global *global), void *data)
iterate the globals
Definition: core.c:504
uint32_t core
Definition: type.h:51
void(* global_removed)(void *data, struct pw_global *global)
Definition: core.h:129
void(* free)(void *data)
Definition: core.h:123
struct pw_global * pw_core_get_global(struct pw_core *core)
Definition: core.c:434
struct pw_core * pw_core_new(struct pw_loop *main_loop, struct pw_properties *props)
PipeWire type support struct.
Definition: type.h:48
void(* info_changed)(void *data, struct pw_core_info *info)
Definition: core.h:125
PipeWire client object class.
Definition: private.h:58
struct spa_format * pw_core_find_format(struct pw_core *core, struct pw_port *output, struct pw_port *input, struct pw_properties *props, uint32_t n_format_filters, struct spa_format **format_filters, char **error)
PipeWire node factory interface.
Definition: private.h:361
void pw_core_destroy(struct pw_core *core)
void pw_core_update_properties(struct pw_core *core, const struct spa_dict *dict)
struct pw_type * pw_core_get_type(struct pw_core *core)
Definition: core.c:455
struct pw_loop * pw_core_get_main_loop(struct pw_core *core)
Definition: core.c:466
struct pw_loop * main_loop
main loop for control
Definition: private.h:130
The port object.
Definition: private.h:246
struct pw_node_factory * pw_core_find_node_factory(struct pw_core *core, const char *name)
void pw_core_add_listener(struct pw_core *core, struct spa_hook *listener, const struct pw_core_events *events, void *data)
Definition: core.c:439
uint32_t(* pw_permission_func_t)(struct pw_global *global, struct pw_client *client, void *data)
Definition: core.h:110
the core PipeWire object
Definition: private.h:103
void(* global_added)(void *data, struct pw_global *global)
Definition: core.h:127
struct pw_core * core
the core
Definition: private.h:88