This will allow it to be used by modules to create valid sink names.
return TRUE;
}
-static char* cleanup_name(const char *name) {
+const char* pa_namereg_make_valid_name(const char *name) {
const char *a;
char *b, *n;
if (fail)
return NULL;
- if (!(name = n = cleanup_name(name)))
+ if (!(name = n = pa_namereg_make_valid_name(name)))
return NULL;
}
const char *pa_namereg_get_default_source_name(pa_core *c);
pa_bool_t pa_namereg_is_valid_name(const char *name);
+const char* pa_namereg_make_valid_name(const char *name);
#endif