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_core_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_core_service.h')
-rw-r--r-- | src/include/gnunet_core_service.h | 8 |
1 files changed, 6 insertions, 2 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 | /** |