diff options
author | Přemysl Janouch <p@janouch.name> | 2018-10-15 05:07:57 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2018-10-15 05:07:57 +0200 |
commit | a14edb72e97084d8c5c16b7c5f37396091464103 (patch) | |
tree | 9da50da69af00320829eedd6392cc549abdcef9e | |
parent | 267a9a561bdc252736a022f241b9de5458d66ceb (diff) | |
download | json-rpc-shell-a14edb72e97084d8c5c16b7c5f37396091464103.tar.gz json-rpc-shell-a14edb72e97084d8c5c16b7c5f37396091464103.tar.xz json-rpc-shell-a14edb72e97084d8c5c16b7c5f37396091464103.zip |
Make Doxygen a bit more useful
-rw-r--r-- | demo-json-rpc-server.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c index 3698ade..476187c 100644 --- a/demo-json-rpc-server.c +++ b/demo-json-rpc-server.c @@ -96,6 +96,8 @@ log_message_syslog (void *user_data, const char *quote, const char *fmt, } // --- FastCGI ----------------------------------------------------------------- +/// @defgroup FastCGI +/// @{ enum fcgi_request_state { @@ -470,7 +472,10 @@ fcgi_muxer_push (struct fcgi_muxer *self, const void *data, size_t len) fcgi_parser_push (&self->parser, data, len); } +/// @} // --- WebSockets -------------------------------------------------------------- +/// @defgroup WebSockets +/// @{ // WebSockets aren't CGI-compatible, therefore we must handle the initial HTTP // handshake ourselves. Luckily it's not too much of a bother with http-parser. @@ -1169,6 +1174,7 @@ ws_handler_push (struct ws_handler *self, const void *data, size_t len) return true; } +/// @} // --- Server ------------------------------------------------------------------ static struct simple_config_item g_config_table[] = @@ -1229,6 +1235,8 @@ server_context_free (struct server_context *self) } // --- JSON-RPC ---------------------------------------------------------------- +/// @defgroup JSON-RPC +/// @{ #define JSON_RPC_ERROR_TABLE(XX) \ XX (-32700, PARSE_ERROR, "Parse error") \ @@ -1451,7 +1459,10 @@ process_json_rpc (struct server_context *ctx, } } +/// @} // --- Requests ---------------------------------------------------------------- +/// @defgroup Requests +/// @{ struct request { @@ -1551,6 +1562,7 @@ request_push (struct request *self, const void *data, size_t len) return self->handler->push_cb (self, data, len); } +/// @} // --- Requests handlers ------------------------------------------------------- static bool |