diff options
author | Gabor X Toth <*@tg-x.net> | 2014-03-13 18:49:13 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-03-13 18:49:13 +0000 |
commit | 49fb1901d18e1e42c41b7cd8817e5778ed473470 (patch) | |
tree | 657826803c2a9b36448bad59672edca2b65a4748 /src/include/gnunet_psyc_service.h | |
parent | d309f70641efc038d4b23558030b0551c3101256 (diff) | |
download | gnunet-49fb1901d18e1e42c41b7cd8817e5778ed473470.tar.gz gnunet-49fb1901d18e1e42c41b7cd8817e5778ed473470.zip |
PSYC: message types, documentation
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r-- | src/include/gnunet_psyc_service.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h index 3a0c713d5..018f012f4 100644 --- a/src/include/gnunet_psyc_service.h +++ b/src/include/gnunet_psyc_service.h | |||
@@ -113,6 +113,7 @@ enum GNUNET_PSYC_ChannelFlags | |||
113 | GNUNET_PSYC_CHANNEL_RESTRICTED_HISTORY = 1 << 1 | 113 | GNUNET_PSYC_CHANNEL_RESTRICTED_HISTORY = 1 << 1 |
114 | }; | 114 | }; |
115 | 115 | ||
116 | |||
116 | /** | 117 | /** |
117 | * PSYC channel policies. | 118 | * PSYC channel policies. |
118 | */ | 119 | */ |
@@ -169,6 +170,7 @@ enum GNUNET_PSYC_MessageFlags | |||
169 | GNUNET_PSYC_MESSAGE_REQUEST = 1 << 1 | 170 | GNUNET_PSYC_MESSAGE_REQUEST = 1 << 1 |
170 | }; | 171 | }; |
171 | 172 | ||
173 | |||
172 | GNUNET_NETWORK_STRUCT_BEGIN | 174 | GNUNET_NETWORK_STRUCT_BEGIN |
173 | 175 | ||
174 | /** | 176 | /** |
@@ -190,6 +192,7 @@ struct GNUNET_PSYC_MessageHeader | |||
190 | 192 | ||
191 | /** | 193 | /** |
192 | * Number of the message this message part belongs to. | 194 | * Number of the message this message part belongs to. |
195 | * Monotonically increasing from 1. | ||
193 | */ | 196 | */ |
194 | uint64_t message_id GNUNET_PACKED; | 197 | uint64_t message_id GNUNET_PACKED; |
195 | 198 | ||
@@ -254,6 +257,7 @@ struct GNUNET_PSYC_MessageModifier | |||
254 | 257 | ||
255 | GNUNET_NETWORK_STRUCT_END | 258 | GNUNET_NETWORK_STRUCT_END |
256 | 259 | ||
260 | |||
257 | #define GNUNET_PSYC_MODIFIER_MAX_PAYLOAD \ | 261 | #define GNUNET_PSYC_MODIFIER_MAX_PAYLOAD \ |
258 | GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD \ | 262 | GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD \ |
259 | - sizeof (struct GNUNET_PSYC_MessageModifier) | 263 | - sizeof (struct GNUNET_PSYC_MessageModifier) |
@@ -266,6 +270,7 @@ GNUNET_NETWORK_STRUCT_END | |||
266 | GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD \ | 270 | GNUNET_MULTICAST_FRAGMENT_MAX_PAYLOAD \ |
267 | - sizeof (struct GNUNET_MessageHeader) | 271 | - sizeof (struct GNUNET_MessageHeader) |
268 | 272 | ||
273 | |||
269 | /** | 274 | /** |
270 | * Handle that identifies a join request. | 275 | * Handle that identifies a join request. |
271 | * | 276 | * |
@@ -362,7 +367,7 @@ struct GNUNET_PSYC_Master; | |||
362 | * Function called after the channel master started. | 367 | * Function called after the channel master started. |
363 | * | 368 | * |
364 | * @param cls Closure. | 369 | * @param cls Closure. |
365 | * @param last_message_id Last message ID sent to the channel. | 370 | * @param max_message_id Last message ID sent to the channel. |
366 | */ | 371 | */ |
367 | typedef void | 372 | typedef void |
368 | (*GNUNET_PSYC_MasterStartCallback) (void *cls, uint64_t max_message_id); | 373 | (*GNUNET_PSYC_MasterStartCallback) (void *cls, uint64_t max_message_id); |