diff options
| author | Albert Cervin <albert@acervin.com> | 2022-12-21 15:29:21 +0100 |
|---|---|---|
| committer | Albert Cervin <albert@acervin.com> | 2022-12-21 15:29:21 +0100 |
| commit | 690786504fce73edea78c7ec13b34771771e4caf (patch) | |
| tree | 0a8927e6ab88bb5118eca569fdc4ae3593d7f178 /src/command.h | |
| parent | a817e01bfe2356fdd860010d46db4e4361f343a6 (diff) | |
| download | dged-690786504fce73edea78c7ec13b34771771e4caf.tar.gz dged-690786504fce73edea78c7ec13b34771771e4caf.tar.xz dged-690786504fce73edea78c7ec13b34771771e4caf.zip | |
wip render rework
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.h b/src/command.h index b02c74a..fe998ae 100644 --- a/src/command.h +++ b/src/command.h @@ -7,8 +7,8 @@ struct command_ctx { void *userdata; }; -typedef void (*command_fn)(struct command_ctx ctx, int argc, - const char *argv[]); +typedef int32_t (*command_fn)(struct command_ctx ctx, int argc, + const char *argv[]); struct command { const char *name; @@ -27,8 +27,8 @@ struct commands { uint32_t capacity; }; -struct commands command_list_create(uint32_t capacity); -void command_list_destroy(struct commands *commands); +struct commands command_registry_create(uint32_t capacity); +void command_registry_destroy(struct commands *commands); uint32_t register_command(struct commands *commands, struct command *command); void register_commands(struct commands *command_list, struct command *commands, |
