From 690786504fce73edea78c7ec13b34771771e4caf Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 21 Dec 2022 15:29:21 +0100 Subject: wip render rework --- src/command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command.h') 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, -- cgit v1.2.3