aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/plugin_rest_namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_rest_namestore.c')
-rw-r--r--src/namestore/plugin_rest_namestore.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/namestore/plugin_rest_namestore.c b/src/namestore/plugin_rest_namestore.c
index 6924c53a4..90928165e 100644
--- a/src/namestore/plugin_rest_namestore.c
+++ b/src/namestore/plugin_rest_namestore.c
@@ -32,6 +32,7 @@
32#include "microhttpd.h" 32#include "microhttpd.h"
33#include <jansson.h> 33#include <jansson.h>
34 34
35
35#define GNUNET_REST_API_NS_NAMESTORE "/namestore" 36#define GNUNET_REST_API_NS_NAMESTORE "/namestore"
36 37
37#define GNUNET_REST_SUBSYSTEM_NAMESTORE "namestore" 38#define GNUNET_REST_SUBSYSTEM_NAMESTORE "namestore"
@@ -40,8 +41,6 @@
40 41
41#define GNUNET_REST_NAMESTORE_RD_COUNT 1 42#define GNUNET_REST_NAMESTORE_RD_COUNT 1
42 43
43//TODO define other variables
44
45/** 44/**
46 * The configuration handle 45 * The configuration handle
47 */ 46 */
@@ -60,8 +59,6 @@ struct Plugin
60 const struct GNUNET_CONFIGURATION_Handle *cfg; 59 const struct GNUNET_CONFIGURATION_Handle *cfg;
61}; 60};
62 61
63//TODO add specific structs
64
65/** 62/**
66 * The default namestore ego 63 * The default namestore ego
67 */ 64 */
@@ -86,8 +83,6 @@ struct EgoEntry
86 83
87struct RequestHandle 84struct RequestHandle
88{ 85{
89 //TODO add specific entries
90
91 /** 86 /**
92 * Records to store 87 * Records to store
93 */ 88 */
@@ -180,8 +175,6 @@ struct RequestHandle
180 175
181}; 176};
182 177
183
184//TODO add specific cleanup
185/** 178/**
186 * Cleanup lookup handle 179 * Cleanup lookup handle
187 * @param handle Handle to clean up 180 * @param handle Handle to clean up
@@ -638,7 +631,6 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle,
638static void 631static void
639init_cont (struct RequestHandle *handle) 632init_cont (struct RequestHandle *handle)
640{ 633{
641 //TODO specify parameter of init_cont if necessary
642 struct GNUNET_REST_RequestHandlerError err; 634 struct GNUNET_REST_RequestHandlerError err;
643 static const struct GNUNET_REST_RequestHandler handlers[] = { 635 static const struct GNUNET_REST_RequestHandler handlers[] = {
644 {MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_NAMESTORE, &namestore_get}, 636 {MHD_HTTP_METHOD_GET, GNUNET_REST_API_NS_NAMESTORE, &namestore_get},