3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

client: Allow command registration

This commit is contained in:
Tim Kourt 2017-04-11 14:31:53 -07:00 committed by Denis Kenzior
parent db679448bc
commit 4fc6a3038a
2 changed files with 17 additions and 0 deletions

View File

@ -30,6 +30,16 @@
static struct l_queue *command_families; 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) void command_init(void)
{ {
command_families = l_queue_new(); command_families = l_queue_new();

View File

@ -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_init(void);
void command_exit(void); void command_exit(void);