This source file includes following definitions.
- role2text
- text2role
- task2text
- text2task
- pe_pref
- fail2text
1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11 #include <crm/crm.h>
12 #include <crm/common/xml.h>
13 #include <crm/common/util.h>
14
15 #include <glib.h>
16
17 #include <crm/common/scheduler_internal.h>
18 #include <crm/pengine/internal.h>
19
20
21
22
23 #include <crm/pengine/common_compat.h>
24
25 const char *
26 role2text(enum rsc_role_e role)
27 {
28 return pcmk_role_text(role);
29 }
30
31 enum rsc_role_e
32 text2role(const char *role)
33 {
34 return pcmk_parse_role(role);
35 }
36
37 const char *
38 task2text(enum action_tasks task)
39 {
40 return pcmk_action_text(task);
41 }
42
43 enum action_tasks
44 text2task(const char *task)
45 {
46 return pcmk_parse_action(task);
47 }
48
49 const char *
50 pe_pref(GHashTable * options, const char *name)
51 {
52 return pcmk__cluster_option(options, name);
53 }
54
55 const char *
56 fail2text(enum action_fail_response fail)
57 {
58 return pcmk_on_fail_text(fail);
59 }
60
61
62