|
PipeWire 1.4.10
|
Initializing PipeWire and loading SPA modules. More...
Files | |
| file | pipewire.h |
| pipewire/pipewire.h | |
Functions | |
| void | pw_init (int *argc, char **argv[]) |
| Initialize PipeWire. | |
| void | pw_deinit (void) |
| Deinitialize PipeWire. | |
| bool | pw_debug_is_category_enabled (const char *name) |
| Check if a debug category is enabled. | |
| const char * | pw_get_application_name (void) |
| Get the application name. | |
| const char * | pw_get_prgname (void) |
| Get the program name. | |
| const char * | pw_get_user_name (void) |
| Get the user name. | |
| const char * | pw_get_host_name (void) |
| Get the host name. | |
| const char * | pw_get_client_name (void) |
| Get the client name. | |
| bool | pw_check_option (const char *option, const char *value) |
| enum pw_direction | pw_direction_reverse (enum pw_direction direction) |
| Reverse the direction. | |
| int | pw_set_domain (const char *domain) |
| const char * | pw_get_domain (void) |
| uint32_t | pw_get_support (struct spa_support *support, uint32_t max_support) |
| 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[]) |
| int | pw_unload_spa_handle (struct spa_handle *handle) |
Initializing PipeWire and loading SPA modules.
| void pw_init | ( | int * | argc, |
| char ** | argv[] ) |
Initialize PipeWire.
| argc | pointer to argc |
| argv | pointer to argv |
Initialize the PipeWire system, parse and modify any parameters given by argc and argv and set up debugging.
This function can be called multiple times.
| void pw_deinit | ( | void | ) |
Deinitialize PipeWire.
Deinitialize the PipeWire system and free up all resources allocated by pw_init().
Before 0.3.49 this function can only be called once after which the pipewire library can not be used again. This is usually called by test programs to check for memory leaks.
Since 0.3.49 this function must be paired with an equal amount of pw_init() calls to deinitialize the PipeWire library. The PipeWire library can be used again after being deinitialized with a new pw_init() call.
| bool pw_debug_is_category_enabled | ( | const char * | name | ) |
Check if a debug category is enabled.
| name | the name of the category to check |
Debugging categories can be enabled by using the PIPEWIRE_DEBUG environment variable
| const char * pw_get_application_name | ( | void | ) |
Get the application name.
| const char * pw_get_prgname | ( | void | ) |
Get the program name.
| const char * pw_get_user_name | ( | void | ) |
Get the user name.
| const char * pw_get_host_name | ( | void | ) |
Get the host name.
| const char * pw_get_client_name | ( | void | ) |
Get the client name.
Make a new PipeWire client name that can be used to construct a remote.
| bool pw_check_option | ( | const char * | option, |
| const char * | value ) |
| enum pw_direction pw_direction_reverse | ( | enum pw_direction | direction | ) |
Reverse the direction.
| int pw_set_domain | ( | const char * | domain | ) |
| const char * pw_get_domain | ( | void | ) |
| uint32_t pw_get_support | ( | struct spa_support * | support, |
| uint32_t | max_support ) |
| 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[] ) |
| int pw_unload_spa_handle | ( | struct spa_handle * | handle | ) |