mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* Copyright (c) 2001, Matej Pfajfar.
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2021, 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_typefns_t, indexed by msg_type_id_t. */
|
|
struct smartlist_t *fns_by_type;
|
|
/** A list of dispatch_rcv_t, indexed by msg_t. */
|
|
struct smartlist_t *recv_by_msg;
|
|
};
|
|
|
|
#endif /* !defined(TOR_DISPATCH_CFG_ST_H) */
|