aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_psyc_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_psyc_service.h')
-rw-r--r--src/include/gnunet_psyc_service.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h
index e6d47dc4e..e23eef669 100644
--- a/src/include/gnunet_psyc_service.h
+++ b/src/include/gnunet_psyc_service.h
@@ -101,25 +101,22 @@ extern "C"
101#define GNUNET_PSYC_VERSION 0x00000000 101#define GNUNET_PSYC_VERSION 0x00000000
102 102
103 103
104/** 104enum GNUNET_PSYC_MessageFlags
105 * Information flags for data fragments set via PSYC.
106 */
107enum GNUNET_PSYC_FragmentStatus
108{ 105{
109 /** 106 /**
110 * This is the first part of data for the given method call. 107 * First fragment of a message.
111 */ 108 */
112 GNUNET_PSYC_FS_FIRST = 1, 109 GNUNET_PSYC_MESSAGE_FIRST_FRAGMENT = GNUNET_MULTICAST_MESSAGE_FIRST_FRAGMENT,
113 110
114 /** 111 /**
115 * This is the last part of data for the given method call. 112 * Last fragment of a message.
116 */ 113 */
117 GNUNET_PSYC_FS_LAST = 2, 114 GNUNET_PSYC_MESSAGE_LAST_FRAGMENT = GNUNET_MULTICAST_MESSAGE_LAST_FRAGMENT,
118 115
119 /** 116 /**
120 * OR'ed flags if payload is not fragmented. 117 * OR'ed flags if message is not fragmented.
121 */ 118 */
122 GNUNET_PSYC_FS_NOT_FRAGMENTED = (GNUNET_PSYC_FS_FIRST | GNUNET_PSYC_FS_LAST) 119 GNUNET_PSYC_MESSAGE_NOT_FRAGMENTED = GNUNET_MULTICAST_MESSAGE_NOT_FRAGMENTED
123}; 120};
124 121
125 122
@@ -157,7 +154,7 @@ struct GNUNET_PSYC_PartHandle;
157 * FIXME: no try-and-slice for methods defined here. 154 * FIXME: no try-and-slice for methods defined here.
158 * @param header_length Number of modifiers in header. 155 * @param header_length Number of modifiers in header.
159 * @param header Modifiers present in the message. 156 * @param header Modifiers present in the message.
160 * @param data_off Byte offset of @a data in the overall data of the method. 157 * @param data_offset Byte offset of @a data in the overall data of the method.
161 * @param data_size Number of bytes in @a data. 158 * @param data_size Number of bytes in @a data.
162 * @param data Data stream given to the method (might not be zero-terminated 159 * @param data Data stream given to the method (might not be zero-terminated
163 * if data is binary). 160 * if data is binary).
@@ -168,10 +165,12 @@ typedef int (*GNUNET_PSYC_Method)(void *cls,
168 uint64_t message_id, 165 uint64_t message_id,
169 uint64_t group_generation, 166 uint64_t group_generation,
170 const char *method_name, 167 const char *method_name,
171 uint64_t data_off, 168 size_t header_length,
169 GNUNET_PSYC_Modifier *header,
170 uint64_t data_offset,
172 size_t data_size, 171 size_t data_size,
173 const void *data, 172 const void *data,
174 enum GNUNET_PSYC_FragmentStatus frag); 173 enum GNUNET_PSYC_MessageFlags flags);
175 174
176 175
177/** 176/**