summaryrefslogtreecommitdiff
path: root/examples/dte/commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dte/commands.h')
-rw-r--r--examples/dte/commands.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/dte/commands.h b/examples/dte/commands.h
new file mode 100644
index 0000000..cfebdd2
--- /dev/null
+++ b/examples/dte/commands.h
@@ -0,0 +1,22 @@
+#ifndef COMMANDS_H
+#define COMMANDS_H
+
+#include <stdbool.h>
+#include "command/run.h"
+#include "config.h"
+#include "util/macros.h"
+#include "util/ptr-array.h"
+#include "util/string-view.h"
+
+extern const CommandSet normal_commands;
+
+struct EditorState;
+
+const Command *find_normal_command(const char *name) NONNULL_ARGS;
+const char *find_normal_alias(const char *name, void *userdata) NONNULL_ARGS;
+bool handle_normal_command(struct EditorState *e, const char *cmd, bool allow_recording) NONNULL_ARGS;
+void exec_normal_config(struct EditorState *e, StringView config) NONNULL_ARGS;
+int read_normal_config(struct EditorState *e, const char *filename, ConfigFlags flags) NONNULL_ARGS;
+void collect_normal_commands(PointerArray *a, const char *prefix) NONNULL_ARGS;
+
+#endif