2016-03-09 09:09:28 +01:00
|
|
|
/*
|
2016-03-03 20:46:20 +01:00
|
|
|
#include "../cw/mod.h"
|
2016-03-02 19:59:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
#include "cipwap/mod_cipwap.h"
|
|
|
|
#include "capwap/mod_capwap.h"
|
|
|
|
#include "cisco/mod_cisco.h"
|
|
|
|
|
|
|
|
#define MODS_WTP { mod_capwap_wtp, NULL }
|
|
|
|
|
2016-03-09 09:09:28 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "modload.h"
|
2016-03-02 19:59:51 +01:00
|
|
|
|
2018-02-25 19:12:28 +01:00
|
|
|
struct cw_Mod *(*mods_wtp[])() = MODS_WTP;
|
2016-03-02 19:59:51 +01:00
|
|
|
|
2018-02-25 19:12:28 +01:00
|
|
|
struct cw_Mod * modload_wtp(const char *name)
|
2016-03-02 19:59:51 +01:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
for (i=0; mods_wtp[i];i++){
|
|
|
|
|
2018-02-25 19:12:28 +01:00
|
|
|
struct cw_Mod * m = mods_wtp[i]();
|
2016-03-02 19:59:51 +01:00
|
|
|
if (strcmp(m->name,name)==0)
|
|
|
|
return m;
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|