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 
42 {
43 
48 
52  uint32_t status;
53 
54  /* followed by a 0-terminated service name */
55 };
56 
58 {
67 
71  uint32_t reserved;
72 
78  uint64_t request_id;
79 
80  /* For requests - followed by a 0-terminated service name */
81 };
82 
83 
88 {
89 
93  struct GNUNET_ARM_Message arm_msg;
94 
98  uint32_t result;
99 };
100 
108 {
113  struct GNUNET_ARM_Message arm_msg;
114 
119  uint16_t count;
120 };
121 
123 
124 #endif
uint64_t request_id
ID of a request that is being replied to.
Definition: arm.h:78
Status update from ARM to client.
Definition: arm.h:41
uint32_t reserved
For alignment.
Definition: arm.h:71
uint16_t count
Number of &#39;\0&#39; terminated strings that follow this message.
Definition: arm.h:119
#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:47
uint32_t result
Result from the enum GNUNET_ARM_Result
Definition: arm.h:98
Reply from ARM to client for the GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count &#39;\0&#39; terminat...
Definition: arm.h:107
uint32_t status
Status from the &#39;enum GNUNET_ARM_ServiceStatus&#39;.
Definition: arm.h:52
#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:87
Header for all communications.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...