pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
services_lsb.h
Go to the documentation of this file.
1/*
2 * Copyright 2010-2024 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_SERVICES_LSB__H
11#define PCMK__SERVICES_SERVICES_LSB__H
12
13#include <glib.h> // G_GNUC_INTERNAL, GList
14
15#include <crm/common/results.h> // enum ocf_exitcode
16#include <crm/services.h> // svc_action_t
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22G_GNUC_INTERNAL int services__get_lsb_metadata(const char *type, char **output);
23G_GNUC_INTERNAL GList *services__list_lsb_agents(void);
24G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent);
25G_GNUC_INTERNAL int services__lsb_prepare(svc_action_t *op);
26
27G_GNUC_INTERNAL
28enum ocf_exitcode services__lsb2ocf(const char *action, int exit_status);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif // PCMK__SERVICES_SERVICES_LSB__H
enum pcmk_ipc_server type
Definition cpg.c:3
const char * action
Definition pcmk_fence.c:32
Function and executable result codes.
ocf_exitcode
Exit status codes for resource agents.
Definition results.h:173
Services API.
G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent)
G_GNUC_INTERNAL GList * services__list_lsb_agents(void)
G_GNUC_INTERNAL enum ocf_exitcode services__lsb2ocf(const char *action, int exit_status)
G_GNUC_INTERNAL int services__lsb_prepare(svc_action_t *op)
G_GNUC_INTERNAL int services__get_lsb_metadata(const char *type, char **output)
Object for executing external actions.
Definition services.h:99