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:
parent
db679448bc
commit
4fc6a3038a
@ -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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user