2016-03-09 09:09:28 +01:00
|
|
|
#include "modload.h"
|
|
|
|
|
|
|
|
/*
|
2016-03-03 20:46:20 +01:00
|
|
|
#include "../cw/mod.h"
|
2016-02-26 23:30:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
#include "cipwap/mod_cipwap.h"
|
|
|
|
#include "capwap/mod_capwap.h"
|
2016-02-27 05:33:57 +01:00
|
|
|
#include "cisco/mod_cisco.h"
|
2016-03-08 01:45:14 +01:00
|
|
|
#include "capwap80211/mod_capwap80211.h"
|
2016-02-26 23:30:09 +01:00
|
|
|
|
2016-03-08 01:45:14 +01:00
|
|
|
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, mod_capwap80211_ac, NULL }
|
2016-02-26 23:30:09 +01:00
|
|
|
|
2016-03-09 09:09:28 +01:00
|
|
|
*/
|
|
|
|
|
2016-02-26 23:30:09 +01:00
|
|
|
|
|
|
|
struct mod_ac *(*mods_ac[])() = MODS_AC;
|
|
|
|
|
|
|
|
struct mod_ac * modload_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;
|
|
|
|
}
|