corosync  2.3.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 
60 };
61 
79 };
80 
82  struct qb_ipc_request_header header __attribute__((aligned(8)));
83 };
84 
86  struct qb_ipc_response_header header __attribute__((aligned(8)));
87  mar_uint32_t interface_count __attribute__((aligned(8)));
88  char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)));
89  char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)));
90 };
91 
93  struct qb_ipc_request_header header __attribute__((aligned(8)));
94 };
95 
97  struct qb_ipc_response_header header __attribute__((aligned(8)));
98 };
99 
101  struct qb_ipc_request_header header __attribute__((aligned(8)));
102  unsigned int nodeid __attribute__((aligned(8)));
103  cs_name_t reason __attribute__((aligned(8)));
104 };
105 
107  struct qb_ipc_response_header header __attribute__((aligned(8)));
108 };
109 
111  struct qb_ipc_request_header header __attribute__((aligned(8)));
112  unsigned int flags;
113 };
114 
116  struct qb_ipc_response_header header __attribute__((aligned(8)));
117 };
118 
120  struct qb_ipc_request_header header __attribute__((aligned(8)));
121  unsigned int response;
122 };
123 
125  struct qb_ipc_response_header header __attribute__((aligned(8)));
126 };
127 
129  struct qb_ipc_response_header header __attribute__((aligned(8)));
130  unsigned int flags;
131 };
132 
134  struct qb_ipc_request_header header __attribute__((aligned(8)));
135  unsigned int nodeid;
136 };
137 
139  struct qb_ipc_response_header header __attribute__((aligned(8)));
140  unsigned int family;
141  unsigned int num_addrs;
142  /* array of TOTEMIP_ADDRLEN items */
143  char addrs[];
144 };
145 
147  struct qb_ipc_request_header header __attribute__((aligned(8)));
148 };
149 
151  struct qb_ipc_response_header header __attribute__((aligned(8)));
152  mar_uint32_t local_nodeid __attribute__((aligned(8)));
153 };
154 
156  struct qb_ipc_request_header header __attribute__((aligned(8)));
157 };
158 
160  struct qb_ipc_response_header header __attribute__((aligned(8)));
161 };
162 
163 typedef enum {
169 
170 typedef enum {
175 
176 typedef enum {
181 
182 
183 #endif /* IPC_CFG_H_DEFINED */
res_lib_cfg_types
Definition: ipc_cfg.h:62
#define CFG_INTERFACE_STATUS_MAX_LEN
Definition: ipc_cfg.h:43
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
corosync_shutdown_flags_t
Definition: ipc_cfg.h:176
req_lib_cfg_types
Definition: ipc_cfg.h:50
unsigned int num_addrs
Definition: ipc_cfg.h:141
unsigned int flags
Definition: ipc_cfg.h:130
#define CFG_INTERFACE_NAME_MAX_LEN
Definition: ipc_cfg.h:42
corosync_administrative_state_t
Definition: ipc_cfg.h:170
corosync_administrative_target_t
Definition: ipc_cfg.h:163
#define CFG_MAX_INTERFACES
Definition: ipc_cfg.h:48
uint32_t mar_uint32_t
Definition: mar_gen.h:53
struct qb_ipc_response_header header __attribute__((aligned(8)))
unsigned int flags
Definition: ipc_cfg.h:112
unsigned int nodeid
Definition: coroapi.h:65