eap: Add eap_unregister_method

This commit is contained in:
Denis Kenzior 2015-11-02 21:38:45 -06:00
parent 095eec48ab
commit 88bdd46ec3
2 changed files with 12 additions and 0 deletions

View File

@ -401,6 +401,17 @@ int eap_register_method(struct eap_method *method)
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) {
eap_methods = l_queue_new();
}

View File

@ -96,6 +96,7 @@ struct eap_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_get_data(struct eap_state *eap);