[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: Initial work on policy handler
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: Initial work on policy handler |
Date: |
Wed, 13 Nov 2019 09:40:59 +0100 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new 6240254 Initial work on policy handler
6240254 is described below
commit 6240254c6c1ade7daae67fd9ac570a26366ffbee
Author: Dennis Neufeld <address@hidden>
AuthorDate: Wed Nov 13 08:40:48 2019 +0000
Initial work on policy handler
---
src/backend/anastasis-httpd.c | 2 +-
src/backend/anastasis-httpd_policy.c | 16 ++++++++++++----
src/backend/anastasis-httpd_policy.h | 12 ++++++++++--
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 6f31550..8e44724 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -228,7 +228,7 @@ url_handler (void *cls,
}
if (0 == strcmp (method, MHD_HTTP_METHOD_POST))
{
-
+
}
}
for (unsigned int i = 0; NULL != handlers[i].url; i++)
diff --git a/src/backend/anastasis-httpd_policy.c
b/src/backend/anastasis-httpd_policy.c
index efbbdf3..104f638 100644
--- a/src/backend/anastasis-httpd_policy.c
+++ b/src/backend/anastasis-httpd_policy.c
@@ -25,7 +25,11 @@
#include <gnunet/gnunet_util_lib.h>
/**
- *
+ * @param connection the MHD connection to handle
+ * @param[in,out] connection_cls the connection's closure (can be updated)
+ * @param upload_data upload data
+ * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @return MHD result code
*/
int
ANASTASIS_MHD_handler_policy_GET (struct MHD_Connection *connection,
@@ -33,11 +37,15 @@ ANASTASIS_MHD_handler_policy_GET (struct MHD_Connection
*connection,
const char *upload_data,
size_t *upload_data_size)
{
- return GNUNET_OK;
+ return GNUNET_OK;
}
/**
- *
+ * @param connection the MHD connection to handle
+ * @param[in,out] connection_cls the connection's closure (can be updated)
+ * @param upload_data upload data
+ * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @return MHD result code
*/
int
ANASTASIS_MHD_handler_policy_POST (struct MHD_Connection *connection,
@@ -45,5 +53,5 @@ ANASTASIS_MHD_handler_policy_POST (struct MHD_Connection
*connection,
const char *upload_data,
size_t *upload_data_size)
{
- return GNUNET_OK;
+ return GNUNET_OK;
}
\ No newline at end of file
diff --git a/src/backend/anastasis-httpd_policy.h
b/src/backend/anastasis-httpd_policy.h
index 9159401..c3e428f 100644
--- a/src/backend/anastasis-httpd_policy.h
+++ b/src/backend/anastasis-httpd_policy.h
@@ -25,7 +25,11 @@
#include <microhttpd.h>
/**
- *
+ * @param connection the MHD connection to handle
+ * @param[in,out] connection_cls the connection's closure (can be updated)
+ * @param upload_data upload data
+ * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @return MHD result code
*/
int
ANASTASIS_MHD_handler_policy_GET (struct MHD_Connection *connection,
@@ -34,7 +38,11 @@ ANASTASIS_MHD_handler_policy_GET (struct MHD_Connection
*connection,
size_t *upload_data_size);
/**
- *
+ * @param connection the MHD connection to handle
+ * @param[in,out] connection_cls the connection's closure (can be updated)
+ * @param upload_data upload data
+ * @param[in,out] upload_data_size number of bytes (left) in @a upload_data
+ * @return MHD result code
*/
int
ANASTASIS_MHD_handler_policy_POST (struct MHD_Connection *connection,
--
To stop receiving notification emails like this one, please contact
address@hidden.