diff options
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 7 |
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; |
