diff --git a/client/command.c b/client/command.c index b97f9f28..1d618473 100644 --- a/client/command.c +++ b/client/command.c @@ -30,6 +30,16 @@ static struct l_queue *command_families; +void command_family_register(const struct command_family *family) +{ + l_queue_push_tail(command_families, (void *) family); +} + +void command_family_unregister(const struct command_family *family) +{ + l_queue_remove(command_families, (void *) family); +} + void command_init(void) { command_families = l_queue_new(); diff --git a/client/command.h b/client/command.h index 75502cde..a496fedc 100644 --- a/client/command.h +++ b/client/command.h @@ -20,5 +20,12 @@ * */ +struct command_family { + const char *name; +}; + +void command_family_register(const struct command_family *family); +void command_family_unregister(const struct command_family *family); + void command_init(void); void command_exit(void);