Patch to remove segfault on the exiting of a service.
[openais.git] / include / ipc_evs.h
blob91d18b700f6b17794fc824e52db03cae23afa659
1 /*
2 * Copyright (c) 2002-2004 MontaVista Software, Inc.
4 * All rights reserved.
6 * Author: Steven Dake (sdake@mvista.com)
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:
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 MontaVista Software, 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.
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.
34 #ifndef IPC_EVS_H_DEFINED
35 #define IPC_EVS_H_DEFINED
37 //#include <netinet/in6.h>
38 #include "saAis.h"
39 #include "evs.h"
40 #include "ipc_gen.h"
42 enum req_lib_evs_types {
43 MESSAGE_REQ_EVS_JOIN = 0,
44 MESSAGE_REQ_EVS_LEAVE = 1,
45 MESSAGE_REQ_EVS_MCAST_JOINED = 2,
46 MESSAGE_REQ_EVS_MCAST_GROUPS = 3,
47 MESSAGE_REQ_EVS_MEMBERSHIP_GET = 4
50 enum res_lib_evs_types {
51 MESSAGE_RES_EVS_DELIVER_CALLBACK = 0,
52 MESSAGE_RES_EVS_CONFCHG_CALLBACK = 1,
53 MESSAGE_RES_EVS_JOIN = 2,
54 MESSAGE_RES_EVS_LEAVE = 3,
55 MESSAGE_RES_EVS_MCAST_JOINED = 4,
56 MESSAGE_RES_EVS_MCAST_GROUPS = 5,
57 MESSAGE_RES_EVS_MEMBERSHIP_GET = 6
60 struct res_evs_deliver_callback {
61 mar_res_header_t header;
62 unsigned int local_nodeid;
63 int msglen;
64 char msg[0];
67 struct res_evs_confchg_callback {
68 mar_res_header_t header;
69 int member_list_entries;
70 int left_list_entries;
71 int joined_list_entries;
72 unsigned int member_list[PROCESSOR_COUNT_MAX];
73 unsigned int left_list[PROCESSOR_COUNT_MAX];
74 unsigned int joined_list[PROCESSOR_COUNT_MAX];
77 struct req_lib_evs_join {
78 mar_res_header_t header;
79 int group_entries;
80 struct evs_group groups[0];
83 struct res_lib_evs_join {
84 mar_res_header_t header;
87 struct req_lib_evs_leave {
88 mar_res_header_t header;
89 int group_entries;
90 struct evs_group groups[0];
93 struct res_lib_evs_leave {
94 mar_res_header_t header;
97 struct req_lib_evs_mcast_joined {
98 mar_res_header_t header;
99 evs_guarantee_t guarantee;
100 int msg_len;
101 char msg[0];
104 struct res_lib_evs_mcast_joined {
105 mar_res_header_t header;
108 struct req_lib_evs_mcast_groups {
109 mar_res_header_t header;
110 evs_guarantee_t guarantee;
111 int msg_len;
112 int group_entries;
113 struct evs_group groups[0];
116 struct res_lib_evs_mcast_groups {
117 mar_res_header_t header;
121 struct req_exec_evs_mcast {
122 mar_req_header_t header;
123 int group_entries;
124 int msg_len;
125 struct evs_group groups[0];
126 /* data goes here */
129 struct req_lib_evs_membership_get {
130 mar_req_header_t header;
133 struct res_lib_evs_membership_get {
134 mar_res_header_t header;
135 unsigned int local_nodeid;
136 unsigned int member_list[PROCESSOR_COUNT_MAX];
137 int member_list_entries;
139 #endif /* IPC_EVS_H_DEFINED */