diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-09-27 11:02:56 +0200 |
commit | 7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch) | |
tree | 69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/messenger_api_handle.c | |
parent | 1fef34e55a00816bdb237e87ff14d54e6575f763 (diff) | |
download | gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.tar.gz gnunet-7ecc3a03a0670a1620c603502c9958b95e6dc1d0.zip |
-indentation of parameters
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/messenger_api_handle.c')
-rw-r--r-- | src/messenger/messenger_api_handle.c | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/src/messenger/messenger_api_handle.c b/src/messenger/messenger_api_handle.c index ab57f82cc..516807e13 100644 --- a/src/messenger/messenger_api_handle.c +++ b/src/messenger/messenger_api_handle.c | |||
@@ -28,8 +28,11 @@ | |||
28 | #include "messenger_api_util.h" | 28 | #include "messenger_api_util.h" |
29 | 29 | ||
30 | struct GNUNET_MESSENGER_Handle* | 30 | struct GNUNET_MESSENGER_Handle* |
31 | create_handle (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_MESSENGER_IdentityCallback identity_callback, | 31 | create_handle (const struct GNUNET_CONFIGURATION_Handle *cfg, |
32 | void *identity_cls, GNUNET_MESSENGER_MessageCallback msg_callback, void *msg_cls) | 32 | GNUNET_MESSENGER_IdentityCallback identity_callback, |
33 | void *identity_cls, | ||
34 | GNUNET_MESSENGER_MessageCallback msg_callback, | ||
35 | void *msg_cls) | ||
33 | { | 36 | { |
34 | GNUNET_assert(cfg); | 37 | GNUNET_assert(cfg); |
35 | 38 | ||
@@ -58,7 +61,9 @@ create_handle (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_MESSENGER_I | |||
58 | } | 61 | } |
59 | 62 | ||
60 | static int | 63 | static int |
61 | iterate_destroy_room (void *cls, const struct GNUNET_HashCode *key, void *value) | 64 | iterate_destroy_room (void *cls, |
65 | const struct GNUNET_HashCode *key, | ||
66 | void *value) | ||
62 | { | 67 | { |
63 | struct GNUNET_MESSENGER_Room *room = value; | 68 | struct GNUNET_MESSENGER_Room *room = value; |
64 | 69 | ||
@@ -97,7 +102,8 @@ destroy_handle (struct GNUNET_MESSENGER_Handle *handle) | |||
97 | } | 102 | } |
98 | 103 | ||
99 | void | 104 | void |
100 | set_handle_name (struct GNUNET_MESSENGER_Handle *handle, const char *name) | 105 | set_handle_name (struct GNUNET_MESSENGER_Handle *handle, |
106 | const char *name) | ||
101 | { | 107 | { |
102 | GNUNET_assert(handle); | 108 | GNUNET_assert(handle); |
103 | 109 | ||
@@ -116,7 +122,8 @@ get_handle_name (const struct GNUNET_MESSENGER_Handle *handle) | |||
116 | } | 122 | } |
117 | 123 | ||
118 | void | 124 | void |
119 | set_handle_key (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_IDENTITY_PublicKey *pubkey) | 125 | set_handle_key (struct GNUNET_MESSENGER_Handle *handle, |
126 | const struct GNUNET_IDENTITY_PublicKey *pubkey) | ||
120 | { | 127 | { |
121 | GNUNET_assert(handle); | 128 | GNUNET_assert(handle); |
122 | 129 | ||
@@ -146,7 +153,8 @@ get_handle_contact_store (struct GNUNET_MESSENGER_Handle *handle) | |||
146 | } | 153 | } |
147 | 154 | ||
148 | struct GNUNET_MESSENGER_Contact* | 155 | struct GNUNET_MESSENGER_Contact* |
149 | get_handle_contact (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) | 156 | get_handle_contact (struct GNUNET_MESSENGER_Handle *handle, |
157 | const struct GNUNET_HashCode *key) | ||
150 | { | 158 | { |
151 | GNUNET_assert((handle) && (key)); | 159 | GNUNET_assert((handle) && (key)); |
152 | 160 | ||
@@ -162,7 +170,8 @@ get_handle_contact (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_ | |||
162 | } | 170 | } |
163 | 171 | ||
164 | void | 172 | void |
165 | open_handle_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) | 173 | open_handle_room (struct GNUNET_MESSENGER_Handle *handle, |
174 | const struct GNUNET_HashCode *key) | ||
166 | { | 175 | { |
167 | GNUNET_assert((handle) && (key)); | 176 | GNUNET_assert((handle) && (key)); |
168 | 177 | ||
@@ -173,7 +182,8 @@ open_handle_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_Ha | |||
173 | } | 182 | } |
174 | 183 | ||
175 | void | 184 | void |
176 | entry_handle_room_at (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_PeerIdentity *door, | 185 | entry_handle_room_at (struct GNUNET_MESSENGER_Handle *handle, |
186 | const struct GNUNET_PeerIdentity *door, | ||
177 | const struct GNUNET_HashCode *key) | 187 | const struct GNUNET_HashCode *key) |
178 | { | 188 | { |
179 | GNUNET_assert((handle) && (door) && (key)); | 189 | GNUNET_assert((handle) && (door) && (key)); |
@@ -185,7 +195,8 @@ entry_handle_room_at (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNE | |||
185 | } | 195 | } |
186 | 196 | ||
187 | void | 197 | void |
188 | close_handle_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) | 198 | close_handle_room (struct GNUNET_MESSENGER_Handle *handle, |
199 | const struct GNUNET_HashCode *key) | ||
189 | { | 200 | { |
190 | GNUNET_assert((handle) && (key)); | 201 | GNUNET_assert((handle) && (key)); |
191 | 202 | ||