summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQball Cow <qball@gmpclient.org>2014-01-21 00:20:09 +0100
committerQball Cow <qball@gmpclient.org>2014-01-21 00:20:09 +0100
commit3a44951e9f5d3cc7790f5dc087fe69a0c919ca62 (patch)
tree81ca46900f7d6551607bcd81f86d4b57eaec14c5 /include
parent5e72018497207e3902bfd95e103b79ee4066c89f (diff)
More cleanups to make more extendable
Diffstat (limited to 'include')
-rw-r--r--include/simpleswitcher.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/simpleswitcher.h b/include/simpleswitcher.h
index dae7f894..95c9f9f3 100644
--- a/include/simpleswitcher.h
+++ b/include/simpleswitcher.h
@@ -15,15 +15,10 @@ typedef enum {
} SwitcherMode;
-// window lists
-typedef struct {
- Window *array;
- void **data;
- int len;
-} winlist;
+typedef int (*menu_match_cb)(char **tokens, const char *input, int index, void *data);
int menu( char **lines, char **input, char *prompt,
- int selected, Time *time, int *shift, winlist *ids );
+ int selected, Time *time, int *shift, menu_match_cb mmc, void *mmc_data);
/**