2016-02-22 09:22:09 +01:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
2016-02-22 18:33:47 +01:00
|
|
|
|
2016-02-22 09:22:09 +01:00
|
|
|
#include "mod.h"
|
|
|
|
|
2016-02-22 18:33:47 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2016-02-22 09:22:09 +01:00
|
|
|
|
|
|
|
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++){
|
2016-02-22 18:33:47 +01:00
|
|
|
|
2016-02-22 09:22:09 +01:00
|
|
|
struct mod_ac * m = mods_ac[i]();
|
|
|
|
if (strcmp(m->name,name)==0)
|
|
|
|
return m;
|
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|