swaynag: split config into own file and fix optind

This commit is contained in:
Brian Ashworth 2018-07-28 22:56:12 -04:00
parent 58f3fa74ae
commit 6124d0f9a2
6 changed files with 315 additions and 289 deletions

13
include/swaynag/config.h Normal file
View file

@ -0,0 +1,13 @@
#ifndef _SWAY_NAGBAR_CONFIG_H
#define _SWAY_NAGBAR_CONFIG_H
#include "swaynag/nagbar.h"
#include "list.h"
int nagbar_parse_options(int argc, char **argv, struct sway_nagbar *nagbar,
list_t *types, char **config, bool *debug);
char *nagbar_get_config_path(void);
int nagbar_load_config(char *path, struct sway_nagbar *nagbar, list_t *types);
#endif