/*
 * Copyright 2010-2025 the Pacemaker project contributors
 *
 * The version control history for this file may have further details.
 *
 * This source code is licensed under the GNU Lesser General Public License
 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
 */

#ifndef PCMK__SERVICES_SERVICES_LSB__H
#define PCMK__SERVICES_SERVICES_LSB__H

#include <stdbool.h>

#include <glib.h>               // G_GNUC_INTERNAL, GList

#include <crm/common/results.h> // enum ocf_exitcode
#include <crm/services.h>       // svc_action_t

#ifdef __cplusplus
extern "C" {
#endif

G_GNUC_INTERNAL int services__get_lsb_metadata(const char *type, char **output);
G_GNUC_INTERNAL GList *services__list_lsb_agents(void);
G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent);
G_GNUC_INTERNAL int services__lsb_prepare(svc_action_t *op);

G_GNUC_INTERNAL
enum ocf_exitcode services__lsb2ocf(const char *action, int exit_status);

#ifdef __cplusplus
}
#endif

#endif // PCMK__SERVICES_SERVICES_LSB__H
