File: cluster.h

package info (click to toggle)
evms 2.5.2-1.sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 14,248 kB
  • ctags: 15,488
  • sloc: ansic: 201,340; perl: 12,421; sh: 4,262; makefile: 1,516; yacc: 316; sed: 16
file content (51 lines) | stat: -rw-r--r-- 1,572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 *
 *   (C) Copyright IBM Corp. 2002, 2003
 *
 *   This program is free software;  you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 *   the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program;  if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * Module: cluster.h
 *
 */

/* Global data exported by cluster.c */

extern uint           num_config_nodes;
extern ece_nodeid_t * config_nodes;
extern node_list_t  * config_node_names;
extern ece_event_t  * membership;

extern ece_clusterid_t clusterid;
extern ece_nodeid_t  * my_nodeid;


/* External APIs provided by cluster.c */

int evms_get_node_list(node_search_flags_t flags,
		       node_list_t     * * node_list);

int evms_set_current_node(char * new_node_name);

/* Internal functions to share with other Engine source modules */

extern const char * nodeid_to_string(const ece_nodeid_t * node);

extern int engine_get_node_list(node_search_flags_t   flags,
				const node_list_t * * node_list);

extern int connect_to_ece(void);

extern int disconnect_from_ece(void);