From d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 8 Sep 2019 12:33:09 +0000 Subject: uncrustify as demanded. --- src/include/gnunet_rest_lib.h | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'src/include/gnunet_rest_lib.h') diff --git a/src/include/gnunet_rest_lib.h b/src/include/gnunet_rest_lib.h index 83741ab95..e70759590 100644 --- a/src/include/gnunet_rest_lib.h +++ b/src/include/gnunet_rest_lib.h @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -34,10 +34,9 @@ #include "gnunet_util_lib.h" #include -#define GNUNET_REST_HANDLER_END {NULL, NULL, NULL} +#define GNUNET_REST_HANDLER_END { NULL, NULL, NULL } -struct GNUNET_REST_RequestHandle -{ +struct GNUNET_REST_RequestHandle { /** * Map of url parameters */ @@ -69,14 +68,12 @@ struct GNUNET_REST_RequestHandle size_t data_size; }; -struct GNUNET_REST_RequestHandlerError -{ +struct GNUNET_REST_RequestHandlerError { int error_code; char* error_text; }; -struct GNUNET_REST_RequestHandler -{ +struct GNUNET_REST_RequestHandler { /** * Http method to handle */ @@ -93,7 +90,6 @@ struct GNUNET_REST_RequestHandler void (*proc) (struct GNUNET_REST_RequestHandle *handle, const char *url, void *cls); - }; @@ -116,7 +112,7 @@ typedef void (*GNUNET_REST_ResultProcessor) (void *cls, * @return GNUNET_YES if namespace matches */ int -GNUNET_REST_namespace_match (const char *url, const char *namespace); +GNUNET_REST_namespace_match(const char *url, const char *namespace); /** * Create REST MHD response @@ -124,15 +120,15 @@ GNUNET_REST_namespace_match (const char *url, const char *namespace); * @param data result * @return MHD response */ - struct MHD_Response* -GNUNET_REST_create_response (const char *data); +struct MHD_Response* +GNUNET_REST_create_response(const char *data); int -GNUNET_REST_handle_request (struct GNUNET_REST_RequestHandle *conn, - const struct GNUNET_REST_RequestHandler *handlers, - struct GNUNET_REST_RequestHandlerError *err, - void *cls); +GNUNET_REST_handle_request(struct GNUNET_REST_RequestHandle *conn, + const struct GNUNET_REST_RequestHandler *handlers, + struct GNUNET_REST_RequestHandlerError *err, + void *cls); #endif -- cgit v1.2.3