diff options
Diffstat (limited to 'src/rest/plugin_rest_config.c')
-rw-r--r-- | src/rest/plugin_rest_config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rest/plugin_rest_config.c b/src/rest/plugin_rest_config.c index 16f5d2ec1..d89c858ee 100644 --- a/src/rest/plugin_rest_config.c +++ b/src/rest/plugin_rest_config.c | |||
@@ -124,6 +124,7 @@ add_sections (void *cls, | |||
124 | json_object_set_new (sections_obj, section, sec_obj); | 124 | json_object_set_new (sections_obj, section, sec_obj); |
125 | } | 125 | } |
126 | 126 | ||
127 | |||
127 | static void | 128 | static void |
128 | add_section_contents (void *cls, | 129 | add_section_contents (void *cls, |
129 | const char *section, | 130 | const char *section, |
@@ -135,6 +136,7 @@ add_section_contents (void *cls, | |||
135 | json_object_set_new (section_obj, option, json_string (value)); | 136 | json_object_set_new (section_obj, option, json_string (value)); |
136 | } | 137 | } |
137 | 138 | ||
139 | |||
138 | /** | 140 | /** |
139 | * Handle rest request | 141 | * Handle rest request |
140 | * | 142 | * |
@@ -179,6 +181,7 @@ get_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
179 | json_decref (result); | 181 | json_decref (result); |
180 | } | 182 | } |
181 | 183 | ||
184 | |||
182 | struct GNUNET_CONFIGURATION_Handle * | 185 | struct GNUNET_CONFIGURATION_Handle * |
183 | set_value (struct GNUNET_CONFIGURATION_Handle *config, | 186 | set_value (struct GNUNET_CONFIGURATION_Handle *config, |
184 | const char *section, | 187 | const char *section, |
@@ -202,6 +205,7 @@ set_value (struct GNUNET_CONFIGURATION_Handle *config, | |||
202 | return config; // for error handling (0 -> success, 1 -> error) | 205 | return config; // for error handling (0 -> success, 1 -> error) |
203 | } | 206 | } |
204 | 207 | ||
208 | |||
205 | /** | 209 | /** |
206 | * Handle REST POST request | 210 | * Handle REST POST request |
207 | * | 211 | * |
@@ -308,6 +312,7 @@ set_cont (struct GNUNET_REST_RequestHandle *con_handle, | |||
308 | cleanup_handle (handle); | 312 | cleanup_handle (handle); |
309 | } | 313 | } |
310 | 314 | ||
315 | |||
311 | /** | 316 | /** |
312 | * Handle rest request | 317 | * Handle rest request |
313 | * | 318 | * |
@@ -416,4 +421,5 @@ libgnunet_plugin_rest_config_done (void *cls) | |||
416 | return NULL; | 421 | return NULL; |
417 | } | 422 | } |
418 | 423 | ||
424 | |||
419 | /* end of plugin_rest_config.c */ | 425 | /* end of plugin_rest_config.c */ |