rename mod_wtp and mod_ac to cw_Mod

FossilOrigin-Name: 4a8f9578a5fc384f0dad291114ac9470ea8561817e87760946277ec9ddd0db79
This commit is contained in:
7u83@mail.ru
2018-02-25 18:12:28 +00:00
parent f0519f5057
commit f95505c0bd
38 changed files with 196 additions and 121 deletions

View File

@ -25,6 +25,7 @@ LIBS+=-lrt
LIBS+=-lpthread
LIBS+=-lconfuse
LIBS+=-lsqlite3
LIBS+=-ldl
ifeq ($(SSL_LIBRARY),GNUTLS)

View File

@ -87,7 +87,7 @@ static int parse_args(int argc, char *argv[])
#include "cw/mod.h"
extern struct mod_ac * cw_get_mod_ac(const char *name);
extern struct cw_Mod * cw_get_mod_ac(const char *name);
#include "cw/mlist.h"
@ -99,7 +99,10 @@ int main(int argc, char *argv[])
cw_mod_add_dynamic("../../lib/actube/capwap.so" );
exit(0);

View File

@ -539,7 +539,7 @@ static int conf_read_dbg_level(cfg_t * cfg)
struct mod_ac ** conf_mods; //[10];
struct cw_Mod ** conf_mods; //[10];
@ -570,7 +570,7 @@ static int conf_read_mods(cfg_t *cfg){
int n, i;
n = cfg_size(cfg,CFG_ENTRY_MODS);
conf_mods = malloc(sizeof(struct mod_ac *)*(n+1));
conf_mods = malloc(sizeof(struct cw_Mod *)*(n+1));
for (i=0; i < n; i++){
char *modname = cfg_getnstr(cfg, CFG_ENTRY_MODS, i);

View File

@ -33,7 +33,7 @@
#include "cw/vendors.h"
extern struct mod_ac ** conf_mods;
extern struct cw_Mod ** conf_mods;
#ifndef CONF_DEFAULT_ACNAME
#define CONF_DEFAULT_ACNAME "AC"