nitial commit
FossilOrigin-Name: f136fcfeadc407c4a85321efacdcbaeffd0e35b7f4ce3dbc8cf5a8a58f8a7459
This commit is contained in:
parent
84dc9b812a
commit
bb126181fc
21
src/capwap/cw_get_mods.c
Normal file
21
src/capwap/cw_get_mods.c
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "mod.h"
|
||||||
|
|
||||||
|
|
||||||
|
struct mod_ac *(*mods_ac[])() = MODS_AC;
|
||||||
|
|
||||||
|
|
||||||
|
struct mod_ac * cw_get_mod_ac(const char *name)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
for (i=0; mods_ac[i];i++){
|
||||||
|
struct mod_ac * m = mods_ac[i]();
|
||||||
|
if (strcmp(m->name,name)==0)
|
||||||
|
return m;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user