aboutsummaryrefslogtreecommitdiff
path: root/src/lib/pubsub/pubsub_connect.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-03-12 19:11:52 -0400
committerNick Mathewson <nickm@torproject.org>2019-03-25 16:35:34 -0400
commit94feec59cf2f4c28578ba9c75c7ece781ed6f19b (patch)
treecef731bbd139c5ac45b79b64c94bb05e0a2d05d5 /src/lib/pubsub/pubsub_connect.h
parent22ad8658cd3bc0c0a261975f1eb67cf408fc47d5 (diff)
downloadtor-94feec59cf2f4c28578ba9c75c7ece781ed6f19b.tar.gz
tor-94feec59cf2f4c28578ba9c75c7ece781ed6f19b.zip
move pubsub_connector_t typedef to pubsub_connect.h
Diffstat (limited to 'src/lib/pubsub/pubsub_connect.h')
-rw-r--r--src/lib/pubsub/pubsub_connect.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/pubsub/pubsub_connect.h b/src/lib/pubsub/pubsub_connect.h
index f3de74c870..e4d8600056 100644
--- a/src/lib/pubsub/pubsub_connect.h
+++ b/src/lib/pubsub/pubsub_connect.h
@@ -19,7 +19,13 @@
#include "lib/dispatch/msgtypes.h"
struct pub_binding_t;
-struct pubsub_connector_t;
+/**
+ * A "dispatch connector" is a view of the dispatcher that a subsystem
+ * uses while initializing itself. It is specific to the subsystem, and
+ * ensures that each subsystem doesn't need to identify itself
+ * repeatedly while registering its messages.
+ **/
+typedef struct pubsub_connector_t pubsub_connector_t;
int pubsub_add_pub_(struct pubsub_connector_t *con,
struct pub_binding_t *out,