mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
swaynag: split config into own file and fix optind
This commit is contained in:
parent
58f3fa74ae
commit
6124d0f9a2
6 changed files with 315 additions and 289 deletions
13
include/swaynag/config.h
Normal file
13
include/swaynag/config.h
Normal 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
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue