GNUnet  0.10.x
arm.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2009 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
25 #ifndef ARM_H
26 #define ARM_H
27 
28 #include "gnunet_common.h"
29 
34 #define DEBUG_ARM GNUNET_EXTRA_LOGGING
35 
37 
46 
50  uint32_t status;
51 
52  /* followed by a 0-terminated service name */
53 };
54 
64 
68  uint32_t reserved;
69 
75  uint64_t request_id;
76 
77  /* For requests - followed by a 0-terminated service name */
78 };
79 
80 
88  struct GNUNET_ARM_Message arm_msg;
89 
93  uint32_t result;
94 };
95 
107  struct GNUNET_ARM_Message arm_msg;
108 
113  uint16_t count;
114 };
115 
117 
118 #endif
uint64_t request_id
ID of a request that is being replied to.
Definition: arm.h:75
Status update from ARM to client.
Definition: arm.h:41
uint32_t reserved
For alignment.
Definition: arm.h:68
uint16_t count
Number of &#39;\0&#39; terminated strings that follow this message.
Definition: arm.h:113
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
struct GNUNET_MessageHeader header
Reply to client, of type is GNUNET_MESSAGE_TYPE_ARM_STATUS.
Definition: arm.h:45
uint32_t result
Result from the enum GNUNET_ARM_Result
Definition: arm.h:93
Reply from ARM to client for the GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count &#39;\0&#39; terminat...
Definition: arm.h:102
uint32_t status
Status from the &#39;enum GNUNET_ARM_ServiceStatus&#39;.
Definition: arm.h:50
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
Reply from ARM to client.
Definition: arm.h:84
Header for all communications.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...