config_init method added.
FossilOrigin-Name: 47718225269e1c087120c9bb7ecf248516efd10ef1ee0a7043d44778ec3487ce
This commit is contained in:
parent
bf9335b969
commit
10a1d05da1
10
src/cw/mod.h
10
src/cw/mod.h
@ -40,6 +40,10 @@ struct mod_ac {
|
|||||||
const char *name;
|
const char *name;
|
||||||
/** Initializion method */
|
/** Initializion method */
|
||||||
int (*init) ();
|
int (*init) ();
|
||||||
|
|
||||||
|
/** init_config */
|
||||||
|
int (*init_config) (mbag_t config);
|
||||||
|
|
||||||
/** Detect capwap
|
/** Detect capwap
|
||||||
This function is called after receiving and disassembling a complete
|
This function is called after receiving and disassembling a complete
|
||||||
CAPWAP message. Either on Discovery Request or Join Request
|
CAPWAP message. Either on Discovery Request or Join Request
|
||||||
@ -52,6 +56,8 @@ struct mod_ac {
|
|||||||
|
|
||||||
/** Register actions */
|
/** Register actions */
|
||||||
int (*register_actions) (struct cw_actiondef * def,int mode);
|
int (*register_actions) (struct cw_actiondef * def,int mode);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -61,12 +67,14 @@ struct mod_ac {
|
|||||||
*/
|
*/
|
||||||
#define mod_wtp mod_ac
|
#define mod_wtp mod_ac
|
||||||
|
|
||||||
|
|
||||||
extern struct mod_ac mod_null;
|
extern struct mod_ac mod_null;
|
||||||
|
|
||||||
|
|
||||||
#define MOD_NULL (&mod_null)
|
#define MOD_NULL (&mod_null)
|
||||||
|
|
||||||
struct cw_actiondef * mod_cache_add(struct mod_ac *c, struct mod_ac *b);
|
struct cw_actiondef * mod_cache_add(struct mod_ac *c, struct mod_ac *b);
|
||||||
|
|
||||||
|
|
||||||
|
#define mod_init_config(mod,cfg) (mod->init_config ? mod->init_config(cfg):1)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user