From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/identity/gnunet-identity.c | 1 + src/identity/gnunet-service-identity.c | 8 ++++++++ src/identity/identity_api.c | 1 + src/identity/plugin_rest_identity.c | 16 +++++++++++++++- 4 files changed, 25 insertions(+), 1 deletion(-) (limited to 'src/identity') 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) return global_ret; } + /* 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) return filename; } + /** * Called whenever a client is disconnected. * @@ -159,6 +160,7 @@ client_connect_cb (void *cls, return client; } + /** * Task run during shutdown. * @@ -521,6 +523,7 @@ key_cmp (const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk1, return GNUNET_memcmp (pk1, pk2); } + /** * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_SET_DEFAULT message * @@ -557,6 +560,7 @@ check_set_default_message (void *cls, const struct SetDefaultMessage *msg) return GNUNET_OK; } + /** * Handler for SET_DEFAULT message from client, updates * default identity for some service. @@ -629,6 +633,7 @@ notify_listeners (struct Ego *ego) GNUNET_free (um); } + /** * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_CREATE message * @@ -665,6 +670,7 @@ check_create_message (void *cls, const struct CreateRequestMessage *msg) return GNUNET_OK; } + /** * Handler for CREATE message from client, creates * new identity. @@ -765,6 +771,7 @@ handle_ego_rename (void *cls, const char *section) GNUNET_free (id); } + /** * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_RENAME message * @@ -916,6 +923,7 @@ handle_ego_delete (void *cls, const char *section) GNUNET_free (id); } + /** * Checks a #GNUNET_MESSAGE_TYPE_IDENTITY_DELETE message * 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) GNUNET_free (h); } + /* 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) GNUNET_free (handle); } + /** * Task run on errors. Reports an error and cleans up everything. * @@ -410,6 +411,7 @@ ego_get_for_subsystem (void *cls, GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); } + /** * Handle identity GET request for subsystem * @@ -567,6 +569,7 @@ ego_get_pubkey (struct GNUNET_REST_RequestHandle *con_handle, ego_get_response (handle, ego_entry); } + /** * Handle identity GET request with a name * @@ -789,6 +792,7 @@ ego_edit_pubkey (struct GNUNET_REST_RequestHandle *con_handle, ego_edit (handle, ego_entry); } + /** * Handle identity PUT request with name * @@ -828,6 +832,7 @@ ego_edit_name (struct GNUNET_REST_RequestHandle *con_handle, ego_edit (handle, ego_entry); } + /** * Handle identity subsystem PUT request with name * @@ -936,6 +941,7 @@ ego_edit_subsystem (struct GNUNET_REST_RequestHandle *con_handle, return; } + /** * Handle identity POST request * @@ -1026,6 +1032,7 @@ ego_create (struct GNUNET_REST_RequestHandle *con_handle, handle); } + /** * Handle identity DELETE request with public key * @@ -1137,6 +1144,7 @@ options_cont (struct GNUNET_REST_RequestHandle *con_handle, return; } + /** * Handle rest request * @@ -1179,6 +1187,7 @@ init_cont (struct RequestHandle *handle) } } + /** * If listing is enabled, prints information about the egos. * @@ -1257,7 +1266,8 @@ init_egos (void *cls, GNUNET_free (tmp->identifier); GNUNET_free (tmp); } - else { + else + { // Renamed GNUNET_free (tmp->identifier); tmp->identifier = GNUNET_strdup (identifier); @@ -1276,6 +1286,7 @@ init_egos (void *cls, } + /** * Function processing the REST call * @@ -1315,6 +1326,7 @@ rest_process_request (struct GNUNET_REST_RequestHandle *rest_handle, GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n"); } + /** * Entry point for the plugin. * @@ -1348,6 +1360,7 @@ libgnunet_plugin_rest_identity_init (void *cls) return api; } + /** * Exit point from the plugin. * @@ -1368,4 +1381,5 @@ libgnunet_plugin_rest_identity_done (void *cls) return NULL; } + /* end of plugin_rest_identity.c */ -- cgit v1.2.3