corosync  3.1.5
ipc_cfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2005 MontaVista Software, Inc.
3  * Copyright (c) 2009-2013 Red Hat, Inc.
4  *
5  * All rights reserved.
6  *
7  * Author: Steven Dake (sdake@redhat.com)
8  *
9  * This software licensed under BSD license, the text of which follows:
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions are met:
13  *
14  * - Redistributions of source code must retain the above copyright notice,
15  * this list of conditions and the following disclaimer.
16  * - Redistributions in binary form must reproduce the above copyright notice,
17  * this list of conditions and the following disclaimer in the documentation
18  * and/or other materials provided with the distribution.
19  * - Neither the name of the MontaVista Software, Inc. nor the names of its
20  * contributors may be used to endorse or promote products derived from this
21  * software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33  * THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 #ifndef IPC_CFG_H_DEFINED
36 #define IPC_CFG_H_DEFINED
37 
38 #include <netinet/in.h>
39 #include <corosync/corotypes.h>
40 #include <corosync/mar_gen.h>
41 
42 #define CFG_INTERFACE_NAME_MAX_LEN 128
43 #define CFG_INTERFACE_STATUS_MAX_LEN 512
44 /*
45  * Too keep future ABI compatibility, this value
46  * is intentionaly bigger then INTERFACE_MAX
47  */
48 #define CFG_MAX_INTERFACES 16
49 
66 };
67 
89 };
90 
95  struct qb_ipc_request_header header __attribute__((aligned(8)));
96 };
97 
102  struct qb_ipc_response_header header __attribute__((aligned(8)));
103  mar_uint32_t interface_count __attribute__((aligned(8)));
104  char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)));
105  char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)));
106 };
107 
112  struct qb_ipc_request_header header __attribute__((aligned(8)));
113  unsigned int nodeid __attribute__((aligned(8)));
114  mar_uint32_t version __attribute__((aligned(8)));
115 };
116 
118  struct qb_ipc_response_header header __attribute__((aligned(8)));
120 };
121 
126  struct qb_ipc_response_header header __attribute__((aligned(8)));
127  struct corosync_cfg_node_status_v1 node_status __attribute__((aligned(8)));
128 };
129 
134  struct qb_ipc_request_header header __attribute__((aligned(8)));
135 };
136 
141  struct qb_ipc_response_header header __attribute__((aligned(8)));
142 };
143 
148  struct qb_ipc_request_header header __attribute__((aligned(8)));
149  unsigned int nodeid __attribute__((aligned(8)));
150  cs_name_t reason __attribute__((aligned(8)));
151 };
152 
157  struct qb_ipc_response_header header __attribute__((aligned(8)));
158 };
159 
164  struct qb_ipc_request_header header __attribute__((aligned(8)));
165  unsigned int flags;
166 };
167 
172  struct qb_ipc_response_header header __attribute__((aligned(8)));
173 };
174 
179  struct qb_ipc_request_header header __attribute__((aligned(8)));
180  unsigned int response;
181 };
182 
187  struct qb_ipc_response_header header __attribute__((aligned(8)));
188 };
189 
194  struct qb_ipc_response_header header __attribute__((aligned(8)));
195  unsigned int flags;
196 };
197 
202  struct qb_ipc_request_header header __attribute__((aligned(8)));
203  unsigned int nodeid;
204 };
205 
210  struct qb_ipc_response_header header __attribute__((aligned(8)));
211  unsigned int family;
212  unsigned int num_addrs;
213  /* array of TOTEMIP_ADDRLEN items */
214  char addrs[];
215 };
216 
221  struct qb_ipc_request_header header __attribute__((aligned(8)));
222 };
223 
228  struct qb_ipc_response_header header __attribute__((aligned(8)));
229  mar_uint32_t local_nodeid __attribute__((aligned(8)));
230 };
231 
236  struct qb_ipc_request_header header __attribute__((aligned(8)));
237 };
238 
243  struct qb_ipc_response_header header __attribute__((aligned(8)));
244 };
245 
250  struct qb_ipc_request_header header __attribute__((aligned(8)));
251 };
252 
257  struct qb_ipc_response_header header __attribute__((aligned(8)));
258 };
259 
261  struct qb_ipc_request_header header;
262  uint8_t track_flags;
263 };
264 
266  struct qb_ipc_response_header header;
267 };
268 
270  struct qb_ipc_request_header header;
271 };
272 
274  struct qb_ipc_response_header header;
275 };
276 
277 
281 typedef enum {
287 
291 typedef enum {
296 
300 typedef enum {
305 
306 
307 #endif /* IPC_CFG_H_DEFINED */
res_lib_cfg_types
The res_lib_cfg_types enum.
Definition: ipc_cfg.h:71
char version
Definition: totem.h:54
The res_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:256
#define CFG_INTERFACE_STATUS_MAX_LEN
Definition: ipc_cfg.h:43
The res_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:186
corosync_shutdown_flags_t
corosync_shutdown_flags_t enum
Definition: ipc_cfg.h:300
The res_lib_cfg_testshutdown struct.
Definition: ipc_cfg.h:193
The req_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:133
The res_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:125
req_lib_cfg_types
The req_lib_cfg_types enum.
Definition: ipc_cfg.h:53
The res_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:209
corosync_cfg_node_status_version_t
Definition: cfg.h:165
The req_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:201
The req_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:235
The res_lib_cfg_local_get struct.
Definition: ipc_cfg.h:227
The res_lib_cfg_killnode struct.
Definition: ipc_cfg.h:156
unsigned int num_addrs
Definition: ipc_cfg.h:212
unsigned int flags
Definition: ipc_cfg.h:195
The req_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:163
The res_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:140
#define CFG_INTERFACE_NAME_MAX_LEN
Definition: ipc_cfg.h:42
corosync_administrative_state_t
corosync_administrative_state_t enum
Definition: ipc_cfg.h:291
The req_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:178
The res_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:171
struct totem_message_header header
Definition: totemsrp.c:260
corosync_administrative_target_t
corosync_administrative_target_t enum
Definition: ipc_cfg.h:281
#define CFG_MAX_INTERFACES
Definition: ipc_cfg.h:48
The req_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:94
uint32_t mar_uint32_t
Definition: mar_gen.h:53
unsigned int flags
Definition: ipc_cfg.h:165
The res_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:101
The req_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:111
struct qb_ipc_request_header header __attribute__((aligned(8)))
The res_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:242
The req_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:249
unsigned int nodeid
Definition: coroapi.h:75
The req_lib_cfg_killnode struct.
Definition: ipc_cfg.h:147
The cs_name_t struct.
Definition: corotypes.h:66
The req_lib_cfg_local_get struct.
Definition: ipc_cfg.h:220