corosync  3.1.0
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 
64 };
65 
87 };
88 
93  struct qb_ipc_request_header header __attribute__((aligned(8)));
94 };
95 
100  struct qb_ipc_response_header header __attribute__((aligned(8)));
101  mar_uint32_t interface_count __attribute__((aligned(8)));
102  char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)));
103  char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)));
104 };
105 
110  struct qb_ipc_request_header header __attribute__((aligned(8)));
111  unsigned int nodeid __attribute__((aligned(8)));
112  mar_uint32_t version __attribute__((aligned(8)));
113 };
114 
116  struct qb_ipc_response_header header __attribute__((aligned(8)));
118 };
119 
124  struct qb_ipc_response_header header __attribute__((aligned(8)));
125  struct corosync_cfg_node_status_v1 node_status __attribute__((aligned(8)));
126 };
127 
132  struct qb_ipc_request_header header __attribute__((aligned(8)));
133 };
134 
139  struct qb_ipc_response_header header __attribute__((aligned(8)));
140 };
141 
146  struct qb_ipc_request_header header __attribute__((aligned(8)));
147  unsigned int nodeid __attribute__((aligned(8)));
148  cs_name_t reason __attribute__((aligned(8)));
149 };
150 
155  struct qb_ipc_response_header header __attribute__((aligned(8)));
156 };
157 
162  struct qb_ipc_request_header header __attribute__((aligned(8)));
163  unsigned int flags;
164 };
165 
170  struct qb_ipc_response_header header __attribute__((aligned(8)));
171 };
172 
177  struct qb_ipc_request_header header __attribute__((aligned(8)));
178  unsigned int response;
179 };
180 
185  struct qb_ipc_response_header header __attribute__((aligned(8)));
186 };
187 
192  struct qb_ipc_response_header header __attribute__((aligned(8)));
193  unsigned int flags;
194 };
195 
200  struct qb_ipc_request_header header __attribute__((aligned(8)));
201  unsigned int nodeid;
202 };
203 
208  struct qb_ipc_response_header header __attribute__((aligned(8)));
209  unsigned int family;
210  unsigned int num_addrs;
211  /* array of TOTEMIP_ADDRLEN items */
212  char addrs[];
213 };
214 
219  struct qb_ipc_request_header header __attribute__((aligned(8)));
220 };
221 
226  struct qb_ipc_response_header header __attribute__((aligned(8)));
227  mar_uint32_t local_nodeid __attribute__((aligned(8)));
228 };
229 
234  struct qb_ipc_request_header header __attribute__((aligned(8)));
235 };
236 
241  struct qb_ipc_response_header header __attribute__((aligned(8)));
242 };
243 
248  struct qb_ipc_request_header header __attribute__((aligned(8)));
249 };
250 
255  struct qb_ipc_response_header header __attribute__((aligned(8)));
256 };
257 
261 typedef enum {
267 
271 typedef enum {
276 
280 typedef enum {
285 
286 
287 #endif /* IPC_CFG_H_DEFINED */
res_lib_cfg_types
The res_lib_cfg_types enum.
Definition: ipc_cfg.h:69
char version
Definition: totem.h:54
The res_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:254
#define CFG_INTERFACE_STATUS_MAX_LEN
Definition: ipc_cfg.h:43
The res_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:184
corosync_shutdown_flags_t
corosync_shutdown_flags_t enum
Definition: ipc_cfg.h:280
The res_lib_cfg_testshutdown struct.
Definition: ipc_cfg.h:191
The req_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:131
The res_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:123
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:207
corosync_cfg_node_status_version_t
Definition: cfg.h:165
The req_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:199
The req_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:233
The res_lib_cfg_local_get struct.
Definition: ipc_cfg.h:225
The res_lib_cfg_killnode struct.
Definition: ipc_cfg.h:154
unsigned int num_addrs
Definition: ipc_cfg.h:210
unsigned int flags
Definition: ipc_cfg.h:193
The req_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:161
The res_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:138
#define CFG_INTERFACE_NAME_MAX_LEN
Definition: ipc_cfg.h:42
corosync_administrative_state_t
corosync_administrative_state_t enum
Definition: ipc_cfg.h:271
The req_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:176
The res_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:169
corosync_administrative_target_t
corosync_administrative_target_t enum
Definition: ipc_cfg.h:261
#define CFG_MAX_INTERFACES
Definition: ipc_cfg.h:48
The req_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:92
uint32_t mar_uint32_t
Definition: mar_gen.h:53
unsigned int flags
Definition: ipc_cfg.h:163
The res_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:99
The req_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:109
struct qb_ipc_request_header header __attribute__((aligned(8)))
The res_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:240
The req_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:247
unsigned int nodeid
Definition: coroapi.h:75
The req_lib_cfg_killnode struct.
Definition: ipc_cfg.h:145
The cs_name_t struct.
Definition: corotypes.h:65
The req_lib_cfg_local_get struct.
Definition: ipc_cfg.h:218