2
* Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser 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 library 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
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
# include <crm/common/cluster.h>
24
# if SUPPORT_HEARTBEAT
25
extern ll_cluster_t *heartbeat_cluster;
26
extern gboolean send_ha_message(ll_cluster_t * hb_conn, xmlNode * msg,
27
const char *node, gboolean force_ordered);
28
extern gboolean ha_msg_dispatch(ll_cluster_t * cluster_conn, gpointer user_data);
30
extern gboolean register_heartbeat_conn(ll_cluster_t * hb_cluster, char **uuid, char **uname,
31
void (*hb_message) (HA_Message * msg, void *private_data),
32
void (*hb_destroy) (gpointer user_data));
38
extern gboolean send_ais_message(xmlNode * msg, gboolean local,
39
const char *node, enum crm_ais_msg_types dest);
41
extern enum cluster_type_e find_corosync_variant(void);
43
extern void terminate_ais_connection(void);
44
extern gboolean init_ais_connection(gboolean(*dispatch) (AIS_Message *, char *, int),
45
void (*destroy) (gpointer), char **our_uuid, char **our_uname,
47
extern gboolean init_ais_connection_once(gboolean(*dispatch) (AIS_Message *, char *, int),
48
void (*destroy) (gpointer), char **our_uuid,
49
char **our_uname, int *nodeid);
53
enum crm_quorum_source {
59
extern enum crm_quorum_source get_quorum_source(void);