diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-07-28 22:56:12 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-07-28 22:56:12 -0400 |
| commit | f21f0d10c2bcdd1b07e2642347d72fa5bedf21e6 (patch) | |
| tree | fbc9b0fac38809907d51bdcc7b30367c623e7b55 /include | |
| parent | aed2799a285bb6556c76accf47fd5a67872b4e27 (diff) | |
swaynag: split config into own file and fix optind
Diffstat (limited to 'include')
| -rw-r--r-- | include/swaynag/config.h | 13 | ||||
| -rw-r--r-- | include/swaynag/nagbar.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/swaynag/config.h b/include/swaynag/config.h new file mode 100644 index 00000000..caa32710 --- /dev/null +++ b/include/swaynag/config.h @@ -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 diff --git a/include/swaynag/nagbar.h b/include/swaynag/nagbar.h index b5d9b2cb..4ef101e9 100644 --- a/include/swaynag/nagbar.h +++ b/include/swaynag/nagbar.h @@ -1,6 +1,7 @@ #ifndef _SWAY_NAGBAR_NAGBAR_H #define _SWAY_NAGBAR_NAGBAR_H #include <stdint.h> +#include <strings.h> #include "list.h" #include "pool-buffer.h" #include "swaynag/types.h" |
