pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
services_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2010-2025 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__CRM_SERVICES_INTERNAL__H
11#define PCMK__CRM_SERVICES_INTERNAL__H
12
13#include <crm/common/results_internal.h> // pcmk__action_result_t
14#include <crm/services.h> // svc_action_t
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
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,
48
49const char *services__exit_reason(const svc_action_t *action);
52
53void services__set_result(svc_action_t *action, int agent_status,
54 enum pcmk_exec_status exec_status,
55 const char *exit_reason);
58
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 // PCMK__CRM_SERVICES_INTERNAL__H
const char * name
Definition cib.c:26
uint64_t flags
Definition remote.c:3
unsigned int timeout
Definition pcmk_fence.c:34
const char * action
Definition pcmk_fence.c:32
pcmk__action_result_t result
Definition pcmk_fence.c:37
pcmk_exec_status
Execution status.
Definition results.h:308
Services API.
svc_action_flags
Definition services.h:78
char * services__grab_stdout(svc_action_t *action)
Definition services.c:1353
void services__copy_result(const svc_action_t *action, pcmk__action_result_t *result)
Definition services.c:1243
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:255
void services__format_result(svc_action_t *action, int agent_status, enum pcmk_exec_status exec_status, const char *format,...) G_GNUC_PRINTF(4
const char * services__exit_reason(const svc_action_t *action)
Definition services.c:1337
char * services__grab_stderr(svc_action_t *action)
Definition services.c:1372
void services__set_result(svc_action_t *action, int agent_status, enum pcmk_exec_status exec_status, const char *exit_reason)
Definition services.c:1218
Object for executing external actions.
Definition services.h:99