PipeWire  0.3.33
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 
62 struct pw_context;
63 
64 struct pw_global;
65 struct pw_impl_client;
66 
67 #include <pipewire/core.h>
68 #include <pipewire/loop.h>
69 #include <pipewire/properties.h>
70 
73 #define PW_VERSION_CONTEXT_EVENTS 0
74  uint32_t version;
75 
77  void (*destroy) (void *data);
79  void (*free) (void *data);
81  void (*check_access) (void *data, struct pw_impl_client *client);
83  void (*global_added) (void *data, struct pw_global *global);
85  void (*global_removed) (void *data, struct pw_global *global);
86 };
87 
89 struct pw_context * pw_context_new(struct pw_loop *main_loop,
90  struct pw_properties *props,
91  size_t user_data_size );
92 
94 void pw_context_destroy(struct pw_context *context);
95 
97 void *pw_context_get_user_data(struct pw_context *context);
98 
100 void pw_context_add_listener(struct pw_context *context,
101  struct spa_hook *listener,
102  const struct pw_context_events *events,
103  void *data);
104 
106 const struct pw_properties *pw_context_get_properties(struct pw_context *context);
107 
109 int pw_context_update_properties(struct pw_context *context, const struct spa_dict *dict);
110 
112 const char *pw_context_get_conf_section(struct pw_context *context, const char *section);
113 
115 const struct spa_support *pw_context_get_support(struct pw_context *context, uint32_t *n_support);
116 
118 struct pw_loop *pw_context_get_main_loop(struct pw_context *context);
119 
121 struct pw_work_queue *pw_context_get_work_queue(struct pw_context *context);
122 
127 int pw_context_for_each_global(struct pw_context *context,
128  int (*callback) (void *data, struct pw_global *global),
129  void *data);
130 
132 struct pw_global *pw_context_find_global(struct pw_context *context,
133  uint32_t id );
134 
136 int pw_context_add_spa_lib(struct pw_context *context, const char *factory_regex, const char *lib);
137 
139 const char * pw_context_find_spa_lib(struct pw_context *context, const char *factory_name);
140 
141 struct spa_handle *pw_context_load_spa_handle(struct pw_context *context,
142  const char *factory_name,
143  const struct spa_dict *info);
144 
145 
148  struct spa_list link;
149  const char *type;
150  struct pw_proxy * (*func) (struct pw_core *core,
151  const char *type, const struct spa_dict *props, void *object,
152  size_t user_data_size);
153 };
154 
157 int pw_context_register_export_type(struct pw_context *context, struct pw_export_type *type);
159 const struct pw_export_type *pw_context_find_export_type(struct pw_context *context, const char *type);
160 
162 int pw_context_set_object(struct pw_context *context, const char *type, void *value);
164 void *pw_context_get_object(struct pw_context *context, const char *type);
165 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #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:85
pw_log_level
enum spa_log_level pw_log_level
The global log level.
Definition: log.c:39
pw_context_get_main_loop
struct pw_loop * pw_context_get_main_loop(struct pw_context *context)
get the context main loop
Definition: context.c:567
PW_PERM_IS_R
#define PW_PERM_IS_R(p)
Definition: permission.h:56
pw_properties_get
int int const char * pw_properties_get(const struct pw_properties *properties, const char *key)
Get a property.
Definition: properties.c:487
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:147
pw_context_register_export_type
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:1370
PW_KEY_APP_PROCESS_USER
#define PW_KEY_APP_PROCESS_USER
user name
Definition: src/pipewire/keys.h:120
pw_export_type::type
const char * type
Definition: context.h:149
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:800
pw_mempool_new
struct pw_mempool * pw_mempool_new(struct pw_properties *props)
Create a new memory pool.
Definition: mem.c:133
pw_get_prgname
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:653
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
metadata
Definition: impl-metadata.c:43
pw_data_loop_start
int pw_data_loop_start(struct pw_data_loop *loop)
Start the processing thread.
Definition: data-loop.c:204
pw_properties_update
int pw_properties_update(struct pw_properties *props, const struct spa_dict *dict)
Update properties.
Definition: properties.c:298
pw_context_get_support
const struct spa_support * pw_context_get_support(struct pw_context *context, uint32_t *n_support)
Get the context support objects.
Definition: context.c:560
PW_KEY_APP_PROCESS_ID
#define PW_KEY_APP_PROCESS_ID
process id (pid)
Definition: src/pipewire/keys.h:118
pw_context_events::destroy
void(* destroy)(void *data)
The context is being destroyed.
Definition: context.h:77
pw_context_new
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:249
pw_context_add_listener
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:551
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:1928
dbus.h
pw_mempool_destroy
void pw_mempool_destroy(struct pw_mempool *pool)
Clear and destroy a pool.
Definition: mem.c:168
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
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:1303
name
const char * name
Definition: media-session.c:2379
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:664
loop.h
PW_KEY_CONFIG_NAME
#define PW_KEY_CONFIG_NAME
a config file name
Definition: src/pipewire/keys.h:74
pw_context_recalc_graph
int pw_context_recalc_graph(struct pw_context *context, const char *reason)
Definition: context.c:1092
data
user data to add to an object
Definition: filter.c:75
SPA_FRACTION
#define SPA_FRACTION(num, denom)
Definition: defs.h:103
SPA_NODE_FLAG_NEED_CONFIGURE
#define SPA_NODE_FLAG_NEED_CONFIGURE
node needs configuration before it can be started.
Definition: build-12683127/doc/spa/node/node.h: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_node_state_as_string
const char * pw_node_state_as_string(enum pw_node_state state)
Convert a pw_node_state to a readable string.
Definition: introspect.c:34
pw_thread_utils_drop_rt
#define pw_thread_utils_drop_rt(...)
Definition: src/pipewire/thread.h:49
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_atou32
bool spa_atou32(const char *str, uint32_t *val, int base)
Convert str to an uint32_t with the given base and store the result in val.
Definition: string.h:137
spa_aprintf
#define spa_aprintf(_fmt,...)
Definition: defs.h:323
pw_get_support
uint32_t pw_get_support(struct spa_support *support, uint32_t max_support)
Definition: pipewire.c:233
pw_loop
Definition: src/pipewire/loop.h:47
SPA_EXPORT
#define SPA_EXPORT
Definition: defs.h:208
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:1393
pw_data_loop_get_thread
struct spa_thread * pw_data_loop_get_thread(struct pw_data_loop *loop)
Get the thread object.
Definition: data-loop.c:266
device
Definition: alsa-monitor.c:82
node
Definition: module-filter-chain.c:150
spa_fraction
Definition: defs.h:104
pw_get_user_name
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:663
impl
Definition: control.c:33
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: build-12683127/doc/spa/node/utils.h:92
thread.h
SPA_CPU_VM_NONE
#define SPA_CPU_VM_NONE
Definition: cpu.h:93
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:316
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
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:573
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:153
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
pw_thread_utils_acquire_rt
#define pw_thread_utils_acquire_rt(...)
Definition: src/pipewire/thread.h:48
handle
Definition: pipewire.c:68
pw_get_client_name
const char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:711
SPA_PRINTF_FUNC
#define SPA_PRINTF_FUNC(fmt, arg1)
Definition: defs.h:205
pw_array_remove
#define pw_array_remove(a, p)
Definition: array.h:82
SPA_POD_BUILDER_INIT
#define SPA_POD_BUILDER_INIT(buffer, size)
Definition: builder.h:71
props
const char * props
Definition: media-session.c:2382
SPA_TYPE_INTERFACE_DataLoop
#define SPA_TYPE_INTERFACE_DataLoop
Definition: build-12683127/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:293
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:729
pw_context_debug_port_params
int pw_context_debug_port_params(struct pw_context *this, struct spa_node *node, enum spa_direction direction, uint32_t port_id, uint32_t id, int err, const char *debug,...)
Definition: context.c:745
pw_context_for_each_global
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:619
PW_KEY_CORE_NAME
#define PW_KEY_CORE_NAME
The name of the core.
Definition: src/pipewire/keys.h:82
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
pw_context_events::check_access
void(* check_access)(void *data, struct pw_impl_client *client)
a new client object is added
Definition: context.h:81
queue
Definition: filter.c:68
pw_impl_node_set_state
int pw_impl_node_set_state(struct pw_impl_node *node, enum pw_node_state state)
Set the node state.
Definition: impl-node.c:2057
object_entry::value
void * value
Definition: context.c:1394
pw_context_events
context events emitted by the context object added with pw_context_add_listener
Definition: context.h:72
PW_DIRECTION_OUTPUT
#define PW_DIRECTION_OUTPUT
Definition: port.h:58
node::active
unsigned char active
Definition: bluez-autoswitch.c:82
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:53
SPA_N_ELEMENTS
#define SPA_N_ELEMENTS(arr)
Definition: defs.h:109
pw_context_find_global
struct pw_global * pw_context_find_global(struct pw_context *context, uint32_t id)
Find a context global by id.
Definition: context.c:636
pw_context_find_export_type
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:1382
filter
Definition: filter.c:126
PW_KEY_CONFIG_PREFIX
#define PW_KEY_CONFIG_PREFIX
a config prefix directory
Definition: src/pipewire/keys.h:73
spa_node
Definition: build-12683127/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:295
pw_get_host_name
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:675
PW_KEY_APP_PROCESS_BINARY
#define PW_KEY_APP_PROCESS_BINARY
binary name
Definition: src/pipewire/keys.h:119
PW_KEY_APP_NAME
#define PW_KEY_APP_NAME
application keys
Definition: src/pipewire/keys.h:108
pw_loop::system
struct spa_system * system
system utils
Definition: src/pipewire/loop.h:48
spa_json_init
void spa_json_init(struct spa_json *iter, const char *data, size_t size)
Definition: json.h:59
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:645
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:148
DEFAULT_VIDEO_WIDTH
#define DEFAULT_VIDEO_WIDTH
Definition: context.c:57
format.h
spa_handle
Definition: plugin.h:44
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:124
conf.h
DEFAULT_CLOCK_MIN_QUANTUM
#define DEFAULT_CLOCK_MIN_QUANTUM
Definition: context.c:54
SPA_LOG_LEVEL_DEBUG
@ SPA_LOG_LEVEL_DEBUG
Definition: build-12683127/doc/spa/support/log.h:51
SPA_FLAG_IS_SET
#define SPA_FLAG_IS_SET(field, flag)
Definition: defs.h:73
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:191
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
PW_KEY_LIBRARY_NAME_SYSTEM
#define PW_KEY_LIBRARY_NAME_SYSTEM
name of the system library to use
Definition: src/pipewire/keys.h:60
spa_dict
Definition: utils/dict.h:48
cpu.h
pw_context_update_properties
int pw_context_update_properties(struct pw_context *context, const struct spa_dict *dict)
Update context properties.
Definition: context.c:600
PW_NODE_STATE_SUSPENDED
@ PW_NODE_STATE_SUSPENDED
the node is suspended, the device might be closed
Definition: src/pipewire/node.h:59
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
int pw_context_set_object(struct pw_context *context, const char *type, void *value)
add an object to the context
Definition: context.c:1408
spa_json_get_string
int spa_json_get_string(struct spa_json *iter, char *res, int maxlen)
Definition: json.h:358
SPA_LOG_LEVEL_ERROR
@ SPA_LOG_LEVEL_ERROR
Definition: build-12683127/doc/spa/support/log.h:48
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
const struct pw_properties * pw_context_get_properties(struct pw_context *context)
Get the context properties.
Definition: context.c:581
pw_context_events::free
void(* free)(void *data)
The context is being freed.
Definition: context.h:79
pw_context_load_spa_handle
struct spa_handle * pw_context_load_spa_handle(struct pw_context *context, const char *factory_name, const struct spa_dict *info)
Definition: context.c:1340
spa_strerror
#define spa_strerror(err)
Definition: result.h:51
spa_fraction::denom
uint32_t denom
Definition: defs.h:106
pw_conf_load_conf
int pw_conf_load_conf(const char *prefix, const char *name, struct pw_properties *conf)
Definition: conf.c:344
utils.h
pw_context_get_object
void * pw_context_get_object(struct pw_context *context, const char *type)
get an object from the context
Definition: context.c:1430
pw_context_find_spa_lib
const 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:1328
param
Definition: filter.c:80
PW_KEY_APP_LANGUAGE
#define PW_KEY_APP_LANGUAGE
application language if applicable, in standard POSIX format.
Definition: src/pipewire/keys.h:115
PW_IMPL_PORT_STATE_CONFIGURE
@ PW_IMPL_PORT_STATE_CONFIGURE
the port is ready for format negotiation
Definition: impl-port.h:52
PW_KEY_APP_PROCESS_HOST
#define PW_KEY_APP_PROCESS_HOST
host name
Definition: src/pipewire/keys.h:121
DEFAULT_VIDEO_RATE_NUM
#define DEFAULT_VIDEO_RATE_NUM
Definition: context.c:59
pw_log_debug
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
PW_KEY_CORE_VERSION
#define PW_KEY_CORE_VERSION
The version of the core.
Definition: src/pipewire/keys.h:85
pw_context_destroy
void pw_context_destroy(struct pw_context *context)
Destroy a context object.
Definition: context.c:464
PW_KEY_WINDOW_X11_DISPLAY
#define PW_KEY_WINDOW_X11_DISPLAY
window system
Definition: src/pipewire/keys.h:128
client
Definition: module-protocol-native.c:103
NAME
#define NAME
Definition: context.c:50
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
pw_log_set_level
void pw_log_set_level(enum spa_log_level level)
Configure the logging level.
Definition: log.c:71
pw_unload_spa_handle
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:321
pw_settings_init
int pw_settings_init(struct pw_context *context)
Definition: settings.c:117
pw_settings_clean
void pw_settings_clean(struct pw_context *context)
Definition: settings.c:147
impl::context
struct pw_context * context
Definition: settings.c:43
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:154
pw_properties_set
int pw_properties_set(struct pw_properties *properties, const char *key, const char *value)
Set a property value.
Definition: properties.c:435
PW_ID_ANY
#define PW_ID_ANY
Definition: core.h:69
DEFAULT_CLOCK_POWER_OF_TWO_QUANTUM
#define DEFAULT_CLOCK_POWER_OF_TWO_QUANTUM
Definition: context.c:56
pw_data_loop_destroy
void pw_data_loop_destroy(struct pw_data_loop *loop)
Destroy the loop.
Definition: data-loop.c:163
DEFAULT_MEM_WARN_MLOCK
#define DEFAULT_MEM_WARN_MLOCK
Definition: context.c:62
DEFAULT_MEM_ALLOW_MLOCK
#define DEFAULT_MEM_ALLOW_MLOCK
Definition: context.c:63
pw_log_warn
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
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
The different node states.
Definition: src/pipewire/node.h:56
core.h
DEFAULT_VIDEO_HEIGHT
#define DEFAULT_VIDEO_HEIGHT
Definition: context.c:58
json.h
impl::this
struct pw_control this
Definition: control.c:34
spa_json_enter_array
int spa_json_enter_array(struct spa_json *iter, struct spa_json *sub)
Definition: json.h:222
pw_properties_copy
struct pw_properties * pw_properties_copy(const struct pw_properties *properties)
Copy a properties object.
Definition: properties.c:222
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:577
spa_type_param
const struct spa_type_info spa_type_param[]
Definition: param/type-info.h:46
defs.h
pw_impl_metadata_destroy
void pw_impl_metadata_destroy(struct pw_impl_metadata *metadata)
Definition: impl-metadata.c:346
pw_context_get_user_data
void * pw_context_get_user_data(struct pw_context *context)
Get the context user data.
Definition: context.c:545
SPA_TYPE_INTERFACE_Loop
#define SPA_TYPE_INTERFACE_Loop
Definition: build-12683127/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:242
pw_log_info
#define pw_log_info(...)
Definition: src/pipewire/log.h:88
pw_context_events::version
uint32_t version
Definition: context.h:74
pw_impl_node_destroy
void pw_impl_node_destroy(struct pw_impl_node *node)
Destroy a node.
Definition: impl-node.c:1707
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
spa_hook_list_init
void spa_hook_list_init(struct spa_hook_list *list)
Initialize a hook list to the empty list.
Definition: hook.h:305
properties.h
pw_impl_node_set_driver
int pw_impl_node_set_driver(struct pw_impl_node *node, struct pw_impl_node *driver)
Definition: impl-node.c:771
names.h
pw_loop::loop
struct spa_loop * loop
wrapped loop
Definition: src/pipewire/loop.h:49
spa_fraction::num
uint32_t num
Definition: defs.h:105
SPA_TYPE_INTERFACE_LoopUtils
#define SPA_TYPE_INTERFACE_LoopUtils
Definition: build-12683127/doc/spa/support/loop.h:50
DEFAULT_CLOCK_MAX_QUANTUM
#define DEFAULT_CLOCK_MAX_QUANTUM
Definition: context.c:55
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:61
pw_properties_new
struct pw_properties * pw_properties_new(const char *key,...) 1
Make a new properties object.
Definition: properties.c:98
pw_context_events::global_added
void(* global_added)(void *data, struct pw_global *global)
a new global object was added
Definition: context.h:83
DEFAULT_VIDEO_RATE_DENOM
#define DEFAULT_VIDEO_RATE_DENOM
Definition: context.c:60
pw_properties_setf
int pw_properties_setf(struct pw_properties *properties, const char *key, const char *format,...) 1(3
spa_pod_builder
Definition: builder.h:63
hook.h
PW_KEY_LIBRARY_NAME_DBUS
#define PW_KEY_LIBRARY_NAME_DBUS
name of the dbus library to use
Definition: src/pipewire/keys.h:62
SPA_TYPE_INTERFACE_CPU
#define SPA_TYPE_INTERFACE_CPU
The CPU features interface.
Definition: cpu.h:49
DEFAULT_CLOCK_RATE
#define DEFAULT_CLOCK_RATE
Definition: context.c:52
SPA_TYPE_INTERFACE_DBus
#define SPA_TYPE_INTERFACE_DBus
Definition: dbus.h:39
spa_json
Definition: json.h:49
log.h
support
Definition: pipewire.c:80
pw_properties
Definition: properties.h:49
spa_hook_list_clean
void spa_hook_list_clean(struct spa_hook_list *list)
Remove all hooks from the list.
Definition: hook.h:344
pw_properties_free
void pw_properties_free(struct pw_properties *properties)
Free a properties object.
Definition: properties.c:364
object_entry
Definition: context.c:1392
pw_context_get_conf_section
const char * pw_context_get_conf_section(struct pw_context *context, const char *section)
Get a config section for this context.
Definition: context.c:587
SPA_KEY_LIBRARY_NAME
#define SPA_KEY_LIBRARY_NAME
the name of a library.
Definition: plugin.h:216
pw_log_error
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
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_list_append
#define spa_list_append(list, item)
Definition: list.h:81
PW_KEY_CPU_MAX_ALIGN
#define PW_KEY_CPU_MAX_ALIGN
maximum alignment needed to support all CPU optimizations
Definition: src/pipewire/keys.h:92