Library Initialization¶
-
enum WpInitFlags¶
Flags for wp_init()
Values:
-
enumerator WP_INIT_PIPEWIRE = (1 << 0)¶
Initialize PipeWire by calling pw_init()
-
enumerator WP_INIT_SPA_TYPES = (1 << 1)¶
Initialize support for dynamic spa types. See wp_spa_dynamic_type_init()
-
enumerator WP_INIT_SET_PW_LOG = (1 << 2)¶
Override PipeWire’s logging system with WirePlumber’s one
-
enumerator WP_INIT_SET_GLIB_LOG = (1 << 3)¶
Set wp_log_writer_default() as GLib’s default log writer function
-
enumerator WP_INIT_ALL = 0xf¶
Initialize all of the above
-
enumerator WP_INIT_PIPEWIRE = (1 << 0)¶
-
void wp_init(WpInitFlags flags)¶
Initializes WirePlumber and PipeWire underneath.
flags can modify which parts are initialized, in cases where you want to handle part of this initialization externally.
- Parameters
flags – initialization flags
-
const gchar *wp_get_module_dir(void)¶
Gets the Wireplumber module directory.
- Returns
The Wireplumber module directory
-
const gchar *wp_get_config_dir(void)¶
Gets the Wireplumber configuration directory.
- Returns
The Wireplumber configuration directory
-
const gchar *wp_get_data_dir(void)¶
Gets the Wireplumber data directory.
- Returns
The Wireplumber data directory