extern char *current_configpath;
extern Config config;
extern SLIST_HEAD(modes_head, Mode) modes;
-extern SLIST_HEAD(barconfig_head, Barconfig) barconfigs;
+extern TAILQ_HEAD(barconfig_head, Barconfig) barconfigs;
/**
* Used during the config file lexing/parsing to keep the state of the lexer
char *urgent_workspace_bg;
} colors;
- SLIST_ENTRY(Barconfig) configs;
+ TAILQ_ENTRY(Barconfig) configs;
};
/**
char *current_configpath = NULL;
Config config;
struct modes_head modes;
-struct barconfig_head barconfigs;
+struct barconfig_head barconfigs = TAILQ_HEAD_INITIALIZER(barconfigs);
/**
* Ungrabs all keys, to be called before re-grabbing the keys because of a
strncpy(bar_id, (const char*)message, message_size);
LOG("IPC: looking for config for bar ID \"%s\"\n", bar_id);
Barconfig *current, *config = NULL;
- SLIST_FOREACH(current, &barconfigs, configs) {
+ TAILQ_FOREACH(current, &barconfigs, configs) {
if (strcmp(current->id, bar_id) != 0)
continue;