corosync  2.3.5-dirty
ipc_cmap.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011 Red Hat, Inc.
3  *
4  * All rights reserved.
5  *
6  * Author: Jan Friesse (jfriesse@redhat.com)
7  *
8  * This software licensed under BSD license, the text of which follows:
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions are met:
12  *
13  * - Redistributions of source code must retain the above copyright notice,
14  * this list of conditions and the following disclaimer.
15  * - Redistributions in binary form must reproduce the above copyright notice,
16  * this list of conditions and the following disclaimer in the documentation
17  * and/or other materials provided with the distribution.
18  * - Neither the name of the Red Hat, Inc. nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
32  * THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 #ifndef IPC_CMAP_H_DEFINED
36 #define IPC_CMAP_H_DEFINED
37 
38 #include <netinet/in.h>
39 #include <corosync/corotypes.h>
40 #include <corosync/mar_gen.h>
41 
52 };
53 
65 };
66 
68  struct qb_ipc_request_header header __attribute__((aligned(8)));
69  mar_name_t key_name __attribute__((aligned(8)));
70  mar_size_t value_len __attribute__((aligned(8)));
71  mar_uint8_t type __attribute__((aligned(8)));
72  mar_uint8_t value[] __attribute__((aligned(8)));
73 };
74 
76  struct qb_ipc_response_header header __attribute__((aligned(8)));
77 };
78 
80  struct qb_ipc_request_header header __attribute__((aligned(8)));
81  mar_name_t key_name __attribute__((aligned(8)));
82 };
83 
85  struct qb_ipc_response_header header __attribute__((aligned(8)));
86 };
87 
89  struct qb_ipc_request_header header __attribute__((aligned(8)));
90  mar_name_t key_name __attribute__((aligned(8)));
91  mar_size_t value_len __attribute__((aligned(8)));
92 };
93 
95  struct qb_ipc_response_header header __attribute__((aligned(8)));
96  mar_size_t value_len __attribute__((aligned(8)));
97  mar_uint8_t type __attribute__((aligned(8)));
98  mar_uint8_t value[] __attribute__((aligned(8)));
99 };
100 
102  struct qb_ipc_request_header header __attribute__((aligned(8)));
103  mar_name_t key_name __attribute__((aligned(8)));
104  mar_int32_t step __attribute__((aligned(8)));
105 };
106 
108  struct qb_ipc_response_header header __attribute__((aligned(8)));
109 };
110 
112  struct qb_ipc_request_header header __attribute__((aligned(8)));
113  mar_name_t prefix __attribute__((aligned(8)));
114 };
115 
117  struct qb_ipc_response_header header __attribute__((aligned(8)));
118  mar_uint64_t iter_handle __attribute__((aligned(8)));
119 };
120 
122  struct qb_ipc_request_header header __attribute__((aligned(8)));
123  mar_uint64_t iter_handle __attribute__((aligned(8)));
124 };
125 
127  struct qb_ipc_response_header header __attribute__((aligned(8)));
128  mar_name_t key_name __attribute__((aligned(8)));
129  mar_size_t value_len __attribute__((aligned(8)));
130  mar_uint8_t type __attribute__((aligned(8)));
131 };
132 
134  struct qb_ipc_request_header header __attribute__((aligned(8)));
135  mar_uint64_t iter_handle __attribute__((aligned(8)));
136 };
137 
139  struct qb_ipc_response_header header __attribute__((aligned(8)));
140 };
141 
143  struct qb_ipc_request_header header __attribute__((aligned(8)));
144  mar_name_t key_name __attribute__((aligned(8)));
145  mar_int32_t track_type __attribute__((aligned(8)));
146  mar_uint64_t track_inst_handle __attribute__((aligned(8)));
147 };
148 
150  struct qb_ipc_response_header header __attribute__((aligned(8)));
151  mar_uint64_t track_handle __attribute__((aligned(8)));
152 };
153 
155  struct qb_ipc_request_header header __attribute__((aligned(8)));
156  mar_uint64_t track_handle __attribute__((aligned(8)));
157 };
158 
160  struct qb_ipc_response_header header __attribute__((aligned(8)));
161  mar_uint64_t track_inst_handle __attribute__((aligned(8)));
162 };
163 
165  struct qb_ipc_response_header header __attribute__((aligned(8)));
166  mar_uint64_t track_inst_handle __attribute__((aligned(8)));
167  mar_name_t key_name __attribute__((aligned(8)));
168  mar_int32_t event __attribute__((aligned(8)));
169  mar_uint8_t new_value_type __attribute__((aligned(8)));
170  mar_uint8_t old_value_type __attribute__((aligned(8)));
171  mar_size_t new_value_len __attribute__((aligned(8)));
172  mar_size_t old_value_len __attribute__((aligned(8)));
173  /*
174  * After old_vale_len, there are two items with length of new_value_len
175  * and old_value_len, only first (as a pointer) is defined
176  *
177  * mar_uint8_t *new_value;
178  * mar_uint8_t *old_value;
179  */
181 };
182 
183 #endif /* IPC_CMAP_H_DEFINED */
struct qb_ipc_response_header header __attribute__((aligned(8)))
uint32_t value
struct qb_ipc_response_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_cmap_types
Definition: ipc_cmap.h:42
struct qb_ipc_request_header header __attribute__((aligned(8)))
uint64_t mar_uint64_t
Definition: mar_gen.h:54
mar_uint64_t mar_size_t
Definition: mar_gen.h:194
uint8_t mar_uint8_t
Definition: mar_gen.h:51
struct qb_ipc_response_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_cmap_types
Definition: ipc_cmap.h:54
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
char type
Definition: totemrrp.c:518
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
int32_t mar_int32_t
Definition: mar_gen.h:48