pacemaker  1.1.12-561c4cf
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rules.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
3  *
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 of the License, or (at your option) any later version.
8  *
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.
13  *
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 #ifndef PENGINE_RULES__H
19 # define PENGINE_RULES__H
20 
21 # include <crm/crm.h>
22 # include <crm/common/iso8601.h>
23 # include <crm/pengine/common.h>
24 
32 };
33 
34 enum expression_type find_expression_type(xmlNode * expr);
35 
36 gboolean test_ruleset(xmlNode * ruleset, GHashTable * node_hash, crm_time_t * now);
37 
38 gboolean test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now);
39 
40 gboolean test_expression(xmlNode * expr, GHashTable * node_hash,
41  enum rsc_role_e role, crm_time_t * now);
42 
43 void unpack_instance_attributes(xmlNode * top, xmlNode * xml_obj, const char *set_name,
44  GHashTable * node_hash, GHashTable * hash,
45  const char *always_first, gboolean overwrite, crm_time_t * now);
46 
47 #endif
A dumping ground.
struct crm_time_s crm_time_t
Definition: iso8601.h:37
enum expression_type find_expression_type(xmlNode *expr)
Definition: rules.h:26
ISO_8601 Date handling.
gboolean test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now)
rsc_role_e
Definition: common.h:70
Definition: rules.h:29
void unpack_instance_attributes(xmlNode *top, xmlNode *xml_obj, const char *set_name, GHashTable *node_hash, GHashTable *hash, const char *always_first, gboolean overwrite, crm_time_t *now)
gboolean test_rule(xmlNode *rule, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now)
expression_type
Definition: rules.h:25
gboolean test_expression(xmlNode *expr, GHashTable *node_hash, enum rsc_role_e role, crm_time_t *now)