aboutsummaryrefslogtreecommitdiff
path: root/src/messenger/messenger_api_handle.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2021-09-27 11:02:56 +0200
committerTheJackiMonster <thejackimonster@gmail.com>2021-09-27 11:02:56 +0200
commit7ecc3a03a0670a1620c603502c9958b95e6dc1d0 (patch)
tree69d76fd05cbf0facae18b99b526c16426bf9b1c6 /src/messenger/messenger_api_handle.c
parent1fef34e55a00816bdb237e87ff14d54e6575f763 (diff)
downloadgnunet-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.c29
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
30struct GNUNET_MESSENGER_Handle* 30struct GNUNET_MESSENGER_Handle*
31create_handle (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_MESSENGER_IdentityCallback identity_callback, 31create_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
60static int 63static int
61iterate_destroy_room (void *cls, const struct GNUNET_HashCode *key, void *value) 64iterate_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
99void 104void
100set_handle_name (struct GNUNET_MESSENGER_Handle *handle, const char *name) 105set_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
118void 124void
119set_handle_key (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_IDENTITY_PublicKey *pubkey) 125set_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
148struct GNUNET_MESSENGER_Contact* 155struct GNUNET_MESSENGER_Contact*
149get_handle_contact (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) 156get_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
164void 172void
165open_handle_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) 173open_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
175void 184void
176entry_handle_room_at (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_PeerIdentity *door, 185entry_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
187void 197void
188close_handle_room (struct GNUNET_MESSENGER_Handle *handle, const struct GNUNET_HashCode *key) 198close_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