summaryrefslogtreecommitdiff
path: root/client/common/common.h
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2014-10-25 20:43:37 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2014-10-25 20:43:52 +0300
commit9f13ca2e6d4fd6ce388c9cf5cb098abba01d6a0a (patch)
treebddab809d8f492727ed522331a9432b0d4d7c670 /client/common/common.h
parent595ff4f687868392e3fb6e8fe03fb6499e4da11c (diff)
downloadbemenu-9f13ca2e6d4fd6ce388c9cf5cb098abba01d6a0a.tar.gz
bemenu-9f13ca2e6d4fd6ce388c9cf5cb098abba01d6a0a.tar.bz2
bemenu-9f13ca2e6d4fd6ce388c9cf5cb098abba01d6a0a.zip
Share client code, add bemenu-run
Diffstat (limited to 'client/common/common.h')
-rw-r--r--client/common/common.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/client/common/common.h b/client/common/common.h
new file mode 100644
index 0000000..b87b974
--- /dev/null
+++ b/client/common/common.h
@@ -0,0 +1,28 @@
+#ifndef _BM_COMMON_H_
+#define _BM_COMMON_H_
+
+#include <bemenu.h>
+
+struct client {
+ enum bm_prioritory prioritory;
+ enum bm_filter_mode filter_mode;
+ int32_t wrap;
+ uint32_t lines;
+ const char *colors[BM_COLOR_LAST];
+ const char *title;
+ const char *renderer;
+ char *font;
+ uint32_t font_size;
+ int32_t selected;
+ int32_t bottom;
+ int32_t grab;
+ int32_t monitor;
+};
+
+void parse_args(struct client *client, int *argc, char **argv[]);
+struct bm_menu* menu_with_options(struct client *client);
+enum bm_run_result run_menu(struct bm_menu *menu);
+
+#endif /* _BM_COMMON_H_ */
+
+/* vim: set ts=8 sw=4 tw=0 :*/