Lines Matching defs:prefix
480 static char *get_name(const char *key, const char *prefix) {
483 if (strncmp(key, prefix, strlen(prefix)))
486 t = pa_xstrdup(key + strlen(prefix));
490 static inline struct entry *load_or_initialize_entry(struct userdata *u, struct entry *entry, const char *name, const char *prefix) {
496 pa_assert(prefix);
511 /* Find all existing devices with the same prefix so we calculate the current max priority for each role */
517 if (key.size > strlen(prefix) && strncmp(key.data, prefix, strlen(prefix)) == 0) {
557 static void update_highest_priority_device_indexes(struct userdata *u, const char *prefix, void *ignore_device) {
563 pa_assert(prefix);
565 sink_mode = pa_streq(prefix, "sink:");
579 /* Find all existing devices with the same prefix so we find the highest priority device for each role */
585 if (key.size > strlen(prefix) && strncmp(key.data, prefix, strlen(prefix)) == 0) {
590 pa_assert_se(device_name = get_name(name, prefix));