GNUnet  0.20.0
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 {
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 
131 
136 };
137 
145 {
151 
156  uint16_t count;
157 
158  /* struct GNUNET_ARM_ServiceInfoMessage[count]; */
159  /* pool of 0-terminated strings */
160 };
161 
163 
164 #endif
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
Reply from ARM to client for the GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count '\0' terminat...
Definition: arm.h:145
uint16_t count
Number of 'struct GNUNET_ARM_ServiceInfoMessage' that are at the end of this message.
Definition: arm.h:156
struct GNUNET_ARM_Message arm_msg
Reply to client, of type is GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT, with an ID.
Definition: arm.h:150
uint64_t request_id
ID of a request that is being replied to.
Definition: arm.h:77
struct GNUNET_MessageHeader header
Reply to client, type is GNUNET_MESSAGE_TYPE_ARM_RESULT or GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT.
Definition: arm.h:65
uint32_t reserved
For alignment.
Definition: arm.h:70
Reply from ARM to client.
Definition: arm.h:87
uint32_t result
Result from the enum GNUNET_ARM_Result
Definition: arm.h:96
struct GNUNET_ARM_Message arm_msg
Reply to client, of type is GNUNET_MESSAGE_TYPE_ARM_RESULT, with an ID.
Definition: arm.h:91
struct GNUNET_TIME_AbsoluteNBO last_started_at
Time when the service was first started, if applicable.
Definition: arm.h:135
uint16_t binary_index
String pool index for the service's binary.
Definition: arm.h:109
struct GNUNET_TIME_AbsoluteNBO restart_at
Time when the service will be restarted, if applicable to the current status.
Definition: arm.h:130
uint32_t status
Status from the 'enum GNUNET_ARM_ServiceStatus'.
Definition: arm.h:124
int16_t last_exit_status
Last process exit status.
Definition: arm.h:114
uint16_t name_index
String pool index for the service's name.
Definition: arm.h:104
uint16_t padding
Padding.
Definition: arm.h:119
Status update from ARM to client.
Definition: arm.h:42
struct GNUNET_MessageHeader header
Reply to client, of type is GNUNET_MESSAGE_TYPE_ARM_STATUS.
Definition: arm.h:46
uint32_t status
Status from the 'enum GNUNET_ARM_ServiceStatus'.
Definition: arm.h:51
Header for all communications.
Time for absolute time used by GNUnet, in microseconds and in network byte order.