summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-04-28 07:40:40 +0100
committeruint23 <[email protected]>2025-04-28 07:40:40 +0100
commit0a1816addb7dcc1462767d6cafb2bf51dcc1c122 (patch)
tree6a655e649052f978d6a2d98d74f41ccc415c111d /src/parser.h
parentbc2401064614e9a87a01189e177a2a7978ff5522 (diff)
parser not stable, testing
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/parser.h b/src/parser.h
index 997e245..29e2435 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -1,19 +1,11 @@
#pragma once
#include "defs.h"
+#define MAX_ARGS 64
-static struct { const char *n; void (*fn)(void); } call_table[] = {
- {"close_window", close_focused},
- {"decrease_gaps", dec_gaps},
- {"focus_next", focus_next},
- {"focus_previous", focus_prev},
- {"increase_gaps", inc_gaps},
- {"master_next", move_master_next},
- {"master_previous", move_master_prev},
- {"quit", quit},
- {"master_increase", resize_master_add},
- {"master_decrease", resize_master_sub},
- {"floating", toggle_floating},
- {"global_floating", toggle_floating_global},
- {"fullscreen", toggle_fullscreen},
- {NULL,NULL}
-};
+void handler(char *command, char *arg, unsigned int mods, KeySym keysym, Action action, Bool is_func, Config *user_config);
+void parser(Config *user_config);
+unsigned int parse_mods(const char *mods, Config *user_config);
+KeySym parse_keysym(const char *key);
+char* strip_quotes(char *s);
+char* strip(char *str);
+static const char** build_argv(char *cmdline);