blob: 3c99adf2f7be84f7d65d8a3c078ece1b24d2f112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* Copyright (c) 2001, Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file dispatch_cfg_st.h
* @brief Declarations for dispatch-configuration types.
**/
#ifndef TOR_DISPATCH_CFG_ST_H
#define TOR_DISPATCH_CFG_ST_H
struct smartlist_t;
/** Information needed to create a dispatcher, but in a less efficient, more
* mutable format.
*
* Nearly everybody should use the \refdir{lib/pubsub} module to configure
* dispatchers, instead of using this. */
struct dispatch_cfg_t {
/** A list of msg_type_id_t (cast to void*), indexed by msg_t. */
struct smartlist_t *type_by_msg;
/** A list of channel_id_t (cast to void*), indexed by msg_t. */
struct smartlist_t *chan_by_msg;
/** A list of dispatch_rcv_t, indexed by msg_type_id_t. */
struct smartlist_t *fns_by_type;
/** A list of dispatch_typefns_t, indexed by msg_t. */
struct smartlist_t *recv_by_msg;
};
#endif /* !defined(TOR_DISPATCH_CFG_ST_H) */
|