corosync 3.1.9
ipc_cmap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011-2017 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
57
74
75enum {
78};
79
90
97
105
112
121
131
140
147
155
163
171
181
189
196
206
214
222
230
236 mar_uint64_t track_inst_handle __attribute__((aligned(8)));
243 /*
244 * After old_vale_len, there are two items with length of new_value_len
245 * and old_value_len, only first (as a pointer) is defined
246 *
247 * mar_uint8_t *new_value;
248 * mar_uint8_t *old_value;
249 */
251};
252
261
262
263#endif /* IPC_CMAP_H_DEFINED */
unsigned int nodeid
Definition coroapi.h:0
uint32_t value
req_cmap_types
The req_cmap_types enum.
Definition ipc_cmap.h:45
@ MESSAGE_REQ_CMAP_ITER_NEXT
Definition ipc_cmap.h:51
@ MESSAGE_REQ_CMAP_SET
Definition ipc_cmap.h:46
@ MESSAGE_REQ_CMAP_ITER_INIT
Definition ipc_cmap.h:50
@ MESSAGE_REQ_CMAP_TRACK_DELETE
Definition ipc_cmap.h:54
@ MESSAGE_REQ_CMAP_ADJUST_INT
Definition ipc_cmap.h:49
@ MESSAGE_REQ_CMAP_GET
Definition ipc_cmap.h:48
@ MESSAGE_REQ_CMAP_SET_CURRENT_MAP
Definition ipc_cmap.h:55
@ MESSAGE_REQ_CMAP_ITER_FINALIZE
Definition ipc_cmap.h:52
@ MESSAGE_REQ_CMAP_TRACK_ADD
Definition ipc_cmap.h:53
@ MESSAGE_REQ_CMAP_DELETE
Definition ipc_cmap.h:47
@ CMAP_SETMAP_STATS
Definition ipc_cmap.h:77
@ CMAP_SETMAP_DEFAULT
Definition ipc_cmap.h:76
res_cmap_types
The res_cmap_types enum.
Definition ipc_cmap.h:61
@ MESSAGE_RES_CMAP_ITER_FINALIZE
Definition ipc_cmap.h:68
@ MESSAGE_RES_CMAP_SET_CURRENT_MAP
Definition ipc_cmap.h:72
@ MESSAGE_RES_CMAP_SET
Definition ipc_cmap.h:62
@ MESSAGE_RES_CMAP_ITER_INIT
Definition ipc_cmap.h:66
@ MESSAGE_RES_CMAP_ITER_NEXT
Definition ipc_cmap.h:67
@ MESSAGE_RES_CMAP_GET
Definition ipc_cmap.h:64
@ MESSAGE_RES_CMAP_DELETE
Definition ipc_cmap.h:63
@ MESSAGE_RES_CMAP_NOTIFY_CALLBACK
Definition ipc_cmap.h:71
@ MESSAGE_RES_CMAP_TRACK_ADD
Definition ipc_cmap.h:69
@ MESSAGE_RES_CMAP_TRACK_DELETE
Definition ipc_cmap.h:70
@ MESSAGE_RES_CMAP_ADJUST_INT
Definition ipc_cmap.h:65
int32_t mar_int32_t
Definition mar_gen.h:48
mar_uint64_t mar_size_t
mar_size_t
Definition mar_gen.h:286
uint8_t mar_uint8_t
Definition mar_gen.h:51
uint64_t mar_uint64_t
Definition mar_gen.h:54
mar_name_t struct
Definition mar_gen.h:166
The req_lib_cmap_adjust_int struct.
Definition ipc_cmap.h:135
mar_name_t key_name __attribute__((aligned(8)))
mar_int32_t step __attribute__((aligned(8)))
The req_lib_cmap_delete struct.
Definition ipc_cmap.h:101
mar_name_t key_name __attribute__((aligned(8)))
The req_lib_cmap_get struct.
Definition ipc_cmap.h:116
mar_size_t value_len __attribute__((aligned(8)))
mar_name_t key_name __attribute__((aligned(8)))
The req_lib_cmap_iter_finalize struct.
Definition ipc_cmap.h:185
mar_uint64_t iter_handle __attribute__((aligned(8)))
The req_lib_cmap_iter_init struct.
Definition ipc_cmap.h:151
mar_name_t prefix __attribute__((aligned(8)))
The req_lib_cmap_iter_next struct.
Definition ipc_cmap.h:167
mar_uint64_t iter_handle __attribute__((aligned(8)))
The req_lib_cmap_set_current_map struct used by cmap_initialize_map()
Definition ipc_cmap.h:257
mar_int32_t map __attribute__((aligned(8)))
The req_lib_cmap_set struct.
Definition ipc_cmap.h:83
mar_size_t value_len __attribute__((aligned(8)))
mar_uint8_t type __attribute__((aligned(8)))
mar_uint8_t value[] __attribute__((aligned(8)))
mar_name_t key_name __attribute__((aligned(8)))
The req_lib_cmap_track_add struct.
Definition ipc_cmap.h:200
mar_int32_t track_type __attribute__((aligned(8)))
mar_name_t key_name __attribute__((aligned(8)))
mar_uint64_t track_inst_handle __attribute__((aligned(8)))
The req_lib_cmap_track_delete struct.
Definition ipc_cmap.h:218
mar_uint64_t track_handle __attribute__((aligned(8)))
The res_lib_cmap_adjust_int struct.
Definition ipc_cmap.h:144
The res_lib_cmap_delete struct.
Definition ipc_cmap.h:109
The res_lib_cmap_get struct.
Definition ipc_cmap.h:125
mar_uint8_t value[] __attribute__((aligned(8)))
mar_uint8_t type __attribute__((aligned(8)))
mar_size_t value_len __attribute__((aligned(8)))
The res_lib_cmap_iter_finalize struct.
Definition ipc_cmap.h:193
The res_lib_cmap_iter_init struct.
Definition ipc_cmap.h:159
mar_uint64_t iter_handle __attribute__((aligned(8)))
The res_lib_cmap_iter_next struct.
Definition ipc_cmap.h:175
mar_uint8_t type __attribute__((aligned(8)))
mar_size_t value_len __attribute__((aligned(8)))
mar_name_t key_name __attribute__((aligned(8)))
The res_lib_cmap_notify_callback struct.
Definition ipc_cmap.h:234
mar_uint8_t old_value_type __attribute__((aligned(8)))
mar_size_t old_value_len __attribute__((aligned(8)))
mar_size_t new_value_len __attribute__((aligned(8)))
mar_uint8_t new_value_type __attribute__((aligned(8)))
mar_name_t key_name __attribute__((aligned(8)))
mar_int32_t event __attribute__((aligned(8)))
mar_uint64_t track_inst_handle __attribute__((aligned(8)))
The res_lib_cmap_set struct.
Definition ipc_cmap.h:94
The res_lib_cmap_track_add struct.
Definition ipc_cmap.h:210
mar_uint64_t track_handle __attribute__((aligned(8)))
The res_lib_cmap_track_delete struct.
Definition ipc_cmap.h:226
mar_uint64_t track_inst_handle __attribute__((aligned(8)))
typedef __attribute__
char type
Definition totem.h:2
struct totem_message_header header
Definition totemsrp.c:0