PipeWire: PipeWire initialization and infrastructure functions

PipeWire 0.3.34

Functions
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_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)

## 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

  name | the 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 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

  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.

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

Referenced by pw_context_load_spa_handle(), and pw_loop_new().

## ◆ pw_set_domain()

int pw_set_domain | ( | const char * | domain | ) |

## ◆ pw_unload_spa_handle()

int pw_unload_spa_handle | ( | struct spa_handle * | handle | ) |

Referenced by pw_context_destroy(), pw_impl_port_set_mix(), pw_loop_destroy(), and pw_loop_new().