mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
Remove glib from config loading
This commit is contained in:
parent
1a48bccca0
commit
b9e2b1c0e3
5 changed files with 67 additions and 23 deletions
|
|
@ -48,6 +48,11 @@ typedef struct {
|
|||
size_t size;
|
||||
} PinosTransportInfo;
|
||||
|
||||
/**
|
||||
* PinosTransportArea:
|
||||
*
|
||||
* Shared structure between client and server
|
||||
*/
|
||||
struct _PinosTransportArea {
|
||||
unsigned int max_inputs;
|
||||
unsigned int n_inputs;
|
||||
|
|
|
|||
|
|
@ -81,3 +81,23 @@ pinos_free_strv (char **str)
|
|||
free (str[i]);
|
||||
free (str);
|
||||
}
|
||||
|
||||
char *
|
||||
pinos_strip (char *str,
|
||||
const char *whitespace)
|
||||
{
|
||||
char *e, *l = NULL;
|
||||
|
||||
str += strspn (str, whitespace);
|
||||
|
||||
for (e = str; *e; e++)
|
||||
if (!strchr (whitespace, *e))
|
||||
l = e;
|
||||
|
||||
if (l)
|
||||
*(l+1) = '\0';
|
||||
else
|
||||
*str = '\0';
|
||||
|
||||
return str;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ char ** pinos_split_strv (const char *str,
|
|||
int *n_tokens);
|
||||
void pinos_free_strv (char **str);
|
||||
|
||||
char * pinos_strip (char *str,
|
||||
const char *whitespace);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue