~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to include/corosync/ipc_confdb.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-21 09:29:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090821092956-w9qxxxx3zeoh8dem
Tags: 1.0.0-4ubuntu2
* debian/control:
  - 'Ubuntu Developers' instead of 'Ubuntu Core Developers'
    as maintainer
  - Bump debhelper dependecy to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#define IPC_CONFDB_H_DEFINED
36
36
 
37
37
#include <netinet/in.h>
38
 
#include "saAis.h"
39
 
#include "ipc_gen.h"
 
38
#include <corosync/corotypes.h>
 
39
#include <corosync/mar_gen.h>
40
40
 
41
41
enum req_confdb_types {
42
42
        MESSAGE_REQ_CONFDB_OBJECT_CREATE = 0,
83
83
 
84
84
 
85
85
struct req_lib_confdb_object_create {
86
 
        mar_req_header_t header __attribute__((aligned(8)));
87
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
 
86
        coroipc_request_header_t header __attribute__((aligned(8)));
 
87
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
88
88
        mar_name_t object_name __attribute__((aligned(8)));
89
89
};
90
90
 
91
91
struct res_lib_confdb_object_create {
92
 
        mar_res_header_t header __attribute__((aligned(8)));
93
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
92
        coroipc_response_header_t header __attribute__((aligned(8)));
 
93
        mar_uint64_t object_handle __attribute__((aligned(8)));
94
94
};
95
95
 
96
96
struct req_lib_confdb_object_destroy {
97
 
        mar_req_header_t header __attribute__((aligned(8)));
98
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
97
        coroipc_request_header_t header __attribute__((aligned(8)));
 
98
        mar_uint64_t object_handle __attribute__((aligned(8)));
99
99
};
100
100
 
101
101
struct req_lib_confdb_object_parent_get {
102
 
        mar_req_header_t header __attribute__((aligned(8)));
103
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
102
        coroipc_request_header_t header __attribute__((aligned(8)));
 
103
        mar_uint64_t object_handle __attribute__((aligned(8)));
104
104
};
105
105
 
106
106
struct res_lib_confdb_object_parent_get {
107
 
        mar_res_header_t header __attribute__((aligned(8)));
108
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
 
107
        coroipc_response_header_t header __attribute__((aligned(8)));
 
108
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
109
109
};
110
110
 
111
111
 
112
112
struct req_lib_confdb_key_create {
113
 
        mar_req_header_t header __attribute__((aligned(8)));
114
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
113
        coroipc_request_header_t header __attribute__((aligned(8)));
 
114
        mar_uint64_t object_handle __attribute__((aligned(8)));
115
115
        mar_name_t key_name __attribute__((aligned(8)));
116
116
        mar_name_t value __attribute__((aligned(8)));
117
117
};
118
118
 
119
119
struct req_lib_confdb_key_delete {
120
 
        mar_req_header_t header __attribute__((aligned(8)));
121
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
120
        coroipc_request_header_t header __attribute__((aligned(8)));
 
121
        mar_uint64_t object_handle __attribute__((aligned(8)));
122
122
        mar_name_t key_name __attribute__((aligned(8)));
123
123
        mar_name_t value __attribute__((aligned(8)));
124
124
};
125
125
 
126
126
struct req_lib_confdb_key_replace {
127
 
        mar_req_header_t header __attribute__((aligned(8)));
128
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
127
        coroipc_request_header_t header __attribute__((aligned(8)));
 
128
        mar_uint64_t object_handle __attribute__((aligned(8)));
129
129
        mar_name_t key_name __attribute__((aligned(8)));
130
130
        mar_name_t old_value __attribute__((aligned(8)));
131
131
        mar_name_t new_value __attribute__((aligned(8)));
132
132
};
133
133
 
134
134
struct req_lib_confdb_object_find {
135
 
        mar_req_header_t header __attribute__((aligned(8)));
136
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
 
135
        coroipc_request_header_t header __attribute__((aligned(8)));
 
136
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
137
137
        mar_name_t object_name __attribute__((aligned(8)));
138
 
        mar_uint32_t find_handle __attribute__((aligned(8)));
 
138
        mar_uint64_t find_handle __attribute__((aligned(8)));
139
139
};
140
140
 
141
141
struct res_lib_confdb_object_find {
142
 
        mar_res_header_t header __attribute__((aligned(8)));
143
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
144
 
        mar_uint32_t find_handle __attribute__((aligned(8)));
 
142
        coroipc_response_header_t header __attribute__((aligned(8)));
 
143
        mar_uint64_t object_handle __attribute__((aligned(8)));
 
144
        mar_uint64_t find_handle __attribute__((aligned(8)));
145
145
};
146
146
 
147
147
struct req_lib_confdb_object_iter {
148
 
        mar_req_header_t header __attribute__((aligned(8)));
149
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
150
 
        mar_uint32_t find_handle __attribute__((aligned(8)));
 
148
        coroipc_request_header_t header __attribute__((aligned(8)));
 
149
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
 
150
        mar_uint64_t find_handle __attribute__((aligned(8)));
151
151
};
152
152
 
153
153
struct res_lib_confdb_object_iter {
154
 
        mar_res_header_t header __attribute__((aligned(8)));
 
154
        coroipc_response_header_t header __attribute__((aligned(8)));
155
155
        mar_name_t object_name __attribute__((aligned(8)));
156
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
157
 
        mar_uint32_t find_handle __attribute__((aligned(8)));
 
156
        mar_uint64_t object_handle __attribute__((aligned(8)));
 
157
        mar_uint64_t find_handle __attribute__((aligned(8)));
158
158
};
159
159
 
160
160
struct req_lib_confdb_key_iter {
161
 
        mar_req_header_t header __attribute__((aligned(8)));
162
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
163
 
        mar_uint32_t next_entry __attribute__((aligned(8)));
 
161
        coroipc_request_header_t header __attribute__((aligned(8)));
 
162
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
 
163
        mar_uint64_t next_entry __attribute__((aligned(8)));
164
164
};
165
165
 
166
166
struct res_lib_confdb_key_iter {
167
 
        mar_res_header_t header __attribute__((aligned(8)));
 
167
        coroipc_response_header_t header __attribute__((aligned(8)));
168
168
        mar_name_t key_name __attribute__((aligned(8)));
169
169
        mar_name_t value __attribute__((aligned(8)));
170
170
};
171
171
 
172
172
struct req_lib_confdb_key_get {
173
 
        mar_req_header_t header __attribute__((aligned(8)));
174
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
 
173
        coroipc_request_header_t header __attribute__((aligned(8)));
 
174
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
175
175
        mar_name_t key_name __attribute__((aligned(8)));
176
176
};
177
177
 
178
178
struct req_lib_confdb_object_find_destroy {
179
 
        mar_req_header_t header __attribute__((aligned(8)));
180
 
        mar_uint32_t find_handle __attribute__((aligned(8)));
 
179
        coroipc_request_header_t header __attribute__((aligned(8)));
 
180
        mar_uint64_t find_handle __attribute__((aligned(8)));
181
181
};
182
182
 
183
183
struct res_lib_confdb_key_get {
184
 
        mar_res_header_t header __attribute__((aligned(8)));
 
184
        coroipc_response_header_t header __attribute__((aligned(8)));
185
185
        mar_name_t value __attribute__((aligned(8)));
186
186
};
187
187
 
188
188
struct res_lib_confdb_key_incdec {
189
 
        mar_res_header_t header __attribute__((aligned(8)));
 
189
        coroipc_response_header_t header __attribute__((aligned(8)));
190
190
        mar_uint32_t value __attribute__((aligned(8)));
191
191
};
192
192
 
193
193
struct res_lib_confdb_write {
194
 
        mar_res_header_t header __attribute__((aligned(8)));
 
194
        coroipc_response_header_t header __attribute__((aligned(8)));
195
195
        mar_name_t error __attribute__((aligned(8)));
196
196
};
197
197
 
198
198
struct req_lib_confdb_reload {
199
 
        mar_res_header_t header __attribute__((aligned(8)));
 
199
        coroipc_response_header_t header __attribute__((aligned(8)));
200
200
        mar_int32_t flush __attribute__((aligned(8)));
201
201
};
202
202
 
203
203
struct res_lib_confdb_reload {
204
 
        mar_res_header_t header __attribute__((aligned(8)));
 
204
        coroipc_response_header_t header __attribute__((aligned(8)));
205
205
        mar_name_t error __attribute__((aligned(8)));
206
206
};
207
207
 
208
208
struct res_lib_confdb_key_change_callback {
209
 
        mar_res_header_t header __attribute__((aligned(8)));
210
 
        mar_uint32_t change_type __attribute__((aligned(8)));
211
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
212
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
209
        coroipc_response_header_t header __attribute__((aligned(8)));
 
210
        mar_uint64_t change_type __attribute__((aligned(8)));
 
211
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
 
212
        mar_uint64_t object_handle __attribute__((aligned(8)));
213
213
        mar_name_t object_name __attribute__((aligned(8)));
214
214
        mar_name_t key_name __attribute__((aligned(8)));
215
215
        mar_name_t key_value __attribute__((aligned(8)));
216
216
};
217
217
 
218
218
struct res_lib_confdb_object_create_callback {
219
 
        mar_res_header_t header __attribute__((aligned(8)));
220
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
221
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
219
        coroipc_response_header_t header __attribute__((aligned(8)));
 
220
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
 
221
        mar_uint64_t object_handle __attribute__((aligned(8)));
222
222
        mar_name_t name __attribute__((aligned(8)));
223
223
};
224
224
 
225
225
struct res_lib_confdb_object_destroy_callback {
226
 
        mar_res_header_t header __attribute__((aligned(8)));
227
 
        mar_uint32_t parent_object_handle __attribute__((aligned(8)));
 
226
        coroipc_response_header_t header __attribute__((aligned(8)));
 
227
        mar_uint64_t parent_object_handle __attribute__((aligned(8)));
228
228
        mar_name_t name __attribute__((aligned(8)));
229
229
};
230
230
 
231
231
struct req_lib_confdb_object_track_start {
232
 
        mar_req_header_t header __attribute__((aligned(8)));
233
 
        mar_uint32_t object_handle __attribute__((aligned(8)));
 
232
        coroipc_request_header_t header __attribute__((aligned(8)));
 
233
        mar_uint64_t object_handle __attribute__((aligned(8)));
234
234
        mar_uint32_t flags __attribute__((aligned(8)));
235
235
};
236
236