tor  0.4.2.0-alpha-dev
btrack_orconn.h
Go to the documentation of this file.
1 /* Copyright (c) 2007-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
9 #ifndef TOR_BTRACK_ORCONN_H
10 #define TOR_BTRACK_ORCONN_H
11 
12 #include "lib/pubsub/pubsub.h"
13 
14 #ifdef BTRACK_ORCONN_PRIVATE
15 
16 #include "ht.h"
17 
24 typedef struct bt_orconn_t {
25  HT_ENTRY(bt_orconn_t) node;
26  HT_ENTRY(bt_orconn_t) chan_node;
27  uint64_t gid;
28  uint64_t chan;
29  int proxy_type;
30  uint8_t state;
31  bool is_orig;
32  bool is_onehop;
33 } bt_orconn_t;
34 
35 #endif /* defined(BTRACK_ORCONN_PRIVATE) */
36 
37 int btrack_orconn_init(void);
38 int btrack_orconn_add_pubsub(pubsub_connector_t *);
39 void btrack_orconn_fini(void);
40 
41 #endif /* !defined(TOR_BTRACK_ORCONN_H) */
struct pubsub_connector_t pubsub_connector_t
int btrack_orconn_init(void)
void btrack_orconn_fini(void)
Header for OO publish-subscribe functionality.