mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-02 09:22:32 +01:00
eap: Add eap_unregister_method
This commit is contained in:
parent
095eec48ab
commit
88bdd46ec3
11
src/eap.c
11
src/eap.c
@ -401,6 +401,17 @@ int eap_register_method(struct eap_method *method)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int eap_unregister_method(struct eap_method *method)
|
||||||
|
{
|
||||||
|
bool r;
|
||||||
|
|
||||||
|
r = l_queue_remove(eap_methods, method);
|
||||||
|
if (r)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return -ENOENT;
|
||||||
|
}
|
||||||
|
|
||||||
void eap_init(void) {
|
void eap_init(void) {
|
||||||
eap_methods = l_queue_new();
|
eap_methods = l_queue_new();
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,7 @@ struct eap_method {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int eap_register_method(struct eap_method *method);
|
int eap_register_method(struct eap_method *method);
|
||||||
|
int eap_unregister_method(struct eap_method *method);
|
||||||
|
|
||||||
void eap_set_data(struct eap_state *eap, void *data);
|
void eap_set_data(struct eap_state *eap, void *data);
|
||||||
void *eap_get_data(struct eap_state *eap);
|
void *eap_get_data(struct eap_state *eap);
|
||||||
|
Loading…
Reference in New Issue
Block a user