diff options
author | Gabor X Toth <*@tg-x.net> | 2016-01-26 20:37:09 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2016-01-26 20:37:09 +0000 |
commit | 0841876fb932574a6c9ebaf2adbb64f1ffc06899 (patch) | |
tree | 568f136b839efc1ee71099cbab57f84c2428aed5 /src/include/gnunet_psyc_slicer.h | |
parent | 0d2019bb407ef15f2376963b43169e145a338219 (diff) | |
download | gnunet-0841876fb932574a6c9ebaf2adbb64f1ffc06899.tar.gz gnunet-0841876fb932574a6c9ebaf2adbb64f1ffc06899.zip |
psycutil: slicer callback args
Diffstat (limited to 'src/include/gnunet_psyc_slicer.h')
-rw-r--r-- | src/include/gnunet_psyc_slicer.h | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/src/include/gnunet_psyc_slicer.h b/src/include/gnunet_psyc_slicer.h index d29c231e1..f6b6547f3 100644 --- a/src/include/gnunet_psyc_slicer.h +++ b/src/include/gnunet_psyc_slicer.h | |||
@@ -63,11 +63,15 @@ struct GNUNET_PSYC_Slicer; | |||
63 | * Message part, as it arrived from the network. | 63 | * Message part, as it arrived from the network. |
64 | * @param message_id | 64 | * @param message_id |
65 | * Message counter, monotonically increasing from 1. | 65 | * Message counter, monotonically increasing from 1. |
66 | * @param flags | ||
67 | * OR'ed GNUNET_PSYC_MessageFlags | ||
68 | * @param fragment_offset | ||
69 | * Multicast message fragment offset. | ||
70 | * @param tmit_flags | ||
71 | * OR'ed GNUNET_PSYC_MasterTransmitFlags | ||
66 | * @param nym | 72 | * @param nym |
67 | * The sender of the message. | 73 | * The sender of the message. |
68 | * Can be NULL if the message is not connected to a pseudonym. | 74 | * Can be NULL if the message is not connected to a pseudonym. |
69 | * @param flags | ||
70 | * OR'ed GNUNET_PSYC_MessageFlags | ||
71 | * @param method_name | 75 | * @param method_name |
72 | * Original method name from PSYC. | 76 | * Original method name from PSYC. |
73 | * May be more specific than the registered method name due to | 77 | * May be more specific than the registered method name due to |
@@ -78,6 +82,8 @@ typedef void | |||
78 | const struct GNUNET_PSYC_MessageMethod *msg, | 82 | const struct GNUNET_PSYC_MessageMethod *msg, |
79 | uint64_t message_id, | 83 | uint64_t message_id, |
80 | uint32_t flags, | 84 | uint32_t flags, |
85 | uint64_t fragment_offset, | ||
86 | uint32_t tmit_flags, | ||
81 | const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key, | 87 | const struct GNUNET_CRYPTO_EcdsaPublicKey *nym_pub_key, |
82 | const char *method_name); | 88 | const char *method_name); |
83 | 89 | ||
@@ -89,6 +95,10 @@ typedef void | |||
89 | * Closure. | 95 | * Closure. |
90 | * @param message_id | 96 | * @param message_id |
91 | * Message ID this data fragment belongs to. | 97 | * Message ID this data fragment belongs to. |
98 | * @param flags | ||
99 | * OR'ed GNUNET_PSYC_MessageFlags | ||
100 | * @param fragment_offset | ||
101 | * Multicast message fragment offset. | ||
92 | * @param msg | 102 | * @param msg |
93 | * Message part, as it arrived from the network. | 103 | * Message part, as it arrived from the network. |
94 | * @param oper | 104 | * @param oper |
@@ -106,6 +116,8 @@ typedef void | |||
106 | (*GNUNET_PSYC_ModifierCallback) (void *cls, | 116 | (*GNUNET_PSYC_ModifierCallback) (void *cls, |
107 | const struct GNUNET_MessageHeader *msg, | 117 | const struct GNUNET_MessageHeader *msg, |
108 | uint64_t message_id, | 118 | uint64_t message_id, |
119 | uint32_t flags, | ||
120 | uint64_t fragment_offset, | ||
109 | enum GNUNET_PSYC_Operator oper, | 121 | enum GNUNET_PSYC_Operator oper, |
110 | const char *name, | 122 | const char *name, |
111 | const void *value, | 123 | const void *value, |
@@ -118,16 +130,18 @@ typedef void | |||
118 | * | 130 | * |
119 | * @param cls | 131 | * @param cls |
120 | * Closure. | 132 | * Closure. |
121 | * @param message_id | ||
122 | * Message ID this data fragment belongs to. | ||
123 | * @param msg | 133 | * @param msg |
124 | * Message part, as it arrived from the network. | 134 | * Message part, as it arrived from the network. |
125 | * @param data_offset | 135 | * @param message_id |
126 | * Byte offset of @a data in the overall data of the method. | 136 | * Message ID this data fragment belongs to. |
127 | * @param data_size | 137 | * @param flags |
128 | * Number of bytes in @a data. | 138 | * OR'ed GNUNET_PSYC_MessageFlags |
139 | * @param fragment_offset | ||
140 | * Multicast message fragment offset. | ||
129 | * @param data | 141 | * @param data |
130 | * Data stream given to the method. | 142 | * Data stream given to the method. |
143 | * @param data_size | ||
144 | * Number of bytes in @a data. | ||
131 | * @param end | 145 | * @param end |
132 | * End of message? | 146 | * End of message? |
133 | * #GNUNET_NO if there are further fragments, | 147 | * #GNUNET_NO if there are further fragments, |
@@ -138,7 +152,8 @@ typedef void | |||
138 | (*GNUNET_PSYC_DataCallback) (void *cls, | 152 | (*GNUNET_PSYC_DataCallback) (void *cls, |
139 | const struct GNUNET_MessageHeader *msg, | 153 | const struct GNUNET_MessageHeader *msg, |
140 | uint64_t message_id, | 154 | uint64_t message_id, |
141 | uint64_t data_offset, | 155 | uint32_t flags, |
156 | uint64_t fragment_offset, | ||
142 | const void *data, | 157 | const void *data, |
143 | uint16_t data_size); | 158 | uint16_t data_size); |
144 | 159 | ||
@@ -152,6 +167,10 @@ typedef void | |||
152 | * Message part, as it arrived from the network. | 167 | * Message part, as it arrived from the network. |
153 | * @param message_id | 168 | * @param message_id |
154 | * Message ID this data fragment belongs to. | 169 | * Message ID this data fragment belongs to. |
170 | * @param flags | ||
171 | * OR'ed GNUNET_PSYC_MessageFlags | ||
172 | * @param fragment_offset | ||
173 | * Multicast message fragment offset. | ||
155 | * @param cancelled | 174 | * @param cancelled |
156 | * #GNUNET_YES if the message was cancelled, | 175 | * #GNUNET_YES if the message was cancelled, |
157 | * #GNUNET_NO if the message is complete. | 176 | * #GNUNET_NO if the message is complete. |
@@ -160,6 +179,8 @@ typedef void | |||
160 | (*GNUNET_PSYC_EndOfMessageCallback) (void *cls, | 179 | (*GNUNET_PSYC_EndOfMessageCallback) (void *cls, |
161 | const struct GNUNET_MessageHeader *msg, | 180 | const struct GNUNET_MessageHeader *msg, |
162 | uint64_t message_id, | 181 | uint64_t message_id, |
182 | uint32_t flags, | ||
183 | uint64_t fragment_offset, | ||
163 | uint8_t cancelled); | 184 | uint8_t cancelled); |
164 | 185 | ||
165 | 186 | ||