aboutsummaryrefslogtreecommitdiff
path: root/src/identity/plugin_rest_identity.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
committerChristian Grothoff <christian@grothoff.org>2019-10-31 13:03:48 +0100
commit7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch)
treebdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/identity/plugin_rest_identity.c
parent01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff)
downloadgnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz
gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip
tighten formatting rules
Diffstat (limited to 'src/identity/plugin_rest_identity.c')
-rw-r--r--src/identity/plugin_rest_identity.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c
index e052ac6b3..65bbaaaba 100644
--- a/src/identity/plugin_rest_identity.c
+++ b/src/identity/plugin_rest_identity.c
@@ -291,6 +291,7 @@ cleanup_handle (void *cls)
291 GNUNET_free (handle); 291 GNUNET_free (handle);
292} 292}
293 293
294
294/** 295/**
295 * Task run on errors. Reports an error and cleans up everything. 296 * Task run on errors. Reports an error and cleans up everything.
296 * 297 *
@@ -410,6 +411,7 @@ ego_get_for_subsystem (void *cls,
410 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); 411 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle);
411} 412}
412 413
414
413/** 415/**
414 * Handle identity GET request for subsystem 416 * Handle identity GET request for subsystem
415 * 417 *
@@ -567,6 +569,7 @@ ego_get_pubkey (struct GNUNET_REST_RequestHandle *con_handle,
567 ego_get_response (handle, ego_entry); 569 ego_get_response (handle, ego_entry);
568} 570}
569 571
572
570/** 573/**
571 * Handle identity GET request with a name 574 * Handle identity GET request with a name
572 * 575 *
@@ -789,6 +792,7 @@ ego_edit_pubkey (struct GNUNET_REST_RequestHandle *con_handle,
789 ego_edit (handle, ego_entry); 792 ego_edit (handle, ego_entry);
790} 793}
791 794
795
792/** 796/**
793 * Handle identity PUT request with name 797 * Handle identity PUT request with name
794 * 798 *
@@ -828,6 +832,7 @@ ego_edit_name (struct GNUNET_REST_RequestHandle *con_handle,
828 ego_edit (handle, ego_entry); 832 ego_edit (handle, ego_entry);
829} 833}
830 834
835
831/** 836/**
832 * Handle identity subsystem PUT request with name 837 * Handle identity subsystem PUT request with name
833 * 838 *
@@ -936,6 +941,7 @@ ego_edit_subsystem (struct GNUNET_REST_RequestHandle *con_handle,
936 return; 941 return;
937} 942}
938 943
944
939/** 945/**
940 * Handle identity POST request 946 * Handle identity POST request
941 * 947 *
@@ -1026,6 +1032,7 @@ ego_create (struct GNUNET_REST_RequestHandle *con_handle,
1026 handle); 1032 handle);
1027} 1033}
1028 1034
1035
1029/** 1036/**
1030 * Handle identity DELETE request with public key 1037 * Handle identity DELETE request with public key
1031 * 1038 *
@@ -1137,6 +1144,7 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle,
1137 return; 1144 return;
1138} 1145}
1139 1146
1147
1140/** 1148/**
1141 * Handle rest request 1149 * Handle rest request
1142 * 1150 *
@@ -1179,6 +1187,7 @@ init_cont (struct RequestHandle *handle)
1179 } 1187 }
1180} 1188}
1181 1189
1190
1182/** 1191/**
1183 * If listing is enabled, prints information about the egos. 1192 * If listing is enabled, prints information about the egos.
1184 * 1193 *
@@ -1257,7 +1266,8 @@ init_egos (void *cls,
1257 GNUNET_free (tmp->identifier); 1266 GNUNET_free (tmp->identifier);
1258 GNUNET_free (tmp); 1267 GNUNET_free (tmp);
1259 } 1268 }
1260 else { 1269 else
1270 {
1261 // Renamed 1271 // Renamed
1262 GNUNET_free (tmp->identifier); 1272 GNUNET_free (tmp->identifier);
1263 tmp->identifier = GNUNET_strdup (identifier); 1273 tmp->identifier = GNUNET_strdup (identifier);
@@ -1276,6 +1286,7 @@ init_egos (void *cls,
1276 1286
1277} 1287}
1278 1288
1289
1279/** 1290/**
1280 * Function processing the REST call 1291 * Function processing the REST call
1281 * 1292 *
@@ -1315,6 +1326,7 @@ rest_process_request (struct GNUNET_REST_RequestHandle *rest_handle,
1315 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n"); 1326 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n");
1316} 1327}
1317 1328
1329
1318/** 1330/**
1319 * Entry point for the plugin. 1331 * Entry point for the plugin.
1320 * 1332 *
@@ -1348,6 +1360,7 @@ libgnunet_plugin_rest_identity_init (void *cls)
1348 return api; 1360 return api;
1349} 1361}
1350 1362
1363
1351/** 1364/**
1352 * Exit point from the plugin. 1365 * Exit point from the plugin.
1353 * 1366 *
@@ -1368,4 +1381,5 @@ libgnunet_plugin_rest_identity_done (void *cls)
1368 return NULL; 1381 return NULL;
1369} 1382}
1370 1383
1384
1371/* end of plugin_rest_identity.c */ 1385/* end of plugin_rest_identity.c */