diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-15 09:00:54 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-15 09:00:54 -0500 |
commit | 8746fedce4a440cccde2b4683d7aa72e7c0b0c89 (patch) | |
tree | 7c2a20089d48c31f491973079b3cd09b1b7d61be /src/lib/subsys/subsys.h | |
parent | 2d508f8fa56e180428337750788a155579ba84c8 (diff) | |
download | tor-8746fedce4a440cccde2b4683d7aa72e7c0b0c89.tar.gz tor-8746fedce4a440cccde2b4683d7aa72e7c0b0c89.zip |
Initialization documents: incorporate feedback from review.
(Thanks, Taylor!)
Diffstat (limited to 'src/lib/subsys/subsys.h')
-rw-r--r-- | src/lib/subsys/subsys.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/subsys/subsys.h b/src/lib/subsys/subsys.h index 258d060bb8..324f4f2947 100644 --- a/src/lib/subsys/subsys.h +++ b/src/lib/subsys/subsys.h @@ -23,10 +23,11 @@ struct config_format_t; * All callbacks are optional -- if a callback is set to NULL, the subsystem * manager will treat it as a no-op. * - * You should use c99 named-field initializers with this structure: we - * will be adding more fields, often in the middle of the structure. + * You should use c99 named-field initializers with this structure, for + * readability and safety. (There are a lot of functions here, all of them + * optional, and many of them with similar signatures.) * - * See \ref initialization for more information about initialization and + * See @ref initialization for more information about initialization and * shutdown in Tor. * * To make a new subsystem, you declare a const instance of this type, and @@ -71,7 +72,7 @@ typedef struct subsys_fns_t { /** * Connect a subsystem to the message dispatch system. * - * This function should use the macros in \refdir{lib/pubsub} to register a + * This function should use the macros in @refdir{lib/pubsub} to register a * set of messages that this subsystem may publish, and may subscribe to. * * See pubsub_macros.h for more information, and for examples. |