PipeWire  0.3.36
PipeWire initialization and infrastructure functions

Functions

void pw_init (int *argc, char **argv[])
 Initialize PipeWire. More...
 
void pw_deinit (void)
 
bool pw_debug_is_category_enabled (const char *name)
 Check if a debug category is enabled. More...
 
const char * pw_get_application_name (void)
 Get the application name. More...
 
const char * pw_get_prgname (void)
 Get the program name. More...
 
const char * pw_get_user_name (void)
 Get the user name. More...
 
const char * pw_get_host_name (void)
 Get the host name. More...
 
const char * pw_get_client_name (void)
 Get the client name. More...
 
bool pw_in_valgrind (void)
 
bool pw_check_option (const char *option, const char *value)
 
enum pw_direction pw_direction_reverse (enum pw_direction direction)
 Reverse the direction. More...
 
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_handlepw_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)
 

Detailed Description

Function Documentation

◆ pw_check_option()

bool pw_check_option ( const char *  option,
const char *  value 
)

References spa_streq().

◆ pw_debug_is_category_enabled()

bool pw_debug_is_category_enabled ( const char *  name)

Check if a debug category is enabled.

Parameters
namethe name of the category to check
Returns
true if enabled

Debugging categories can be enabled by using the PIPEWIRE_DEBUG environment variable

◆ pw_deinit()

void pw_deinit ( void  )

◆ pw_direction_reverse()

enum pw_direction pw_direction_reverse ( enum pw_direction  direction)

Reverse the direction.

References pw_get_application_name(), and pw_get_prgname().

Referenced by pw_impl_port_set_mix().

◆ pw_get_application_name()

const char* pw_get_application_name ( void  )

Get the application name.

Referenced by pw_direction_reverse().

◆ pw_get_client_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.

◆ pw_get_domain()

const char* pw_get_domain ( void  )

◆ pw_get_host_name()

const char* pw_get_host_name ( void  )

Get the host name.

Referenced by pw_context_create_core().

◆ pw_get_prgname()

const char* pw_get_prgname ( void  )

Get the program name.

Referenced by pw_direction_reverse().

◆ pw_get_support()

uint32_t pw_get_support ( struct spa_support support,
uint32_t  max_support 
)

References n, and SPA_MIN.

Referenced by pw_loop_new().

◆ pw_get_user_name()

const char* pw_get_user_name ( void  )

Get the user name.

Referenced by pw_context_create_core().

◆ pw_in_valgrind()

bool pw_in_valgrind ( void  )

Referenced by pw_impl_module_destroy().

◆ pw_init()

void pw_init ( int *  argc,
char **  argv[] 
)

Initialize PipeWire.

Parameters
argcpointer to argc
argvpointer to argv

Initialize the PipeWire system, parse and modify any parameters given by argc and argv and set up debugging.

The environment variable PIPEWIRE_DEBUG

◆ 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[] 
)

◆ pw_set_domain()

int pw_set_domain ( const char *  domain)

◆ pw_unload_spa_handle()

int pw_unload_spa_handle ( struct spa_handle handle)