GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
- by the Free Software Foundation; either version 2, or (at your
+ by the Free Software Foundation; either version 3, or (at your
option) any later version.
GNUnet is distributed in the hope that it will be useful, but
/**
* Operation type, values of enum GNUNET_SET_OperationType
*/
- uint16_t operation GNUNET_PACKED;
+ uint32_t operation GNUNET_PACKED;
/**
* application id
* must be 0 if we don't accept the request.
*/
uint32_t request_id GNUNET_PACKED;
+
+ /**
+ * How should results be sent to us?
+ * See enum GNUNET_SET_ResultMode.
+ */
+ uint16_t result_mode GNUNET_PACKED;
};
uint16_t salt GNUNET_PACKED;
/**
- * Padding
+ * How should results be sent to us?
+ * See enum GNUNET_SET_ResultMode.
*/
- uint16_t reserved GNUNET_PACKED;
+ uint16_t result_mode GNUNET_PACKED;
/* rest: inner message */
};
uint32_t request_id GNUNET_PACKED;
};
+struct GNUNET_SET_IterResponseMessage
+{
+ /**
+ * Type: GNUNET_MESSAGE_TYPE_SET_ITER_RESPONSE
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Type of the element attachted to the message,
+ * if any.
+ */
+ uint16_t element_type GNUNET_PACKED;
+
+ /* rest: element */
+};
+
+struct GNUNET_SET_IterAckMessage
+{
+ /**
+ * Type: GNUNET_MESSAGE_TYPE_SET_ITER_ACK
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Non-zero if the service should continue sending elements.
+ */
+ uint32_t send_more;
+};
GNUNET_NETWORK_STRUCT_END