modload for wtp modules.
FossilOrigin-Name: 0a9bcd9f1a1682d57293b6ff247247e920afb5546011d490f506857a82374711
This commit is contained in:
parent
11f9dd3dca
commit
9fff31cb31
23
src/mod/modload_wtp.c
Normal file
23
src/mod/modload_wtp.c
Normal file
@ -0,0 +1,23 @@
|
||||
#include "../capwap/mod.h"
|
||||
|
||||
|
||||
#include "cipwap/mod_cipwap.h"
|
||||
#include "capwap/mod_capwap.h"
|
||||
#include "cisco/mod_cisco.h"
|
||||
|
||||
#define MODS_WTP { mod_capwap_wtp, NULL }
|
||||
|
||||
|
||||
struct mod_wtp *(*mods_wtp[])() = MODS_WTP;
|
||||
|
||||
struct mod_wtp * modload_wtp(const char *name)
|
||||
{
|
||||
int i;
|
||||
for (i=0; mods_wtp[i];i++){
|
||||
|
||||
struct mod_wtp * m = mods_wtp[i]();
|
||||
if (strcmp(m->name,name)==0)
|
||||
return m;
|
||||
}
|
||||
return NULL;
|
||||
}
|
Loading…
Reference in New Issue
Block a user