diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-18 21:20:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-18 21:20:00 +0000 |
commit | 240091007e4aa56fa36edb62f526b0d390879d95 (patch) | |
tree | b712f724c764aca60dde0dd5f91ad31deefa2687 /src/include | |
parent | a4c1a9c44bc82c4e6863f20c63260282767036de (diff) |
-indentation and comments
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_mq_lib.h | 24 | ||||
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_secretsharing_service.h | 16 |
3 files changed, 22 insertions, 20 deletions
diff --git a/src/include/gnunet_mq_lib.h b/src/include/gnunet_mq_lib.h index 38ebf6b17c..4630fa35ac 100644 --- a/src/include/gnunet_mq_lib.h +++ b/src/include/gnunet_mq_lib.h @@ -268,12 +268,12 @@ struct GNUNET_MQ_MessageHandler /** * Callback to validate a message of the specified @e type. * The closure given to @e mv will be this struct (not @e ctx). - * Using NULL means only size-validation using + * Using NULL means only size-validation using * @e expected_size. In this case, @e expected_size must * be non-zero. */ GNUNET_MQ_MessageValidationCallback mv; - + /** * Callback, called every time a new message of * the specified @e type has been receied. @@ -285,7 +285,7 @@ struct GNUNET_MQ_MessageHandler * Closure for @e mv and @e cb. */ void *cls; - + /** * Type of the message this handler covers, in host byte order. */ @@ -317,14 +317,14 @@ struct GNUNET_MQ_MessageHandler * The macro is to be used as follows: * <code> * struct GNUNET_MessageTest { ... }; // must be fixed size - * GNUNET_MQ_hd_fixed_size(test_message, - * GNUNET_MESSAGE_TYPE_TEST, - * struct GNUNET_MessageTest); * static void - * handle_test_message (void *cls, // the struct GNUNET_MQ_MessageHandler + * handle_test_message (void *cls, * const struct GNUNET_MessageTest *msg) * { ... } - * + * + * GNUNET_MQ_hd_fixed_size(test_message, + * GNUNET_MESSAGE_TYPE_TEST, + * struct GNUNET_MessageTest); * struct GNUNET_MQ_MessageHandler handlers[] = { * make_test_message_handler (), * GNUNET_MQ_handler_end() @@ -355,8 +355,8 @@ struct GNUNET_MQ_MessageHandler * The macro is to be used as follows: * <code> * struct GNUNET_MessageTest { ... }; // can be variable size - * GNUNET_MQ_hd_var_size(test_message, - * GNUNET_MESSAGE_TYPE_TEST, + * GNUNET_MQ_hd_var_size(test_message, + * GNUNET_MESSAGE_TYPE_TEST, * struct GNUNET_MessageTest); * static int * check_test (void *cls, @@ -373,8 +373,8 @@ struct GNUNET_MQ_MessageHandler * const char *ctx = cls; * GNUNET_assert (0 == strcmp ("context", ctx)); * // ... - * } - * + * } + * * struct GNUNET_MQ_MessageHandler handlers[] = { * make_test_message_handler ("context"), * GNUNET_MQ_handler_end() diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index 97d3a38289..202e0fd1a0 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h @@ -34,7 +34,6 @@ #define GNUNET_PEERSTORE_SERVICE_H #include "gnunet_util_lib.h" -#include "gnunet_common.h" #ifdef __cplusplus extern "C" @@ -139,6 +138,7 @@ typedef void const struct GNUNET_PEERSTORE_Record *record, const char *emsg); + /** * Connect to the PEERSTORE service. * diff --git a/src/include/gnunet_secretsharing_service.h b/src/include/gnunet_secretsharing_service.h index 047120e276..f77fd33d2d 100644 --- a/src/include/gnunet_secretsharing_service.h +++ b/src/include/gnunet_secretsharing_service.h @@ -168,11 +168,12 @@ struct GNUNET_SECRETSHARING_Plaintext * @param ready_peers peers that successfuly participated in establishing * the shared secret */ -typedef void (*GNUNET_SECRETSHARING_SecretReadyCallback) (void *cls, - struct GNUNET_SECRETSHARING_Share *my_share, - struct GNUNET_SECRETSHARING_PublicKey *public_key, - unsigned int num_ready_peers, - struct GNUNET_PeerIdentity *ready_peers); +typedef void +(*GNUNET_SECRETSHARING_SecretReadyCallback) (void *cls, + struct GNUNET_SECRETSHARING_Share *my_share, + struct GNUNET_SECRETSHARING_PublicKey *public_key, + unsigned int num_ready_peers, + const struct GNUNET_PeerIdentity *ready_peers); /** @@ -182,8 +183,9 @@ typedef void (*GNUNET_SECRETSHARING_SecretReadyCallback) (void *cls, * @param data decrypted value * @param data_size number of bytes in @a data */ -typedef void (*GNUNET_SECRETSHARING_DecryptCallback) (void *cls, - const struct GNUNET_SECRETSHARING_Plaintext *plaintext); +typedef void +(*GNUNET_SECRETSHARING_DecryptCallback) (void *cls, + const struct GNUNET_SECRETSHARING_Plaintext *plaintext); /** |