WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file set/set.h
* @brief messages used for the set api
* a new set to perform operations with. Includes the desired
* set operation type.
*/
-struct GNUNET_SET_CreateMessage
-{
+struct GNUNET_SET_CreateMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_CREATE
*/
* incoming requests to perform a certain type of set operation for a
* certain type of application.
*/
-struct GNUNET_SET_ListenMessage
-{
+struct GNUNET_SET_ListenMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_LISTEN
*/
* application id
*/
struct GNUNET_HashCode app_id;
-
};
* Message sent by a listening client to the service to accept
* performing the operation with the other peer.
*/
-struct GNUNET_SET_AcceptMessage
-{
+struct GNUNET_SET_AcceptMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_ACCEPT
*/
* Message sent by a listening client to the service to reject
* performing the operation with the other peer.
*/
-struct GNUNET_SET_RejectMessage
-{
+struct GNUNET_SET_RejectMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_REJECT
*/
* ID of the incoming request we want to reject.
*/
uint32_t accept_reject_id GNUNET_PACKED;
-
};
/**
* A request for an operation with another client.
*/
-struct GNUNET_SET_RequestMessage
-{
+struct GNUNET_SET_RequestMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_REQUEST.
*/
* client (not as listener). A set (which determines the operation
* type) must already exist in association with this client.
*/
-struct GNUNET_SET_EvaluateMessage
-{
+struct GNUNET_SET_EvaluateMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_EVALUATE
*/
* (set union) or part of the final result, depending on
* options specified for the operation.
*/
-struct GNUNET_SET_ResultMessage
-{
+struct GNUNET_SET_ResultMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_RESULT
*/
* Message sent by client to the service to add or remove
* an element to/from the set.
*/
-struct GNUNET_SET_ElementMessage
-{
+struct GNUNET_SET_ElementMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_ADD or
* #GNUNET_MESSAGE_TYPE_SET_REMOVE
* Sent to the service by the client
* in order to cancel a set operation.
*/
-struct GNUNET_SET_CancelMessage
-{
+struct GNUNET_SET_CancelMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_CANCEL
*/
* Set element transmitted by service to client in response to a set
* iteration request.
*/
-struct GNUNET_SET_IterResponseMessage
-{
+struct GNUNET_SET_IterResponseMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ELEMENT
*/
/**
* Client acknowledges receiving element in iteration.
*/
-struct GNUNET_SET_IterAckMessage
-{
+struct GNUNET_SET_IterAckMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_ITER_ACK
*/
/**
* Server responds to a lazy copy request.
*/
-struct GNUNET_SET_CopyLazyResponseMessage
-{
+struct GNUNET_SET_CopyLazyResponseMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_RESPONSE
*/
/**
* Client connects to a lazily copied set.
*/
-struct GNUNET_SET_CopyLazyConnectMessage
-{
+struct GNUNET_SET_CopyLazyConnectMessage {
/**
* Type: #GNUNET_MESSAGE_TYPE_SET_COPY_LAZY_CONNECT
*/