From e44d0f349bd83f1bcded9621ccc9f15d42bc84d2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 May 2019 13:35:26 +0200 Subject: last minute fixes for 0.11.4 (test cases adjustments only) --- src/include/gnunet_identity_service.h | 82 +++++++++++++++++------------------ 1 file changed, 39 insertions(+), 43 deletions(-) (limited to 'src/include/gnunet_identity_service.h') diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h index 043a71770..035b9e227 100644 --- a/src/include/gnunet_identity_service.h +++ b/src/include/gnunet_identity_service.h @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -43,9 +43,8 @@ #define GNUNET_IDENTITY_SERVICE_H #ifdef __cplusplus -extern "C" -{ -#if 0 /* keep Emacsens' auto-indent happy */ +extern "C" { +#if 0 /* keep Emacsens' auto-indent happy */ } #endif #endif @@ -101,7 +100,7 @@ GNUNET_IDENTITY_ego_get_anonymous (void); */ void GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego, - struct GNUNET_CRYPTO_EcdsaPublicKey *pk); + struct GNUNET_CRYPTO_EcdsaPublicKey *pk); /** @@ -138,11 +137,10 @@ GNUNET_IDENTITY_ego_get_public_key (const struct GNUNET_IDENTITY_Ego *ego, * NULL if the user just deleted the ego and it * must thus no longer be used */ -typedef void -(*GNUNET_IDENTITY_Callback)(void *cls, - struct GNUNET_IDENTITY_Ego *ego, - void **ctx, - const char *name); +typedef void (*GNUNET_IDENTITY_Callback) (void *cls, + struct GNUNET_IDENTITY_Ego *ego, + void **ctx, + const char *name); /** @@ -155,8 +153,8 @@ typedef void */ struct GNUNET_IDENTITY_Handle * GNUNET_IDENTITY_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, - GNUNET_IDENTITY_Callback cb, - void *cb_cls); + GNUNET_IDENTITY_Callback cb, + void *cb_cls); /** @@ -170,9 +168,9 @@ GNUNET_IDENTITY_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, */ struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *id, - const char *service_name, - GNUNET_IDENTITY_Callback cb, - void *cb_cls); + const char *service_name, + GNUNET_IDENTITY_Callback cb, + void *cb_cls); /** @@ -182,9 +180,7 @@ GNUNET_IDENTITY_get (struct GNUNET_IDENTITY_Handle *id, * @param cls closure * @param emsg NULL on success, otherwise an error message */ -typedef void -(*GNUNET_IDENTITY_Continuation)(void *cls, - const char *emsg); +typedef void (*GNUNET_IDENTITY_Continuation) (void *cls, const char *emsg); /** @@ -199,10 +195,10 @@ typedef void */ struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_set (struct GNUNET_IDENTITY_Handle *id, - const char *service_name, - struct GNUNET_IDENTITY_Ego *ego, - GNUNET_IDENTITY_Continuation cont, - void *cont_cls); + const char *service_name, + struct GNUNET_IDENTITY_Ego *ego, + GNUNET_IDENTITY_Continuation cont, + void *cont_cls); /** @@ -222,10 +218,10 @@ GNUNET_IDENTITY_disconnect (struct GNUNET_IDENTITY_Handle *h); * @param pk private key, NULL on error * @param emsg error message, NULL on success */ -typedef void -(*GNUNET_IDENTITY_CreateContinuation)(void *cls, - const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk, - const char *emsg); +typedef void (*GNUNET_IDENTITY_CreateContinuation) ( + void *cls, + const struct GNUNET_CRYPTO_EcdsaPrivateKey *pk, + const char *emsg); /** @@ -239,9 +235,9 @@ typedef void */ struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, - const char *name, - GNUNET_IDENTITY_CreateContinuation cont, - void *cont_cls); + const char *name, + GNUNET_IDENTITY_CreateContinuation cont, + void *cont_cls); /** @@ -256,10 +252,10 @@ GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, */ struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id, - const char *old_name, - const char *new_name, - GNUNET_IDENTITY_Continuation cb, - void *cb_cls); + const char *old_name, + const char *new_name, + GNUNET_IDENTITY_Continuation cb, + void *cb_cls); /** @@ -273,9 +269,9 @@ GNUNET_IDENTITY_rename (struct GNUNET_IDENTITY_Handle *id, */ struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_delete (struct GNUNET_IDENTITY_Handle *id, - const char *name, - GNUNET_IDENTITY_Continuation cb, - void *cb_cls); + const char *name, + GNUNET_IDENTITY_Continuation cb, + void *cb_cls); /** @@ -298,9 +294,9 @@ GNUNET_IDENTITY_cancel (struct GNUNET_IDENTITY_Operation *op); * @param cls closure * @param ego NULL on error / ego not found */ -typedef void -(*GNUNET_IDENTITY_EgoCallback)(void *cls, - const struct GNUNET_IDENTITY_Ego *ego); +typedef void (*GNUNET_IDENTITY_EgoCallback) ( + void *cls, + const struct GNUNET_IDENTITY_Ego *ego); /** * Handle for ego lookup. @@ -319,9 +315,9 @@ struct GNUNET_IDENTITY_EgoLookup; */ struct GNUNET_IDENTITY_EgoLookup * GNUNET_IDENTITY_ego_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg, - const char *name, - GNUNET_IDENTITY_EgoCallback cb, - void *cb_cls); + const char *name, + GNUNET_IDENTITY_EgoCallback cb, + void *cb_cls); /** @@ -333,7 +329,7 @@ void GNUNET_IDENTITY_ego_lookup_cancel (struct GNUNET_IDENTITY_EgoLookup *el); -#if 0 /* keep Emacsens' auto-indent happy */ +#if 0 /* keep Emacsens' auto-indent happy */ { #endif #ifdef __cplusplus -- cgit v1.2.3