2 Unix SMB/CIFS implementation.
3 Copyright (C) 2014 Stefan Metzmacher
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "cluster_support.h"
25 #define CLUSTER_SUPPORT 1
28 #ifdef HAVE_CTDB_PROTOCOL_H
29 #include <ctdb_protocol.h>
31 #ifdef HAVE_CTDB_PRIVATE_H
32 #include <ctdb_private.h>
36 bool cluster_support_available(void)
38 #ifdef CLUSTER_SUPPORT
45 const char *cluster_support_features(void)
47 #define _LINE_DEF(x) " " #x "\n"
48 #define _LINE_STR(x) " " #x ": " x "\n"
49 #define _LINE_INT(x) " " #x ": " __STRINGSTRING(x) "\n"
50 static const char *v
= "Cluster support features:\n"
51 #ifdef CLUSTER_SUPPORT
52 _LINE_DEF(CLUSTER_SUPPORT
)
57 _LINE_DEF(HAVE_CTDB_H
)
59 #ifdef HAVE_CTDB_PRIVATE_H
60 _LINE_DEF(HAVE_CTDB_PRIVATE_H
)
62 #ifdef HAVE_CTDB_PROTOCOL_H
63 _LINE_DEF(HAVE_CTDB_PROTOCOL_H
)
65 #ifdef HAVE_CTDB_CONTROL_TRANS3_COMMIT_DECL
66 _LINE_DEF(HAVE_CTDB_CONTROL_TRANS3_COMMIT_DECL
)
68 #ifdef HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL
69 _LINE_DEF(HAVE_CTDB_CONTROL_SCHEDULE_FOR_DELETION_DECL
)
71 #ifdef HAVE_CTDB_WANT_READONLY_DECL
72 _LINE_DEF(HAVE_CTDB_WANT_READONLY_DECL
)
74 #ifdef HAVE_STRUCT_CTDB_CONTROL_TCP
75 _LINE_DEF(HAVE_STRUCT_CTDB_CONTROL_TCP
)
77 #ifdef HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR
78 _LINE_DEF(HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR
)
80 #ifdef HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
81 _LINE_DEF(HAVE_CTDB_CONTROL_CHECK_SRVIDS_DECL
)
87 _LINE_INT(CTDB_VERSION
)