aboutsummaryrefslogtreecommitdiff
path: root/src/gns/plugin_rest_gns.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-23 23:08:34 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-23 23:08:34 +0000
commit12121a352989e9e5dd890af7173045bc119db414 (patch)
tree7280e74eb2df20b78cc16b6dca2ed056628a7f62 /src/gns/plugin_rest_gns.c
parentf7d5abdc47b3e567305a1e8a7de56c78c60fc189 (diff)
downloadgnunet-12121a352989e9e5dd890af7173045bc119db414.tar.gz
gnunet-12121a352989e9e5dd890af7173045bc119db414.zip
-fix doxygen, make function static, fix indentation
Diffstat (limited to 'src/gns/plugin_rest_gns.c')
-rw-r--r--src/gns/plugin_rest_gns.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c
index 345298849..60ccb23c0 100644
--- a/src/gns/plugin_rest_gns.c
+++ b/src/gns/plugin_rest_gns.c
@@ -88,7 +88,7 @@ struct LookupHandle
88 /** 88 /**
89 * ID of a task associated with the resolution process. 89 * ID of a task associated with the resolution process.
90 */ 90 */
91 struct GNUNET_SCHEDULER_Task * timeout_task; 91 struct GNUNET_SCHEDULER_Task * timeout_task;
92 92
93 /** 93 /**
94 * The root of the received JSON or NULL 94 * The root of the received JSON or NULL
@@ -149,11 +149,13 @@ struct LookupHandle
149 149
150}; 150};
151 151
152
152/** 153/**
153 * Cleanup lookup handle 154 * Cleanup lookup handle.
154 * @praram handle Handle to clean up 155 *
156 * @param handle Handle to clean up
155 */ 157 */
156void 158static void
157cleanup_handle (struct LookupHandle *handle) 159cleanup_handle (struct LookupHandle *handle)
158{ 160{
159 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 161 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -218,6 +220,7 @@ create_json_response (const char *data)
218 return resp; 220 return resp;
219} 221}
220 222
223
221/** 224/**
222 * Task run on shutdown. Cleans up everything. 225 * Task run on shutdown. Cleans up everything.
223 * 226 *
@@ -234,6 +237,7 @@ do_error (void *cls,
234 cleanup_handle (handle); 237 cleanup_handle (handle);
235} 238}
236 239
240
237/** 241/**
238 * Create json representation of a GNSRECORD 242 * Create json representation of a GNSRECORD
239 * 243 *
@@ -525,7 +529,7 @@ parse_url (const char *url, struct LookupHandle *handle)
525 } 529 }
526 handle->type = GNUNET_GNSRECORD_typename_to_number (type); 530 handle->type = GNUNET_GNSRECORD_typename_to_number (type);
527 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 531 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
528 "Got type: %s\n", type); 532 "Got type: %s\n", type);
529 return GNUNET_OK; 533 return GNUNET_OK;
530} 534}
531 535