1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_SERVICES_INTERNAL__H
11 #define PCMK__CRM_SERVICES_INTERNAL__H
12
13 #include <crm/common/results_internal.h>
14 #include <crm/services.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 svc_action_t *services__create_resource_action(const char *name,
41 const char *standard,
42 const char *provider,
43 const char *agent,
44 const char *action,
45 guint interval_ms,
46 int timeout, GHashTable *params,
47 enum svc_action_flags flags);
48
49 const char *services__exit_reason(const svc_action_t *action);
50 char *services__grab_stdout(svc_action_t *action);
51 char *services__grab_stderr(svc_action_t *action);
52
53 void services__set_result(svc_action_t *action, int agent_status,
54 enum pcmk_exec_status exec_status,
55 const char *exit_reason);
56 void services__copy_result(const svc_action_t *action,
57 pcmk__action_result_t *result);
58
59 void services__format_result(svc_action_t *action, int agent_status,
60 enum pcmk_exec_status exec_status,
61 const char *format, ...) G_GNUC_PRINTF(4, 5);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif