diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-08-04 11:06:52 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-08-04 11:06:52 +0000 |
commit | 4371b0fcd9b50f78ca27ac48adf2f4663b2dfc9b (patch) | |
tree | 05c40696267088fa94cdb0a94b3c079b38ea8ed2 /src/peerstore/peerstore_common.h | |
parent | ef494e57d189e2b7c038104e44398d11026ff6a6 (diff) | |
download | gnunet-4371b0fcd9b50f78ca27ac48adf2f4663b2dfc9b.tar.gz gnunet-4371b0fcd9b50f78ca27ac48adf2f4663b2dfc9b.zip |
peerstore: indentation
Diffstat (limited to 'src/peerstore/peerstore_common.h')
-rw-r--r-- | src/peerstore/peerstore_common.h | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/src/peerstore/peerstore_common.h b/src/peerstore/peerstore_common.h index 50ff4a2f9..fb1318146 100644 --- a/src/peerstore/peerstore_common.h +++ b/src/peerstore/peerstore_common.h | |||
@@ -31,10 +31,9 @@ | |||
31 | * | 31 | * |
32 | */ | 32 | */ |
33 | void | 33 | void |
34 | PEERSTORE_hash_key(const char *sub_system, | 34 | PEERSTORE_hash_key (const char *sub_system, |
35 | const struct GNUNET_PeerIdentity *peer, | 35 | const struct GNUNET_PeerIdentity *peer, const char *key, |
36 | const char *key, | 36 | struct GNUNET_HashCode *ret); |
37 | struct GNUNET_HashCode *ret); | ||
38 | 37 | ||
39 | /** | 38 | /** |
40 | * Creates a record message ready to be sent | 39 | * Creates a record message ready to be sent |
@@ -49,13 +48,12 @@ PEERSTORE_hash_key(const char *sub_system, | |||
49 | * @return pointer to record message struct | 48 | * @return pointer to record message struct |
50 | */ | 49 | */ |
51 | struct StoreRecordMessage * | 50 | struct StoreRecordMessage * |
52 | PEERSTORE_create_record_message(const char *sub_system, | 51 | PEERSTORE_create_record_message (const char *sub_system, |
53 | const struct GNUNET_PeerIdentity *peer, | 52 | const struct GNUNET_PeerIdentity *peer, |
54 | const char *key, | 53 | const char *key, const void *value, |
55 | const void *value, | 54 | size_t value_size, |
56 | size_t value_size, | 55 | struct GNUNET_TIME_Absolute *expiry, |
57 | struct GNUNET_TIME_Absolute *expiry, | 56 | uint16_t msg_type); |
58 | uint16_t msg_type); | ||
59 | 57 | ||
60 | /** | 58 | /** |
61 | * Creates a MQ envelope for a single record | 59 | * Creates a MQ envelope for a single record |
@@ -71,14 +69,13 @@ PEERSTORE_create_record_message(const char *sub_system, | |||
71 | * @return pointer to record message struct | 69 | * @return pointer to record message struct |
72 | */ | 70 | */ |
73 | struct GNUNET_MQ_Envelope * | 71 | struct GNUNET_MQ_Envelope * |
74 | PEERSTORE_create_record_mq_envelope(const char *sub_system, | 72 | PEERSTORE_create_record_mq_envelope (const char *sub_system, |
75 | const struct GNUNET_PeerIdentity *peer, | 73 | const struct GNUNET_PeerIdentity *peer, |
76 | const char *key, | 74 | const char *key, const void *value, |
77 | const void *value, | 75 | size_t value_size, |
78 | size_t value_size, | 76 | struct GNUNET_TIME_Absolute *expiry, |
79 | struct GNUNET_TIME_Absolute *expiry, | 77 | enum GNUNET_PEERSTORE_StoreOption options, |
80 | enum GNUNET_PEERSTORE_StoreOption options, | 78 | uint16_t msg_type); |
81 | uint16_t msg_type); | ||
82 | 79 | ||
83 | /** | 80 | /** |
84 | * Parses a message carrying a record | 81 | * Parses a message carrying a record |
@@ -87,11 +84,12 @@ PEERSTORE_create_record_mq_envelope(const char *sub_system, | |||
87 | * @return Pointer to record or NULL if error | 84 | * @return Pointer to record or NULL if error |
88 | */ | 85 | */ |
89 | struct GNUNET_PEERSTORE_Record * | 86 | struct GNUNET_PEERSTORE_Record * |
90 | PEERSTORE_parse_record_message(const struct GNUNET_MessageHeader *message); | 87 | PEERSTORE_parse_record_message (const struct GNUNET_MessageHeader *message); |
91 | 88 | ||
92 | /** | 89 | /** |
93 | * Free any memory allocated for this record | 90 | * Free any memory allocated for this record |
94 | * | 91 | * |
95 | * @param record | 92 | * @param record |
96 | */ | 93 | */ |
97 | void PEERSTORE_destroy_record(struct GNUNET_PEERSTORE_Record *record); | 94 | void |
95 | PEERSTORE_destroy_record (struct GNUNET_PEERSTORE_Record *record); | ||