e5203b81a2
FossilOrigin-Name: 67290a384fba6794570a7f578dcef211456831d1e5255ea959ca57336a7b0129
30 lines
503 B
C
30 lines
503 B
C
#include "modload.h"
|
|
|
|
/*
|
|
#include "../cw/mod.h"
|
|
|
|
|
|
#include "cipwap/mod_cipwap.h"
|
|
#include "capwap/mod_capwap.h"
|
|
#include "cisco/mod_cisco.h"
|
|
#include "capwap80211/mod_capwap80211.h"
|
|
|
|
#define MODS_AC { mod_capwap_ac,mod_cipwap_ac, mod_cisco_ac, mod_capwap80211_ac, NULL }
|
|
|
|
*/
|
|
|
|
|
|
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;
|
|
}
|