diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/identity | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/identity')
-rw-r--r-- | src/identity/gnunet-identity.c | 1 | ||||
-rw-r--r-- | src/identity/gnunet-service-identity.c | 8 | ||||
-rw-r--r-- | src/identity/identity_api.c | 1 | ||||
-rw-r--r-- | src/identity/plugin_rest_identity.c | 16 |
4 files changed, 25 insertions, 1 deletions
diff --git a/src/identity/gnunet-identity.c b/src/identity/gnunet-identity.c index 6a5b1b1ca..1350376d9 100644 --- a/src/identity/gnunet-identity.c +++ b/src/identity/gnunet-identity.c | |||
@@ -446,4 +446,5 @@ main (int argc, char *const *argv) | |||
446 | return global_ret; | 446 | return global_ret; |
447 | } | 447 | } |
448 | 448 | ||
449 | |||
449 | /* end of gnunet-identity.c */ | 450 | /* end of gnunet-identity.c */ |
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c index 98b5bde45..b509e7e9a 100644 --- a/src/identity/gnunet-service-identity.c +++ b/src/identity/gnunet-service-identity.c | |||
@@ -127,6 +127,7 @@ get_ego_filename (struct Ego *ego) | |||
127 | return filename; | 127 | return filename; |
128 | } | 128 | } |
129 | 129 | ||
130 | |||
130 | /** | 131 | /** |
131 | * Called whenever a client is disconnected. | 132 | * Called whenever a client is disconnected. |
132 | * | 133 | * |
@@ -159,6 +160,7 @@ client_connect_cb (void *cls, | |||
159 | return client; | 160 | return client; |
160 | } | 161 | } |
161 | 162 | ||
163 | |||
162 | /** | 164 | /** |
163 | * Task run during shutdown. | 165 | * Task run during shutdown. |
164 | * | 166 | * |
@@ -521,6 +523,7 @@ key_cmp (const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk1, | |||
521 | return GNUNET_memcmp (pk1, pk2); | 523 | return GNUNET_memcmp (pk1, pk2); |
522 | } | 524 | } |
523 | 525 | ||
526 | |||
524 | /** | 527 | /** |
525 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT message | 528 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT message |
526 | * | 529 | * |
@@ -557,6 +560,7 @@ check_set_default_message (void *cls, const struct SetDefaultMessage *msg) | |||
557 | return GNUNET_OK; | 560 | return GNUNET_OK; |
558 | } | 561 | } |
559 | 562 | ||
563 | |||
560 | /** | 564 | /** |
561 | * Handler for SET_DEFAULT message from client, updates | 565 | * Handler for SET_DEFAULT message from client, updates |
562 | * default identity for some service. | 566 | * default identity for some service. |
@@ -629,6 +633,7 @@ notify_listeners (struct Ego *ego) | |||
629 | GNUNET_free (um); | 633 | GNUNET_free (um); |
630 | } | 634 | } |
631 | 635 | ||
636 | |||
632 | /** | 637 | /** |
633 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_CREATE message | 638 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_CREATE message |
634 | * | 639 | * |
@@ -665,6 +670,7 @@ check_create_message (void *cls, const struct CreateRequestMessage *msg) | |||
665 | return GNUNET_OK; | 670 | return GNUNET_OK; |
666 | } | 671 | } |
667 | 672 | ||
673 | |||
668 | /** | 674 | /** |
669 | * Handler for CREATE message from client, creates | 675 | * Handler for CREATE message from client, creates |
670 | * new identity. | 676 | * new identity. |
@@ -765,6 +771,7 @@ handle_ego_rename (void *cls, const char *section) | |||
765 | GNUNET_free (id); | 771 | GNUNET_free (id); |
766 | } | 772 | } |
767 | 773 | ||
774 | |||
768 | /** | 775 | /** |
769 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_RENAME message | 776 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_RENAME message |
770 | * | 777 | * |
@@ -916,6 +923,7 @@ handle_ego_delete (void *cls, const char *section) | |||
916 | GNUNET_free (id); | 923 | GNUNET_free (id); |
917 | } | 924 | } |
918 | 925 | ||
926 | |||
919 | /** | 927 | /** |
920 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_DELETE message | 928 | * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_DELETE message |
921 | * | 929 | * |
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 42e25c11d..29d9b9011 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c | |||
@@ -865,4 +865,5 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h) | |||
865 | GNUNET_free (h); | 865 | GNUNET_free (h); |
866 | } | 866 | } |
867 | 867 | ||
868 | |||
868 | /* end of identity_api.c */ | 869 | /* end of identity_api.c */ |
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 */ |