diff options
author | Phil <phil.buschmann@tum.de> | 2018-08-01 03:26:50 +0200 |
---|---|---|
committer | Phil <phil.buschmann@tum.de> | 2018-08-01 03:26:50 +0200 |
commit | 83095b7bbf49263d66ab1d89d0535e8fee2a9d01 (patch) | |
tree | 383223e348d4d6ad27b512718a1c5b7b48e3c731 /src/namestore | |
parent | 7d1449573337751de58055d89c954e0c4ebbe6f4 (diff) | |
download | gnunet-83095b7bbf49263d66ab1d89d0535e8fee2a9d01.tar.gz gnunet-83095b7bbf49263d66ab1d89d0535e8fee2a9d01.zip |
-fix json and namestore
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/plugin_rest_namestore.c | 10 |
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 | ||
87 | struct RequestHandle | 84 | struct 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, | |||
638 | static void | 631 | static void |
639 | init_cont (struct RequestHandle *handle) | 632 | init_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}, |