Go to the documentation of this file.
61 #include <pipewire/version.h>
72 pw_init(
int *argc,
char **argv[]);
107 const char *factory_name,
enum spa_log_level pw_log_level
The global log level.
Definition: log.c:39
const char * pw_ngettext(const char *msgid, const char *msgid_plural, unsigned long int n)
Definition: pipewire.c:425
#define PW_DIRECTION_INPUT
Definition: port.h:57
#define SUPPORTLIB
Definition: pipewire.c:53
Definition: module-filter-chain.c:170
char * factory_name
Definition: pipewire.c:71
#define SPA_KEY_LOG_FILE
log to the specified file instead of stderr.
Definition: build-12683127/doc/spa/support/log.h:182
#define SPA_TYPE_INTERFACE_I18N
Definition: build-12683127/doc/spa/support/i18n.h:40
const char * spa_i18n_ntext(struct spa_i18n *i18n, const char *msgid, const char *msgid_plural, unsigned long int n)
Definition: build-12683127/doc/spa/support/i18n.h:83
const char * pw_gettext(const char *msgid)
Definition: pipewire.c:420
const char * pw_get_prgname(void)
Get the program name.
Definition: pipewire.c:653
#define SPA_VERSION_I18N
Definition: build-12683127/doc/spa/support/i18n.h:42
#define spa_zero(x)
Definition: defs.h:303
Definition: build-12683127/doc/spa/support/i18n.h:45
#define MAX_SUPPORT
Definition: pipewire.c:51
#define SPA_SUPPORT_INIT(type, data)
Definition: plugin.h:107
void pw_init(int *argc, char **argv[])
Initialize PipeWire.
Definition: pipewire.c:483
#define SPA_DICT_ITEM_INIT(key, value)
Definition: utils/dict.h:46
struct spa_list handles
Definition: pipewire.c:64
int ref
Definition: pipewire.c:65
Definition: build-12683127/doc/spa/utils/type.h:137
int ref
Definition: pipewire.c:72
bool spa_streq(const char *s1, const char *s2)
Definition: string.h:50
#define spa_list_for_each(pos, head, member)
Definition: list.h:111
#define SPA_NAME_SUPPORT_LOG
A Log interface.
Definition: names.h:43
uint32_t pw_get_support(struct spa_support *support, uint32_t max_support)
Definition: pipewire.c:233
#define spa_aprintf(_fmt,...)
Definition: defs.h:323
#define SPA_EXPORT
Definition: defs.h:208
const char * pw_get_application_name(void)
Get the application name.
Definition: pipewire.c:610
spa_handle_factory_enum_func_t enum_func
Definition: pipewire.c:63
#define SPA_KEY_LOG_TIMESTAMP
log timestamps
Definition: build-12683127/doc/spa/support/log.h:184
const char * pw_get_user_name(void)
Get the user name.
Definition: pipewire.c:663
Definition: build-12683127/doc/spa/support/i18n.h:43
void pw_free_strv(char **str)
Free a NULL terminated array of strings.
Definition: utils.c:98
#define SPA_DICT_INIT(items, n_items)
Definition: utils/dict.h:55
unsigned int no_config
Definition: pipewire.c:91
Definition: pipewire.c:68
const char * pw_get_client_name(void)
Get the client name.
Definition: pipewire.c:711
void pw_deinit(void)
Definition: pipewire.c:563
#define SPA_VERSION_I18N_METHODS
Definition: build-12683127/doc/spa/support/i18n.h:46
const char * type
Definition: plugin.h:90
#define SPA_INTERFACE_INIT(_type, _version, _funcs, _data)
Initialize a spa_interface.
Definition: hook.h:165
Definition: utils/dict.h:41
#define spa_list_consume(pos, head, member)
Definition: list.h:96
enum pw_direction pw_direction_reverse(enum pw_direction direction)
Reverse the direction.
Definition: pipewire.c:729
const struct spa_type_info * pw_type_info(void)
Definition: pipewire.c:751
const struct spa_dict * info
Extra information about the handles of this factory.
Definition: plugin.h:130
#define PW_DIRECTION_OUTPUT
Definition: port.h:58
const struct spa_type_info spa_types[]
Definition: utils/type-info.h:78
void spa_list_remove(struct spa_list *elem)
Definition: list.h:69
char ** pw_split_strv(const char *str, const char *delimiter, int max_tokens, int *n_tokens)
Split a string based on delimiters.
Definition: utils.c:66
Definition: build-12683127/doc/spa/support/log.h:61
Definition: pipewire.c:59
const char * pw_get_host_name(void)
Get the host name.
Definition: pipewire.c:675
#define SPA_KEY_LOG_COLORS
enable colors in the logger
Definition: build-12683127/doc/spa/support/log.h:181
const char * support_lib
Definition: pipewire.c:83
enum spa_log_level level
Logging level, everything above this level is not logged.
Definition: build-12683127/doc/spa/support/log.h:69
void * data
Definition: plugin.h:91
char * i18n_domain
Definition: pipewire.c:85
#define SPA_HANDLE_FACTORY_ENUM_FUNC_NAME
Definition: plugin.h:196
void spa_list_init(struct spa_list *list)
Definition: list.h:44
struct spa_support support[MAX_SUPPORT]
Definition: pipewire.c:87
Definition: utils/dict.h:48
struct spa_handle handle SPA_ALIGNED(8)
unsigned int no_color
Definition: pipewire.c:90
uint32_t n_support
Definition: pipewire.c:88
bool pw_debug_is_category_enabled(const char *name)
Check if a debug category is enabled.
Definition: pipewire.c:594
struct registry * registry
Definition: pipewire.c:84
#define spa_strerror(err)
Definition: result.h:51
struct spa_interface i18n_iface
Definition: pipewire.c:86
struct spa_list plugins
Definition: pipewire.c:77
unsigned int in_valgrind
Definition: pipewire.c:89
#define pw_log_debug(...)
Definition: src/pipewire/log.h:89
bool pw_in_valgrind(void)
Definition: pipewire.c:687
void * hnd
Definition: pipewire.c:62
#define spa_handle_get_interface(h,...)
Definition: plugin.h:73
#define SPA_MIN(a, b)
Definition: defs.h:123
int(* spa_handle_factory_enum_func_t)(const struct spa_handle_factory **factory, uint32_t *index)
The function signature of the entry point in a plugin.
Definition: plugin.h:193
const char * spa_i18n_text(struct spa_i18n *i18n, const char *msgid)
Definition: build-12683127/doc/spa/support/i18n.h:72
#define SPA_ID_INVALID
Definition: defs.h:182
void pw_log_set_level(enum spa_log_level level)
Configure the logging level.
Definition: log.c:71
int pw_unload_spa_handle(struct spa_handle *handle)
Definition: pipewire.c:321
#define spa_handle_clear(h)
Definition: plugin.h:74
#define SPA_KEY_CPU_FORCE
keys can be given when initializing the cpu handle
Definition: cpu.h:151
#define SPA_TYPE_INTERFACE_Log
The Log interface.
Definition: build-12683127/doc/spa/support/log.h:58
struct spa_log * pw_log_get(void)
Get the log interface.
Definition: log.c:62
#define spa_memzero(x, l)
Definition: defs.h:302
bool pw_log_is_default(void)
Definition: log.c:53
struct spa_list link
Definition: pipewire.c:69
#define pw_log_warn(...)
Definition: src/pipewire/log.h:87
Definition: pipewire.c:76
struct spa_list link
Definition: pipewire.c:60
const char * plugin_dir
Definition: pipewire.c:82
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
#define pw_log_info(...)
Definition: src/pipewire/log.h:88
#define spa_handle_factory_init(h,...)
Definition: plugin.h:181
#define SPA_KEY_LOG_LEVEL
keys can be given when initializing the logger handle
Definition: build-12683127/doc/spa/support/log.h:180
bool pw_check_option(const char *option, const char *value)
Definition: pipewire.c:693
const char * name
The name of the factory contains a logical name that describes the function of the handle.
Definition: plugin.h:126
Extra supporting infrastructure passed to the init() function of a factory.
Definition: plugin.h:89
void pw_log_set(struct spa_log *log)
Configure a logging module.
Definition: log.c:47
#define SPA_NAME_SUPPORT_CPU
for factory names
Definition: names.h:41
struct plugin * plugin
Definition: pipewire.c:70
int pw_set_domain(const char *domain)
Definition: pipewire.c:357
#define spa_handle_factory_get_size(h,...)
Definition: plugin.h:180
#define SPA_TYPE_INTERFACE_CPU
The CPU features interface.
Definition: cpu.h:49
uint32_t version
Definition: plugin.h:112
bool spa_atob(const char *str)
Convert str to a boolean.
Definition: string.h:213
const char * pw_get_library_version(void)
Get the currently running version.
Definition: pipewire.c:740
#define pw_direction
The direction of a port.
Definition: port.h:56
char * filename
Definition: pipewire.c:61
Definition: pipewire.c:80
char ** categories
Definition: pipewire.c:81
#define SPA_KEY_LOG_LINE
log file and line numbers
Definition: build-12683127/doc/spa/support/log.h:185
const char * pw_get_domain(void)
Definition: pipewire.c:368
#define SPA_KEY_CPU_VM_TYPE
force a VM type
Definition: cpu.h:152
#define pw_log_error(...)
Definition: src/pipewire/log.h:86
#define spa_list_append(list, item)
Definition: list.h:81