nitial commit

FossilOrigin-Name: f136fcfeadc407c4a85321efacdcbaeffd0e35b7f4ce3dbc8cf5a8a58f8a7459
This commit is contained in:
7u83@mail.ru 2016-02-22 08:22:09 +00:00
parent 84dc9b812a
commit bb126181fc
1 changed files with 21 additions and 0 deletions

21
src/capwap/cw_get_mods.c Normal file
View 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;
}