pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
services_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010-2022 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__SERVICES_INTERNAL__H
11 # define PCMK__SERVICES_INTERNAL__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
36 svc_action_t *services__create_resource_action(const char *name, const char *standard,
37  const char *provider, const char *agent,
38  const char *action, guint interval_ms,
39  int timeout /* ms */, GHashTable *params,
40  enum svc_action_flags flags);
41 
45 
46 void services__set_result(svc_action_t *action, int agent_status,
47  enum pcmk_exec_status exec_status,
48  const char *exit_reason);
49 
50 void services__format_result(svc_action_t *action, int agent_status,
51  enum pcmk_exec_status exec_status,
52  const char *format, ...) G_GNUC_PRINTF(4, 5);
53 
54 # ifdef __cplusplus
55 }
56 # endif
57 
58 #endif /* PCMK__SERVICES_INTERNAL__H */
const char * name
Definition: cib.c:24
const char * services__exit_reason(svc_action_t *action)
Definition: services.c:1376
svc_action_flags
Definition: services.h:101
const char * action
Definition: pcmk_fence.c:29
void services__format_result(svc_action_t *action, int agent_status, enum pcmk_exec_status exec_status, const char *format,...) G_GNUC_PRINTF(4
char * services__grab_stderr(svc_action_t *action)
Definition: services.c:1411
svc_action_t * services__create_resource_action(const char *name, const char *standard, const char *provider, const char *agent, const char *action, guint interval_ms, int timeout, GHashTable *params, enum svc_action_flags flags)
Create a new resource action.
Definition: services.c:254
Object for executing external actions.
Definition: services.h:121
char * services__grab_stdout(svc_action_t *action)
Definition: services.c:1392
void services__set_result(svc_action_t *action, int agent_status, enum pcmk_exec_status exec_status, const char *exit_reason)
Definition: services.c:1271
pcmk_exec_status
Execution status.
Definition: results.h:305
unsigned int timeout
Definition: pcmk_fence.c:31
uint64_t flags
Definition: remote.c:149