Tor 0.4.9.0-alpha-dev
Data Fields
dispatch_cfg_t Struct Reference

#include <dispatch_cfg_st.h>

Data Fields

struct smartlist_ttype_by_msg
 
struct smartlist_tchan_by_msg
 
struct smartlist_tfns_by_type
 
struct smartlist_trecv_by_msg
 

Detailed Description

Information needed to create a dispatcher, but in a less efficient, more mutable format.

Nearly everybody should use the lib/pubsub module to configure dispatchers, instead of using this.

A "dispatch_cfg" is the configuration used to set up a dispatcher. It is created and accessed with a set of dcfg_* functions, and then used with dispatcher_new() to make the dispatcher.

Definition at line 22 of file dispatch_cfg_st.h.

Field Documentation

◆ chan_by_msg

struct smartlist_t* chan_by_msg

A list of channel_id_t (cast to void*), indexed by msg_t.

Definition at line 26 of file dispatch_cfg_st.h.

Referenced by dcfg_free_(), and dcfg_msg_set_chan().

◆ fns_by_type

struct smartlist_t* fns_by_type

A list of dispatch_typefns_t, indexed by msg_type_id_t.

Definition at line 28 of file dispatch_cfg_st.h.

Referenced by dcfg_free_().

◆ recv_by_msg

struct smartlist_t* recv_by_msg

A list of dispatch_rcv_t, indexed by msg_t.

Definition at line 30 of file dispatch_cfg_st.h.

Referenced by dcfg_add_recv().

◆ type_by_msg

struct smartlist_t* type_by_msg

A list of msg_type_id_t (cast to void*), indexed by msg_t.

Definition at line 24 of file dispatch_cfg_st.h.

Referenced by dcfg_free_().


The documentation for this struct was generated from the following file: