diff options
Diffstat (limited to 'src/command.h')
| -rw-r--r-- | src/command.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/command.h b/src/command.h index b151eb8..7ece486 100644 --- a/src/command.h +++ b/src/command.h @@ -4,6 +4,7 @@ /** @file command.h * Commands and command registries */ +#include "hashmap.h" #include <stdint.h> struct buffer; @@ -78,10 +79,10 @@ struct command { /** * A command registry */ +HASHMAP_ENTRY_TYPE(command_entry, struct command); + struct commands { - struct hashed_command *commands; - uint32_t ncommands; - uint32_t capacity; + HASHMAP(struct command_entry) commands; }; /** |
