2
* Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
9
* This software is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
#ifndef CIB_MESSAGES__H
19
#define CIB_MESSAGES__H
22
extern crm_data_t *createCibRequest(
23
gboolean isLocal, const char *operation, const char *section,
24
const char *verbose, crm_data_t *data);
26
extern enum cib_errors
27
cib_process_shutdown_req(
28
const char *op, int options, const char *section, crm_data_t *input,
29
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
31
extern enum cib_errors cib_process_default(
32
const char *op, int options, const char *section, crm_data_t *input,
33
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
35
extern enum cib_errors cib_process_quit(
36
const char *op, int options, const char *section, crm_data_t *input,
37
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
39
extern enum cib_errors cib_process_ping(
40
const char *op, int options, const char *section, crm_data_t *input,
41
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
43
extern enum cib_errors cib_process_query(
44
const char *op, int options, const char *section, crm_data_t *input,
45
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
47
extern enum cib_errors cib_process_erase(
48
const char *op, int options, const char *section, crm_data_t *input,
49
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
51
extern enum cib_errors cib_process_bump(
52
const char *op, int options, const char *section, crm_data_t *input,
53
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
55
extern enum cib_errors cib_process_replace(
56
const char *op, int options, const char *section, crm_data_t *input,
57
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
59
extern enum cib_errors cib_process_modify(
60
const char *op, int options, const char *section, crm_data_t *input,
61
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
63
extern enum cib_errors cib_process_readwrite(
64
const char *op, int options, const char *section, crm_data_t *input,
65
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
67
extern enum cib_errors cib_process_diff(
68
const char *op, int options, const char *section, crm_data_t *input,
69
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
71
extern enum cib_errors cib_process_sync(
72
const char *op, int options, const char *section, crm_data_t *input,
73
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
75
extern enum cib_errors cib_process_sync_one(
76
const char *op, int options, const char *section, crm_data_t *input,
77
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
79
extern enum cib_errors cib_process_delete(
80
const char *op, int options, const char *section, crm_data_t *input,
81
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);
83
extern enum cib_errors cib_process_change(
84
const char *op, int options, const char *section, crm_data_t *input,
85
crm_data_t *existing_cib, crm_data_t **result_cib, crm_data_t **answer);