summaryrefslogtreecommitdiff
path: root/src/command.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2022-12-06 12:58:51 +0100
committerAlbert Cervin <albert@acervin.com>2022-12-06 12:58:51 +0100
commit66d50bd7b04922a91fbe3e4d49c68070ec1a7b14 (patch)
tree87600e117f4262555bcc875b09e050536cbee492 /src/command.h
parent78410b18e5d4d117b714eb9f34c689920c32a985 (diff)
downloaddged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.tar.gz
dged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.tar.xz
dged-66d50bd7b04922a91fbe3e4d49c68070ec1a7b14.zip
Add minibuffer
Diffstat (limited to 'src/command.h')
-rw-r--r--src/command.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command.h b/src/command.h
index 9515282..3e3bbfb 100644
--- a/src/command.h
+++ b/src/command.h
@@ -2,7 +2,12 @@
struct buffer;
-typedef void (*command_fn)(struct buffer *buffer);
+struct command_ctx {
+ struct buffer *current_buffer;
+};
+
+typedef void (*command_fn)(struct command_ctx ctx, int argc,
+ const char *argv[]);
struct command {
const char *name;