PipeWire  0.1.4
core.h File Reference
Include dependency graph for core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pw_core_events
 

Macros

#define PW_PERM_R   0400
 object can be seen and events can be received More...
 
#define PW_PERM_W   0200
 methods can be called that modify the object More...
 
#define PW_PERM_X   0100
 methods can be called on the object. More...
 
#define PW_PERM_RWX   (PW_PERM_R|PW_PERM_W|PW_PERM_X)
 
#define PW_PERM_IS_R(p)   (((p)&PW_PERM_R) == PW_PERM_R)
 
#define PW_PERM_IS_W(p)   (((p)&PW_PERM_W) == PW_PERM_W)
 
#define PW_PERM_IS_X(p)   (((p)&PW_PERM_X) == PW_PERM_X)
 
#define PW_VERSION_CORE_EVENTS   0
 

Typedefs

typedef uint32_t(* pw_permission_func_t) (struct pw_global *global, struct pw_client *client, void *data)
 

Functions

struct pw_corepw_core_new (struct pw_loop *main_loop, struct pw_properties *props)
 
void pw_core_destroy (struct pw_core *core)
 
void pw_core_add_listener (struct pw_core *core, struct spa_hook *listener, const struct pw_core_events *events, void *data)
 
void pw_core_set_permission_callback (struct pw_core *core, pw_permission_func_t callback, void *data)
 
struct pw_typepw_core_get_type (struct pw_core *core)
 
const struct pw_core_infopw_core_get_info (struct pw_core *core)
 
struct pw_globalpw_core_get_global (struct pw_core *core)
 
const struct pw_propertiespw_core_get_properties (struct pw_core *core)
 
const struct spa_support * pw_core_get_support (struct pw_core *core, uint32_t *n_support)
 
struct pw_looppw_core_get_main_loop (struct pw_core *core)
 
void pw_core_update_properties (struct pw_core *core, const struct spa_dict *dict)
 
bool pw_core_for_each_global (struct pw_core *core, bool(*callback)(void *data, struct pw_global *global), void *data)
 iterate the globals More...
 
struct pw_globalpw_core_find_global (struct pw_core *core, uint32_t id)
 
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)
 
struct pw_portpw_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)
 
struct pw_node_factorypw_core_find_node_factory (struct pw_core *core, const char *name)
 

Macro Definition Documentation

◆ PW_PERM_IS_R

#define PW_PERM_IS_R (   p)    (((p)&PW_PERM_R) == PW_PERM_R)

◆ PW_PERM_IS_W

#define PW_PERM_IS_W (   p)    (((p)&PW_PERM_W) == PW_PERM_W)

◆ PW_PERM_IS_X

#define PW_PERM_IS_X (   p)    (((p)&PW_PERM_X) == PW_PERM_X)

◆ PW_PERM_R

#define PW_PERM_R   0400

object can be seen and events can be received

◆ PW_PERM_RWX

#define PW_PERM_RWX   (PW_PERM_R|PW_PERM_W|PW_PERM_X)

◆ PW_PERM_W

#define PW_PERM_W   0200

methods can be called that modify the object

◆ PW_PERM_X

#define PW_PERM_X   0100

methods can be called on the object.

The W flag must be present in order to call methods that modify the object.

◆ PW_VERSION_CORE_EVENTS

#define PW_VERSION_CORE_EVENTS   0

Typedef Documentation

◆ pw_permission_func_t

typedef uint32_t(* pw_permission_func_t) (struct pw_global *global, struct pw_client *client, void *data)

Function Documentation

◆ pw_core_add_listener()

void pw_core_add_listener ( struct pw_core core,
struct spa_hook *  listener,
const struct pw_core_events events,
void *  data 
)

◆ pw_core_destroy()

void pw_core_destroy ( struct pw_core core)

◆ pw_core_find_format()

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 
)

◆ pw_core_find_global()

struct pw_global* pw_core_find_global ( struct pw_core core,
uint32_t  id 
)

References pw_core::globals.

◆ pw_core_find_node_factory()

struct pw_node_factory* pw_core_find_node_factory ( struct pw_core core,
const char *  name 
)

◆ pw_core_find_port()

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 
)

◆ pw_core_for_each_global()

bool pw_core_for_each_global ( struct pw_core core,
bool(*)(void *data, struct pw_global *global)  callback,
void *  data 
)

iterate the globals

References pw_core::global_list, and pw_global::link.

◆ pw_core_get_global()

struct pw_global* pw_core_get_global ( struct pw_core core)

References pw_core::global.

◆ pw_core_get_info()

const struct pw_core_info* pw_core_get_info ( struct pw_core core)

References pw_core::info.

◆ pw_core_get_main_loop()

struct pw_loop* pw_core_get_main_loop ( struct pw_core core)

References pw_core::main_loop.

◆ pw_core_get_properties()

const struct pw_properties* pw_core_get_properties ( struct pw_core core)

References pw_core::properties.

◆ pw_core_get_support()

const struct spa_support* pw_core_get_support ( struct pw_core core,
uint32_t *  n_support 
)

◆ pw_core_get_type()

struct pw_type* pw_core_get_type ( struct pw_core core)

References pw_core::type.

◆ pw_core_new()

struct pw_core* pw_core_new ( struct pw_loop main_loop,
struct pw_properties props 
)

◆ pw_core_set_permission_callback()

void pw_core_set_permission_callback ( struct pw_core core,
pw_permission_func_t  callback,
void *  data 
)

◆ pw_core_update_properties()

void pw_core_update_properties ( struct pw_core core,
const struct spa_dict *  dict 
)