GNUnet  0.11.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 {
47 
51  uint32_t status;
52 
53  /* followed by a 0-terminated service name */
54 };
55 
57 {
66 
70  uint32_t reserved;
71 
77  uint64_t request_id;
78 
79  /* For requests - followed by a 0-terminated service name */
80 };
81 
82 
87 {
91  struct GNUNET_ARM_Message arm_msg;
92 
96  uint32_t result;
97 };
98 
100 {
104  uint16_t name_index;
105 
109  uint16_t binary_index;
110 
115 
119  uint16_t padding;
120 
124  uint32_t status;
125 
130  struct GNUNET_TIME_AbsoluteNBO restart_at;
131 
135  struct GNUNET_TIME_AbsoluteNBO last_started_at;
136 };
137 
145 {
150  struct GNUNET_ARM_Message arm_msg;
151 
156  uint16_t count;
157 
158  /* struct GNUNET_ARM_ServiceInfoMessage[count]; */
159  /* pool of 0-terminated strings */
160 };
161 
163 
164 #endif
uint64_t request_id
ID of a request that is being replied to.
Definition: arm.h:77
Status update from ARM to client.
Definition: arm.h:41
uint32_t reserved
For alignment.
Definition: arm.h:70
Time for absolute time used by GNUnet, in microseconds and in network byte order. ...
uint16_t count
Number of &#39;struct GNUNET_ARM_ServiceInfoMessage&#39; that are at the end of this message.
Definition: arm.h:156
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
uint16_t padding
Padding.
Definition: arm.h:119
struct GNUNET_MessageHeader header
Reply to client, of type is GNUNET_MESSAGE_TYPE_ARM_STATUS.
Definition: arm.h:46
uint32_t result
Result from the enum GNUNET_ARM_Result
Definition: arm.h:96
uint16_t name_index
String pool index for the service&#39;s name.
Definition: arm.h:104
int16_t last_exit_status
Last process exit status.
Definition: arm.h:114
Reply from ARM to client for the GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count &#39;\0&#39; terminat...
Definition: arm.h:144
uint32_t status
Status from the &#39;enum GNUNET_ARM_ServiceStatus&#39;.
Definition: arm.h:51
#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:86
uint32_t status
Status from the &#39;enum GNUNET_ARM_ServiceStatus&#39;.
Definition: arm.h:124
Header for all communications.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
uint16_t binary_index
String pool index for the service&#39;s binary.
Definition: arm.h:109