From 25c7343e34a4efcf24bee1a02bd68dd5289c298d Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 4 May 2015 05:39:55 +0000 Subject: [PATCH] Itemdefs register. FossilOrigin-Name: 6aff1c5999c72d2e2fdfcfe8af727c8fbc35a55fa61f5c79e41f05a4dc734930 --- src/capwap/capwap_actions_ac.c | 4 +++- src/capwap/capwap_actions_wtp.c | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/capwap/capwap_actions_ac.c b/src/capwap/capwap_actions_ac.c index 9f3afd23..ea85ffa9 100644 --- a/src/capwap/capwap_actions_ac.c +++ b/src/capwap/capwap_actions_ac.c @@ -22,6 +22,7 @@ #include "capwap_items.h" #include "capwap_actions.h" #include "strheap.h" +#include "radio.h" @@ -372,6 +373,7 @@ int cw_register_actions_capwap_ac(struct cw_actiondef *def) def->strelem = cw_strheap_create(); def->wbids = intavltree_create(); def->items = cw_itemdefheap_create(); + def->radioitems = cw_itemdefheap_create(); int rc; rc = cw_actionlist_in_register_actions(def->in, capwap_actions_ac_in); @@ -381,7 +383,7 @@ int cw_register_actions_capwap_ac(struct cw_actiondef *def) rc += cw_strheap_register_strings(def->strelem, capwap_strings_elem); rc += cw_itemdefheap_register(def->items,capwap_itemdefs); - + rc += cw_itemdefheap_register(def->radioitems,capwap_radioitemdefs); intavltree_add(def->wbids,0); diff --git a/src/capwap/capwap_actions_wtp.c b/src/capwap/capwap_actions_wtp.c index 2d043930..4502aa23 100644 --- a/src/capwap/capwap_actions_wtp.c +++ b/src/capwap/capwap_actions_wtp.c @@ -22,6 +22,7 @@ #include "capwap_items.h" #include "capwap_actions.h" #include "strheap.h" +#include "radio.h" @@ -369,6 +370,10 @@ int cw_register_actions_capwap_wtp(struct cw_actiondef *def) def->out = cw_actionlist_out_create(); def->strmsg = cw_strheap_create(); def->strelem = cw_strheap_create(); + def->items = cw_itemdefheap_create(); + def->radioitems = cw_itemdefheap_create(); + + int rc; @@ -378,5 +383,8 @@ int cw_register_actions_capwap_wtp(struct cw_actiondef *def) rc += cw_strheap_register_strings(def->strmsg, capwap_strings_msg); rc += cw_strheap_register_strings(def->strelem, capwap_strings_elem); + rc += cw_itemdefheap_register(def->items,capwap_itemdefs); + rc += cw_itemdefheap_register(def->radioitems,capwap_radioitemdefs); + return rc; }