summaryrefslogtreecommitdiff
path: root/src/backend/anastasis-httpd.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-02 15:58:53 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-02 15:58:53 +0200
commitf3ed6ea694e83e45d257fb64b5ae23e73bc81465 (patch)
treeb48275a94cef9962f144bfef9e299c971248b85a /src/backend/anastasis-httpd.c
parented7b39b035fa18b777b71ddc568deff2f7977c82 (diff)
downloadanastasis-f3ed6ea694e83e45d257fb64b5ae23e73bc81465.tar.gz
anastasis-f3ed6ea694e83e45d257fb64b5ae23e73bc81465.tar.bz2
anastasis-f3ed6ea694e83e45d257fb64b5ae23e73bc81465.zip
misc doxygen fixes
Diffstat (limited to 'src/backend/anastasis-httpd.c')
-rw-r--r--src/backend/anastasis-httpd.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index ee7aea7..7c4b068 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -127,12 +127,12 @@ static struct MHD_Daemon *mhd;
struct ANASTASIS_DatabasePlugin *db;
/**
- * Reschedule context for #SH_ctx.
+ * Reschedule context for #AH_ctx.
*/
static struct GNUNET_CURL_RescheduleContext *rc;
/**
- * Set if we should immediately #MHD_run again.
+ * Set if we should immediately MHD_run() again.
*/
static int triggered;
@@ -232,24 +232,25 @@ AH_trigger_curl (void)
/**
* A client has requested the given url using the given method
- * (#MHD_HTTP_METHOD_GET, #MHD_HTTP_METHOD_PUT,
- * #MHD_HTTP_METHOD_DELETE, #MHD_HTTP_METHOD_POST, etc). The callback
+ * (MHD_HTTP_METHOD_GET, MHD_HTTP_METHOD_PUT,
+ * MHD_HTTP_METHOD_DELETE, MHD_HTTP_METHOD_POST, etc). The callback
* must call MHD callbacks to provide content to give back to the
- * client and return an HTTP status code (i.e. #MHD_HTTP_OK,
- * #MHD_HTTP_NOT_FOUND, etc.).
+ * client and return an HTTP status code (i.e. MHD_HTTP_OK,
+ * MHD_HTTP_NOT_FOUND, etc.).
*
* @param cls argument given together with the function
* pointer when the handler was registered with MHD
+ * @param connection MHD connection handle with further request details
* @param url the requested url
- * @param method the HTTP method used (#MHD_HTTP_METHOD_GET,
- * #MHD_HTTP_METHOD_PUT, etc.)
+ * @param method the HTTP method used (MHD_HTTP_METHOD_GET,
+ * MHD_HTTP_METHOD_PUT, etc.)
* @param version the HTTP version string (i.e.
- * #MHD_HTTP_VERSION_1_1)
+ * MHD_HTTP_VERSION_1_1)
* @param upload_data the data being uploaded (excluding HEADERS,
* for a POST that fits into memory and that is encoded
* with a supported encoding, the POST data will NOT be
* given in upload_data and is instead available as
- * part of #MHD_get_connection_values; very large POST
+ * part of MHD_get_connection_values(); very large POST
* data *will* be made available incrementally in
* @a upload_data)
* @param upload_data_size set initially to the size of the
@@ -262,8 +263,8 @@ AH_trigger_curl (void)
* with plenty of upload data) this allows the application
* to easily associate some request-specific state.
* If necessary, this state can be cleaned up in the
- * global #MHD_RequestCompletedCallback (which
- * can be set with the #MHD_OPTION_NOTIFY_COMPLETED).
+ * global MHD_RequestCompletedCallback (which
+ * can be set with the MHD_OPTION_NOTIFY_COMPLETED).
* Initially, `*con_cls` will be NULL.
* @return #MHD_YES if the connection was handled successfully,
* #MHD_NO if the socket must be closed due to a serious
@@ -537,7 +538,7 @@ handle_mhd_completion_callback (void *cls,
* Function that queries MHD's select sets and
* starts the task waiting for them.
*
- * @param daemon_handle HTTP server to prepare to run
+ * @return task handle for the daemon
*/
static struct GNUNET_SCHEDULER_Task *
prepare_daemon (void)