diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
commit | f44c0036572d5557d2496748a4190a61e40e61ff (patch) | |
tree | bceb908e8542883ed246f96b4c619c0c49a06782 /src/include/gnunet_mesh_service.h | |
parent | 9d87d51965287d83ee332b8c50baff95bd62649a (diff) | |
download | gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.tar.gz gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.zip |
replacing 0-terminated atsi-array with array+length in core API (and the core-connect IPC)
Diffstat (limited to 'src/include/gnunet_mesh_service.h')
-rw-r--r-- | src/include/gnunet_mesh_service.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/gnunet_mesh_service.h b/src/include/gnunet_mesh_service.h index ab573557c..914bc2dc6 100644 --- a/src/include/gnunet_mesh_service.h +++ b/src/include/gnunet_mesh_service.h | |||
@@ -64,6 +64,7 @@ struct GNUNET_MESH_Tunnel; | |||
64 | * @param sender who sent the message | 64 | * @param sender who sent the message |
65 | * @param message the actual message | 65 | * @param message the actual message |
66 | * @param atsi performance data for the connection | 66 | * @param atsi performance data for the connection |
67 | * @param atsi_count number of records in 'atsi' | ||
67 | * @return GNUNET_OK to keep the connection open, | 68 | * @return GNUNET_OK to keep the connection open, |
68 | * GNUNET_SYSERR to close it (signal serious error) | 69 | * GNUNET_SYSERR to close it (signal serious error) |
69 | */ | 70 | */ |
@@ -76,7 +77,8 @@ typedef int (*GNUNET_MESH_MessageCallback) (void *cls, | |||
76 | message, | 77 | message, |
77 | const struct | 78 | const struct |
78 | GNUNET_ATS_Information * | 79 | GNUNET_ATS_Information * |
79 | atsi); | 80 | atsi, |
81 | unsigned int atsi_count); | ||
80 | 82 | ||
81 | 83 | ||
82 | /** | 84 | /** |
@@ -184,13 +186,15 @@ typedef void (*GNUNET_MESH_TunnelDisconnectHandler) (void *cls, | |||
184 | * @param cls closure | 186 | * @param cls closure |
185 | * @param peer peer identity the tunnel was created to, NULL on timeout | 187 | * @param peer peer identity the tunnel was created to, NULL on timeout |
186 | * @param atsi performance data for the connection | 188 | * @param atsi performance data for the connection |
189 | * @param atsi_count number of records in 'atsi' | ||
187 | */ | 190 | */ |
188 | typedef void (*GNUNET_MESH_TunnelConnectHandler) (void *cls, | 191 | typedef void (*GNUNET_MESH_TunnelConnectHandler) (void *cls, |
189 | const struct | 192 | const struct |
190 | GNUNET_PeerIdentity * peer, | 193 | GNUNET_PeerIdentity * peer, |
191 | const struct | 194 | const struct |
192 | GNUNET_ATS_Information | 195 | GNUNET_ATS_Information |
193 | * atsi); | 196 | * atsi, |
197 | unsigned int atsi_count); | ||
194 | 198 | ||
195 | 199 | ||
196 | 200 | ||