7 #ifndef TOR_DISPATCH_CFG_H
8 #define TOR_DISPATCH_CFG_H
40 #define dcfg_free(cfg) \
41 FREE_AND_NULL(dispatch_cfg_t, dcfg_free_, (cfg))
45 #ifdef DISPATCH_NEW_PRIVATE
int dcfg_msg_set_chan(dispatch_cfg_t *cfg, message_id_t msg, channel_id_t chan)
int dcfg_type_set_fns(dispatch_cfg_t *cfg, msg_type_id_t type, const dispatch_typefns_t *fns)
void dcfg_free_(dispatch_cfg_t *cfg)
dispatch_cfg_t * dcfg_new(void)
int dcfg_msg_set_type(dispatch_cfg_t *cfg, message_id_t msg, msg_type_id_t type)
int dcfg_add_recv(dispatch_cfg_t *cfg, message_id_t msg, subsys_id_t sys, recv_fn_t fn)
STATIC int max_in_u16_sl(const smartlist_t *sl, int dflt)
Types used for messages in the dispatcher code.
void(* recv_fn_t)(const msg_t *m)
Macros to implement mocking and selective exposure for the test code.