~ubuntu-branches/ubuntu/utopic/pacemaker/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/cluster/stack.h

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2013-07-16 16:40:24 UTC
  • mfrom: (1.1.11) (2.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130716164024-lvwrf4xivk1wdr3c
Tags: 1.1.9+git20130321-1ubuntu1
* Resync from debian expiremental.
* debian/control:
  - Use lower version for Build-Depends on libcorosync-dev
    and libqb-dev.
  - Build-Depends on libcfg-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
3
 
 * 
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.
8
 
 * 
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.
13
 
 * 
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
17
 
 */
18
 
 
19
 
#ifndef CRM_STACK__H
20
 
#  define CRM_STACK__H
21
 
 
22
 
#  include <crm/common/cluster.h>
23
 
 
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);
29
 
 
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));
33
 
 
34
 
#  endif
35
 
 
36
 
#  if SUPPORT_COROSYNC
37
 
 
38
 
extern gboolean send_ais_message(xmlNode * msg, gboolean local,
39
 
                                 const char *node, enum crm_ais_msg_types dest);
40
 
 
41
 
extern enum cluster_type_e find_corosync_variant(void);
42
 
 
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,
46
 
                                    int *nodeid);
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);
50
 
 
51
 
#  endif
52
 
 
53
 
enum crm_quorum_source {
54
 
    crm_quorum_cman,
55
 
    crm_quorum_corosync,
56
 
    crm_quorum_pacemaker,
57
 
};
58
 
 
59
 
extern enum crm_quorum_source get_quorum_source(void);
60
 
 
61
 
#endif