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 | |
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')
-rw-r--r-- | src/include/gnunet_core_service.h | 8 | ||||
-rw-r--r-- | src/include/gnunet_mesh_service.h | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index d0adf127b..24c9aa598 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -57,13 +57,15 @@ struct GNUNET_CORE_Handle; | |||
57 | * @param cls closure | 57 | * @param cls closure |
58 | * @param peer peer identity this notification is about | 58 | * @param peer peer identity this notification is about |
59 | * @param atsi performance data for the connection | 59 | * @param atsi performance data for the connection |
60 | * @param atsi_count number of records in 'atsi' | ||
60 | */ | 61 | */ |
61 | typedef void (*GNUNET_CORE_ConnectEventHandler) (void *cls, | 62 | typedef void (*GNUNET_CORE_ConnectEventHandler) (void *cls, |
62 | const struct | 63 | const struct |
63 | GNUNET_PeerIdentity * peer, | 64 | GNUNET_PeerIdentity * peer, |
64 | const struct | 65 | const struct |
65 | GNUNET_ATS_Information | 66 | GNUNET_ATS_Information |
66 | * atsi); | 67 | * atsi, |
68 | unsigned int atsi_count); | ||
67 | 69 | ||
68 | 70 | ||
69 | /** | 71 | /** |
@@ -86,6 +88,7 @@ typedef void (*GNUNET_CORE_DisconnectEventHandler) (void *cls, | |||
86 | * for loopback messages where we are both sender and receiver) | 88 | * for loopback messages where we are both sender and receiver) |
87 | * @param message the actual message | 89 | * @param message the actual message |
88 | * @param atsi performance data for the connection | 90 | * @param atsi performance data for the connection |
91 | * @param atsi_count number of records in 'atsi' | ||
89 | * @return GNUNET_OK to keep the connection open, | 92 | * @return GNUNET_OK to keep the connection open, |
90 | * GNUNET_SYSERR to close it (signal serious error) | 93 | * GNUNET_SYSERR to close it (signal serious error) |
91 | */ | 94 | */ |
@@ -96,7 +99,8 @@ typedef int (*GNUNET_CORE_MessageCallback) (void *cls, | |||
96 | message, | 99 | message, |
97 | const struct | 100 | const struct |
98 | GNUNET_ATS_Information * | 101 | GNUNET_ATS_Information * |
99 | atsi); | 102 | atsi, |
103 | unsigned int atsi_count); | ||
100 | 104 | ||
101 | 105 | ||
102 | /** | 106 | /** |
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 | ||