PipeWire  0.3.30
context.h
Go to the documentation of this file.
1 /* PipeWire
2  *
3  * Copyright © 2018 Wim Taymans
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
25 #ifndef PIPEWIRE_CONTEXT_H
26 #define PIPEWIRE_CONTEXT_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #include <spa/utils/defs.h>
33 #include <spa/utils/hook.h>
34 
77 struct pw_context;
78 
79 struct pw_global;
80 struct pw_impl_client;
81 
82 #include <pipewire/core.h>
83 #include <pipewire/loop.h>
84 #include <pipewire/properties.h>
85 
88 #define PW_VERSION_CONTEXT_EVENTS 0
89  uint32_t version;
90 
92  void (*destroy) (void *data);
94  void (*free) (void *data);
96  void (*check_access) (void *data, struct pw_impl_client *client);
98  void (*global_added) (void *data, struct pw_global *global);
100  void (*global_removed) (void *data, struct pw_global *global);
101 };
102 
104 struct pw_context * pw_context_new(struct pw_loop *main_loop,
105  struct pw_properties *props,
106  size_t user_data_size );
107 
109 void pw_context_destroy(struct pw_context *context);
110 
112 void *pw_context_get_user_data(struct pw_context *context);
113 
115 void pw_context_add_listener(struct pw_context *context,
116  struct spa_hook *listener,
117  const struct pw_context_events *events,
118  void *data);
119 
121 const struct pw_properties *pw_context_get_properties(struct pw_context *context);
122 
124 int pw_context_update_properties(struct pw_context *context, const struct spa_dict *dict);
125 
127 const char *pw_context_get_conf_section(struct pw_context *context, const char *section);
128 
130 const struct spa_support *pw_context_get_support(struct pw_context *context, uint32_t *n_support);
131 
133 struct pw_loop *pw_context_get_main_loop(struct pw_context *context);
134 
136 struct pw_work_queue *pw_context_get_work_queue(struct pw_context *context);
137 
142 int pw_context_for_each_global(struct pw_context *context,
143  int (*callback) (void *data, struct pw_global *global),
144  void *data);
145 
147 struct pw_global *pw_context_find_global(struct pw_context *context,
148  uint32_t id );
149 
151 int pw_context_add_spa_lib(struct pw_context *context, const char *factory_regex, const char *lib);
152 
154 const char * pw_context_find_spa_lib(struct pw_context *context, const char *factory_name);
155 
156 struct spa_handle *pw_context_load_spa_handle(struct pw_context *context,
157  const char *factory_name,
158  const struct spa_dict *info);
159 
160 
163  struct spa_list link;
164  const char *type;
165  struct pw_proxy * (*func) (struct pw_core *core,
166  const char *type, const struct spa_dict *props, void *object,
167  size_t user_data_size);
168 };
169 
172 int pw_context_register_export_type(struct pw_context *context, struct pw_export_type *type);
174 const struct pw_export_type *pw_context_find_export_type(struct pw_context *context, const char *type);
175 
177 int pw_context_set_object(struct pw_context *context, const char *type, void *value);
179 void *pw_context_get_object(struct pw_context *context, const char *type);
180 
184 #ifdef __cplusplus
185 }
186 #endif
187 
188 #endif /* PIPEWIRE_CONTEXT_H */
pw_context_events::global_removed
void(* global_removed)(void *data, struct pw_global *global)
a global object was removed
Definition: context.h:100
pw_log_info
#define pw_log_info(...)
Definition: src/pipewire/log.h:88
pw_context_get_main_loop
SPA_EXPORT struct pw_loop * pw_context_get_main_loop(struct pw_context *context)
get the context main loop
Definition: context.c:500
PW_PERM_IS_R
#define PW_PERM_IS_R(p)
Definition: permission.h:56
pw_work_queue_destroy
void pw_work_queue_destroy(struct pw_work_queue *queue)
Destroy a work queue.
Definition: work-queue.c:132
spa_direction
spa_direction
Definition: defs.h:78
pw_export_type
data for registering export functions
Definition: context.h:162
pw_impl_node_set_state
SPA_EXPORT int pw_impl_node_set_state(struct pw_impl_node *node, enum pw_node_state state)
Set the node state.
Definition: impl-node.c:2068
pw_context_register_export_type
SPA_EXPORT int pw_context_register_export_type(struct pw_context *context, struct pw_export_type *type)
register a type that can be exported on a context_proxy.
Definition: context.c:1165
pw_log_set_level
void pw_log_set_level(enum spa_log_level level)
Configure the logging level.
Definition: log.c:71
PW_KEY_WINDOW_X11_DISPLAY
#define PW_KEY_WINDOW_X11_DISPLAY
window system
Definition: src/pipewire/keys.h:118
pw_export_type::type
const char * type
Definition: context.h:164
pw_context_find_format
int pw_context_find_format(struct pw_context *context, struct pw_impl_port *output, struct pw_impl_port *input, struct pw_properties *props, uint32_t n_format_filters, struct spa_pod **format_filters, struct spa_pod **format, struct spa_pod_builder *builder, char **error)
Find a common format between two ports.
Definition: context.c:733
pw_mempool_new
struct pw_mempool * pw_mempool_new(struct pw_properties *props)
Create a new memory pool.
Definition: mem.c:137
pw_get_prgname
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:616
pw_context_create_core
struct pw_impl_core * pw_context_create_core(struct pw_context *context, struct pw_properties *properties, size_t user_data_size)
Definition: impl-core.c:412
PW_KEY_APP_PROCESS_USER
#define PW_KEY_APP_PROCESS_USER
user name
Definition: src/pipewire/keys.h:110
PW_KEY_CPU_MAX_ALIGN
#define PW_KEY_CPU_MAX_ALIGN
maximum alignment needed to support all CPU optimizations
Definition: src/pipewire/keys.h:82
pw_data_loop_start
int pw_data_loop_start(struct pw_data_loop *loop)
Start the processing thread.
Definition: data-loop.c:203
pw_context_get_support
SPA_EXPORT const struct spa_support * pw_context_get_support(struct pw_context *context, uint32_t *n_support)
Get the context support objects.
Definition: context.c:493
va_end
va_end(args)
pw_context_events::destroy
void(* destroy)(void *data)
The context is being destroyed.
Definition: context.h:92
pw_context_new
SPA_EXPORT struct pw_context * pw_context_new(struct pw_loop *main_loop, struct pw_properties *properties, size_t user_data_size)
Create a new context object.
Definition: context.c:192
pw_context_add_listener
SPA_EXPORT void pw_context_add_listener(struct pw_context *context, struct spa_hook *listener, const struct pw_context_events *events, void *data)
Add a new event listener to a context.
Definition: context.c:484
types.h
SPA_SUPPORT_INIT
#define SPA_SUPPORT_INIT(type, data)
Definition: plugin.h:107
pw_impl_node_find_port
struct pw_impl_port * pw_impl_node_find_port(struct pw_impl_node *node, enum pw_direction direction, uint32_t port_id)
Find the port with direction and port_id or NULL when not found.
Definition: impl-node.c:1939
dbus.h
pw_mempool_destroy
void pw_mempool_destroy(struct pw_mempool *pool)
Clear and destroy a pool.
Definition: mem.c:174
SPA_NAME_SUPPORT_DBUS
#define SPA_NAME_SUPPORT_DBUS
A DBUS interface.
Definition: names.h:42
spa_pod_builder::state
struct spa_pod_builder_state state
Definition: builder.h:67
pw_context_add_spa_lib
SPA_EXPORT int pw_context_add_spa_lib(struct pw_context *context, const char *factory_regexp, const char *lib)
add a spa library for the given factory_name regex
Definition: context.c:1098
PW_NODE_STATE_RUNNING
@ PW_NODE_STATE_RUNNING
the node is running
Definition: src/pipewire/node.h:63
string.h
pw_context_find_port
struct pw_impl_port * pw_context_find_port(struct pw_context *context, struct pw_impl_port *other_port, uint32_t id, struct pw_properties *props, uint32_t n_format_filters, struct spa_pod **format_filters, char **error)
Find a port to link with.
Definition: context.c:597
loop.h
pw_context_recalc_graph
int pw_context_recalc_graph(struct pw_context *context, const char *reason)
Definition: context.c:958
data
Definition: filter.c:75
SPA_CLAMP
#define SPA_CLAMP(v, low, high)
Definition: defs.h:135
spa_streq
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
spa_list_for_each
#define spa_list_for_each(pos, head, member)
Definition: list.h:111
PW_KEY_CORE_VERSION
#define PW_KEY_CORE_VERSION
The version of the core.
Definition: src/pipewire/keys.h:75
spa_cpu_get_vm_type
#define spa_cpu_get_vm_type(c)
Definition: cpu.h:148
pw_global_get_permissions
uint32_t pw_global_get_permissions(struct pw_global *global, struct pw_impl_client *client)
Get the permissions of the global for a given client.
Definition: global.c:45
spa_aprintf
#define spa_aprintf(_fmt,...)
Definition: defs.h:309
pw_get_support
uint32_t pw_get_support(struct spa_support *support, uint32_t max_support)
Definition: pipewire.c:232
pw_loop
Definition: src/pipewire/loop.h:47
SPA_EXPORT
#define SPA_EXPORT
Definition: defs.h:207
PW_NODE_STATE_IDLE
@ PW_NODE_STATE_IDLE
the node is running but there is no active port
Definition: src/pipewire/node.h:61
spa_cpu
Definition: cpu.h:52
object_entry::type
const char * type
Definition: context.c:1188
pw_log_debug
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
SPA_NODE_FLAG_NEED_CONFIGURE
#define SPA_NODE_FLAG_NEED_CONFIGURE
node needs configuration before it can be started.
Definition: obj-x86_64-linux-gnu/doc/spa/node/node.h:75
pw_get_user_name
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:646
impl
Definition: control.c:33
spa_hook_list_init
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list.
Definition: hook.h:86
pw_loop::utils
struct spa_loop_utils * utils
loop utils
Definition: src/pipewire/loop.h:51
pw_impl_core_destroy
void pw_impl_core_destroy(struct pw_impl_core *core)
Definition: impl-core.c:479
spa_node_port_enum_params_sync
int spa_node_port_enum_params_sync(struct spa_node *node, enum spa_direction direction, uint32_t port_id, uint32_t id, uint32_t *index, const struct spa_pod *filter, struct spa_pod **param, struct spa_pod_builder *builder)
Definition: obj-x86_64-linux-gnu/doc/spa/node/utils.h:90
SPA_CPU_VM_NONE
#define SPA_CPU_VM_NONE
Definition: cpu.h:93
spa_list
Definition: list.h:37
pw_resource_destroy
void pw_resource_destroy(struct pw_resource *resource)
Destroy a resource.
Definition: resource.c:264
pw_context_get_work_queue
SPA_EXPORT struct pw_work_queue * pw_context_get_work_queue(struct pw_context *context)
Get the work queue from the context: Since 0.3.26.
Definition: context.c:506
pw_data_loop_new
struct pw_data_loop * pw_data_loop_new(const struct spa_dict *props)
Make a new loop.
Definition: data-loop.c:152
SPA_PTROFF
#define SPA_PTROFF(ptr_, offset_, type_)
Return the address (buffer + offset) as pointer of type.
Definition: defs.h:159
pw_array_for_each
#define pw_array_for_each(pos, array)
Definition: array.h:72
handle
Definition: pipewire.c:67
pw_get_client_name
const char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:694
res
static uint32_t int int res
Definition: core.h:329
pw_array_remove
#define pw_array_remove(a, p)
Definition: array.h:82
PW_KEY_CONFIG_NAME
#define PW_KEY_CONFIG_NAME
a config file name
Definition: src/pipewire/keys.h:64
SPA_POD_BUILDER_INIT
#define SPA_POD_BUILDER_INIT(buffer, size)
Definition: builder.h:71
SPA_TYPE_INTERFACE_DataLoop
#define SPA_TYPE_INTERFACE_DataLoop
Definition: obj-x86_64-linux-gnu/doc/spa/support/loop.h:42
impl.h
pw_properties::dict
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
SPA_CONTAINER_OF
#define SPA_CONTAINER_OF(p, t, m)
Definition: defs.h:170
SPA_PARAM_Format
@ SPA_PARAM_Format
configured format as SPA_TYPE_OBJECT_Format
Definition: param.h:48
pw_impl_module_destroy
void pw_impl_module_destroy(struct pw_impl_module *module)
Destroy a module.
Definition: impl-module.c:295
spa_list_consume
#define spa_list_consume(pos, head, member)
Definition: list.h:96
pw_direction_reverse
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:712
pw_context_for_each_global
SPA_EXPORT int pw_context_for_each_global(struct pw_context *context, int(*callback)(void *data, struct pw_global *global), void *data)
Iterate the globals of the context.
Definition: context.c:552
pw_log_error
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
spa_pod
Definition: pod/pod.h:50
pw_impl_core_register
int pw_impl_core_register(struct pw_impl_core *core, struct pw_properties *properties)
Definition: impl-core.c:609
CLOCK_MIN_QUANTUM
#define CLOCK_MIN_QUANTUM
Definition: context.c:50
pw_context_events::check_access
void(* check_access)(void *data, struct pw_impl_client *client)
a new client object is added
Definition: context.h:96
pw_properties::pw_properties_setf
SPA_EXPORT int pw_properties_setf(struct pw_properties *properties, const char *key, const char *format,...)
Set a property value by format.
Definition: properties.c:492
queue
Definition: filter.c:68
object_entry::value
void * value
Definition: context.c:1189
PW_KEY_APP_PROCESS_HOST
#define PW_KEY_APP_PROCESS_HOST
host name
Definition: src/pipewire/keys.h:111
pw_context_events
context events emitted by the context object added with pw_context_add_listener
Definition: context.h:87
PW_DIRECTION_OUTPUT
#define PW_DIRECTION_OUTPUT
Definition: port.h:58
spa_list_remove
void spa_list_remove(struct spa_list *elem)
Definition: list.h:69
DEFAULT_CLOCK_QUANTUM
#define DEFAULT_CLOCK_QUANTUM
Definition: context.c:54
SPA_N_ELEMENTS
#define SPA_N_ELEMENTS(arr)
Definition: defs.h:109
pw_context_find_global
SPA_EXPORT struct pw_global * pw_context_find_global(struct pw_context *context, uint32_t id)
Find a context global by id.
Definition: context.c:569
pw_context_find_export_type
SPA_EXPORT const struct pw_export_type * pw_context_find_export_type(struct pw_context *context, const char *type)
find information about registered export type
Definition: context.c:1177
filter
Definition: filter.c:124
spa_node
Definition: obj-x86_64-linux-gnu/doc/spa/node/node.h:53
spa_hook
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:76
pw_get_host_name
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:658
pw_loop::system
struct spa_system * system
system utils
Definition: src/pipewire/loop.h:48
PW_KEY_APP_NAME
#define PW_KEY_APP_NAME
application keys
Definition: src/pipewire/keys.h:98
pw_properties::pw_properties_update
SPA_EXPORT int pw_properties_update(struct pw_properties *props, const struct spa_dict *dict)
Update properties.
Definition: properties.c:314
pw_context_parse_conf_section
int pw_context_parse_conf_section(struct pw_context *context, struct pw_properties *conf, const char *section)
Definition: conf.c:565
pw_core_disconnect
int pw_core_disconnect(struct pw_core *core)
disconnect and destroy a core
Definition: core.c:488
pw_export_type::link
struct spa_list link
Definition: context.h:163
DEFAULT_VIDEO_WIDTH
#define DEFAULT_VIDEO_WIDTH
Definition: context.c:58
format.h
spa_handle
Definition: plugin.h:44
conf.h
DEFAULT_CLOCK_MIN_QUANTUM
#define DEFAULT_CLOCK_MIN_QUANTUM
Definition: context.c:55
SPA_LOG_LEVEL_DEBUG
@ SPA_LOG_LEVEL_DEBUG
Definition: obj-x86_64-linux-gnu/doc/spa/support/log.h:51
SPA_FLAG_IS_SET
#define SPA_FLAG_IS_SET(field, flag)
Definition: defs.h:73
va_start
va_start(args, message)
buffer
Definition: filter.c:59
pw_data_loop_get_loop
struct pw_loop * pw_data_loop_get_loop(struct pw_data_loop *loop)
Get the loop implementation of this data loop.
Definition: data-loop.c:190
spa_list_init
void spa_list_init(struct spa_list *list)
Definition: list.h:44
spa_list_for_each_safe
#define spa_list_for_each_safe(pos, tmp, head, member)
Definition: list.h:129
spa_pod_builder_init
void spa_pod_builder_init(struct spa_pod_builder *builder, void *data, uint32_t size)
Definition: builder.h:96
spa_dict
Definition: utils/dict.h:48
cpu.h
pw_context_update_properties
SPA_EXPORT int pw_context_update_properties(struct pw_context *context, const struct spa_dict *dict)
Update context properties.
Definition: context.c:533
PW_KEY_CONFIG_PREFIX
#define PW_KEY_CONFIG_PREFIX
a config prefix directory
Definition: src/pipewire/keys.h:63
PW_KEY_APP_PROCESS_BINARY
#define PW_KEY_APP_PROCESS_BINARY
binary name
Definition: src/pipewire/keys.h:109
spa_dict_lookup
const char * spa_dict_lookup(const struct spa_dict *dict, const char *key)
Definition: utils/dict.h:99
pw_context_set_object
SPA_EXPORT int pw_context_set_object(struct pw_context *context, const char *type, void *value)
add an object to the context
Definition: context.c:1203
pw_properties::pw_properties_get
const SPA_EXPORT char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:515
SPA_LOG_LEVEL_ERROR
@ SPA_LOG_LEVEL_ERROR
Definition: obj-x86_64-linux-gnu/doc/spa/support/log.h:48
utils.h
spa_support_find
void * spa_support_find(const struct spa_support *support, uint32_t n_support, const char *type)
Find a support item of the given type.
Definition: plugin.h:95
SPA_PARAM_EnumFormat
@ SPA_PARAM_EnumFormat
available formats as SPA_TYPE_OBJECT_Format
Definition: param.h:47
pw_context_get_properties
SPA_EXPORT const struct pw_properties * pw_context_get_properties(struct pw_context *context)
Get the context properties.
Definition: context.c:514
pw_context_events::free
void(* free)(void *data)
The context is being freed.
Definition: context.h:94
pw_context_load_spa_handle
SPA_EXPORT struct spa_handle * pw_context_load_spa_handle(struct pw_context *context, const char *factory_name, const struct spa_dict *info)
Definition: context.c:1135
spa_strerror
#define spa_strerror(err)
Definition: result.h:51
pw_conf_load_conf
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:283
pw_context_get_object
SPA_EXPORT void * pw_context_get_object(struct pw_context *context, const char *type)
get an object from the context
Definition: context.c:1225
pw_properties::pw_properties_copy
SPA_EXPORT struct pw_properties * pw_properties_copy(const struct pw_properties *properties)
Copy a properties object.
Definition: properties.c:232
pw_context_find_spa_lib
const SPA_EXPORT char * pw_context_find_spa_lib(struct pw_context *context, const char *factory_name)
find the library name for a spa factory
Definition: context.c:1123
param
Definition: filter.c:80
PW_IMPL_PORT_STATE_CONFIGURE
@ PW_IMPL_PORT_STATE_CONFIGURE
the port is ready for format negotiation
Definition: impl-port.h:52
pw_properties::pw_properties_set
SPA_EXPORT int pw_properties_set(struct pw_properties *properties, const char *key, const char *value)
Set a property value.
Definition: properties.c:459
DEFAULT_VIDEO_RATE_NUM
#define DEFAULT_VIDEO_RATE_NUM
Definition: context.c:60
pw_context_destroy
SPA_EXPORT void pw_context_destroy(struct pw_context *context)
Destroy a context object.
Definition: context.c:405
NAME
#define NAME
Definition: context.c:48
spa_handle_get_interface
#define spa_handle_get_interface(h,...)
Definition: plugin.h:73
pw_impl_device_destroy
void pw_impl_device_destroy(struct pw_impl_device *device)
Definition: impl-device.c:194
pw_global_destroy
void pw_global_destroy(struct pw_global *global)
Destroy a global.
Definition: global.c:369
CLOCK_MAX_QUANTUM
#define CLOCK_MAX_QUANTUM
Definition: context.c:51
pw_unload_spa_handle
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:320
pw_properties_update_string
int pw_properties_update_string(struct pw_properties *props, const char *str, size_t size)
Update the properties from the given string, overwriting any existing keys with the new values from s...
Definition: properties.c:158
PW_ID_ANY
#define PW_ID_ANY
Definition: core.h:64
DEFAULT_CLOCK_POWER_OF_TWO_QUANTUM
#define DEFAULT_CLOCK_POWER_OF_TWO_QUANTUM
Definition: context.c:57
pw_data_loop_destroy
void pw_data_loop_destroy(struct pw_data_loop *loop)
Destroy the loop.
Definition: data-loop.c:162
PW_KEY_APP_PROCESS_SESSION_ID
#define PW_KEY_APP_PROCESS_SESSION_ID
login session of the application, on Unix the value of $XDG_SESSION_ID.
Definition: src/pipewire/keys.h:114
pw_impl_node_set_driver
SPA_EXPORT int pw_impl_node_set_driver(struct pw_impl_node *node, struct pw_impl_node *driver)
Definition: impl-node.c:770
vsnprintf
vsnprintf(buffer, sizeof(buffer), message, args)
DEFAULT_MEM_WARN_MLOCK
#define DEFAULT_MEM_WARN_MLOCK
Definition: context.c:63
PW_KEY_LIBRARY_NAME_DBUS
#define PW_KEY_LIBRARY_NAME_DBUS
name of the dbus library to use
Definition: src/pipewire/keys.h:57
PW_KEY_CORE_NAME
#define PW_KEY_CORE_NAME
The name of the core.
Definition: src/pipewire/keys.h:72
DEFAULT_MEM_ALLOW_MLOCK
#define DEFAULT_MEM_ALLOW_MLOCK
Definition: context.c:64
SPA_TYPE_INTERFACE_System
#define SPA_TYPE_INTERFACE_System
a collection of core system functions
Definition: system.h:48
pw_node_state
pw_node_state
Definition: src/pipewire/node.h:56
core.h
DEFAULT_VIDEO_HEIGHT
#define DEFAULT_VIDEO_HEIGHT
Definition: context.c:59
SPA_PRINTF_FUNC
SPA_PRINTF_FUNC(7, 8)
Definition: context.c:678
impl::this
struct pw_control this
Definition: control.c:34
SPA_TYPE_INTERFACE_DataSystem
#define SPA_TYPE_INTERFACE_DataSystem
Definition: system.h:49
pw_impl_client_destroy
void pw_impl_client_destroy(struct pw_impl_client *client)
Destroy a previously created client.
Definition: impl-client.c:572
spa_type_param
const struct spa_type_info spa_type_param[]
Definition: param/type-info.h:46
defs.h
pw_context_get_user_data
SPA_EXPORT void * pw_context_get_user_data(struct pw_context *context)
Get the context user data.
Definition: context.c:478
SPA_TYPE_INTERFACE_Loop
#define SPA_TYPE_INTERFACE_Loop
Definition: obj-x86_64-linux-gnu/doc/spa/support/loop.h:41
pw_load_spa_handle
struct spa_handle * pw_load_spa_handle(const char *lib, const char *factory_name, const struct spa_dict *info, uint32_t n_support, const struct spa_support support[])
Definition: pipewire.c:241
pw_context_events::version
uint32_t version
Definition: context.h:89
pw_impl_node_destroy
void pw_impl_node_destroy(struct pw_impl_node *node)
Destroy a node.
Definition: impl-node.c:1718
spa_hook_list_append
void spa_hook_list_append(struct spa_hook_list *list, struct spa_hook *hook, const void *funcs, void *data)
Append a hook.
Definition: hook.h:97
pw_properties::pw_properties_new
SPA_EXPORT struct pw_properties * pw_properties_new(const char *key,...)
Make a new properties object.
Definition: properties.c:100
pw_work_queue_new
struct pw_work_queue * pw_work_queue_new(struct pw_loop *loop)
Create a new PipeWire Work Queue Object.
Definition: work-queue.c:98
properties.h
names.h
pw_loop::loop
struct spa_loop * loop
wrapped loop
Definition: src/pipewire/loop.h:49
PW_KEY_APP_PROCESS_ID
#define PW_KEY_APP_PROCESS_ID
process id (pid)
Definition: src/pipewire/keys.h:108
PW_KEY_APP_LANGUAGE
#define PW_KEY_APP_LANGUAGE
application language if applicable, in standard POSIX format.
Definition: src/pipewire/keys.h:105
SPA_TYPE_INTERFACE_LoopUtils
#define SPA_TYPE_INTERFACE_LoopUtils
Definition: obj-x86_64-linux-gnu/doc/spa/support/loop.h:50
DEFAULT_CLOCK_MAX_QUANTUM
#define DEFAULT_CLOCK_MAX_QUANTUM
Definition: context.c:56
spa_cpu_get_max_align
#define spa_cpu_get_max_align(c)
Definition: cpu.h:147
spa_support
Extra supporting infrastructure passed to the init() function of a factory.
Definition: plugin.h:89
DEFAULT_LINK_MAX_BUFFERS
#define DEFAULT_LINK_MAX_BUFFERS
Definition: context.c:62
pw_context_events::global_added
void(* global_added)(void *data, struct pw_global *global)
a new global object was added
Definition: context.h:98
DEFAULT_VIDEO_RATE_DENOM
#define DEFAULT_VIDEO_RATE_DENOM
Definition: context.c:61
spa_pod_builder
Definition: builder.h:63
hook.h
SPA_TYPE_INTERFACE_CPU
#define SPA_TYPE_INTERFACE_CPU
The CPU features interface.
Definition: cpu.h:49
args
static uint32_t int int const char va_list args
Definition: core.h:330
DEFAULT_CLOCK_RATE
#define DEFAULT_CLOCK_RATE
Definition: context.c:53
PW_KEY_LIBRARY_NAME_SYSTEM
#define PW_KEY_LIBRARY_NAME_SYSTEM
name of the system library to use
Definition: src/pipewire/keys.h:55
SPA_TYPE_INTERFACE_DBus
#define SPA_TYPE_INTERFACE_DBus
Definition: dbus.h:39
log.h
support
Definition: pipewire.c:79
pw_properties
Definition: properties.h:49
pw_properties::pw_properties_free
SPA_EXPORT void pw_properties_free(struct pw_properties *properties)
Free a properties object.
Definition: properties.c:386
object_entry
Definition: context.c:1187
pw_context_get_conf_section
const SPA_EXPORT char * pw_context_get_conf_section(struct pw_context *context, const char *section)
Get a config section for this context.
Definition: context.c:520
SPA_KEY_LIBRARY_NAME
#define SPA_KEY_LIBRARY_NAME
the name of a library.
Definition: plugin.h:216
spa_debug_type_find_name
const char * spa_debug_type_find_name(const struct spa_type_info *info, uint32_t type)
Definition: types.h:68
spa_hook_list_clean
void spa_hook_list_clean(struct spa_hook_list *list)
Definition: hook.h:124
spa_list_append
#define spa_list_append(list, item)
Definition: list.h:81
pw_log_warn
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87