Itemdefs register.
FossilOrigin-Name: 6aff1c5999c72d2e2fdfcfe8af727c8fbc35a55fa61f5c79e41f05a4dc734930
This commit is contained in:
parent
51c29bcd6f
commit
25c7343e34
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user