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

@ -16,6 +16,7 @@ OBJS=\
NAME=libcapwap.a
SLIBS=-lcw
include ../Mod.mak

View File

@ -127,15 +127,20 @@ static cw_msgdef_t messages[] = {
};
int capwap_register_msg_set(struct cw_MsgSet * set){
}
void test_sets(){
cw_message_set_t * set = cw_message_set_create();
cw_MsgSet_t * set = cw_message_set_create();
if (set==NULL){
cw_log(LOG_ERR,"No mem");
return;
}
cw_message_set_add(set,messages);
cw_msgset_add(set,messages);
cw_elem_handler_t el;
memset(&el,0,sizeof(el));

View File

@ -1,8 +1,8 @@
#ifndef __MOD_CAPWAP_H
#define __MOD_CAPWAP_H
struct mod_ac *mod_capwap_ac();
struct mod_wtp *mod_capwap_wtp();
struct cw_Mod *mod_capwap_ac();
struct cw_Mod *mod_capwap_wtp();
extern int capwap_in_wtp_descriptor(struct conn *conn, struct cw_action_in *a,

View File

@ -42,14 +42,14 @@ static int register_actions(struct cw_actiondef *def, int mode)
static struct mod_ac capwap_ac = {
static struct cw_Mod capwap_ac = {
.name = "capwap",
.init = init,
.detect = detect,
.register_actions = register_actions
};
struct mod_ac *mod_capwap_ac()
struct cw_Mod *mod_capwap_ac()
{
return &capwap_ac;
};

View File

@ -41,14 +41,14 @@ static int register_actions(struct cw_actiondef *def, int mode)
return capwap_register_actions_wtp(def);
}
static struct mod_wtp capwap_wtp = {
static struct cw_Mod capwap_wtp = {
.name = "capwap",
.init = init,
.detect = detect,
.register_actions=register_actions
};
struct mod_wtp *mod_capwap_wtp()
struct cw_Mod *mod_capwap_wtp()
{
return &capwap_wtp;
};