summaryrefslogtreecommitdiffstats
path: root/include/swaynag/types.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-28 09:34:25 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-08-01 22:47:54 -0400
commit8463a2896a932cd99f3dc93608b03cb4aba93293 (patch)
treeb8c4ba994cf4d9ca7510d0f80a1864cce144092a /include/swaynag/types.h
parentAddress first round review for swaynag (diff)
downloadsway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.gz
sway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.zst
sway-8463a2896a932cd99f3dc93608b03cb4aba93293.zip
swaynag: implement config file support
Diffstat (limited to 'include/swaynag/types.h')
-rw-r--r--include/swaynag/types.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
new file mode 100644
index 00000000..32056514
--- /dev/null
+++ b/include/swaynag/types.h
@@ -0,0 +1,25 @@
1#ifndef _SWAY_NAGBAR_TYPES_H
2#define _SWAY_NAGBAR_TYPES_H
3
4struct sway_nagbar_type {
5 char *name;
6 uint32_t button_background;
7 uint32_t background;
8 uint32_t text;
9 uint32_t border;
10 uint32_t border_bottom;
11};
12
13void nagbar_types_add_default(list_t *types);
14
15struct sway_nagbar_type *nagbar_type_get(list_t *types, char *name);
16
17struct sway_nagbar_type *nagbar_type_clone(struct sway_nagbar_type *type);
18
19void nagbar_type_free(struct sway_nagbar_type *type);
20
21void nagbar_types_free(list_t *types);
22
23int nagbar_parse_type(int argc, char **argv, struct sway_nagbar_type *type);
24
25#endif