pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
crm_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2006-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__CRM_INTERNAL__H
11#define PCMK__CRM_INTERNAL__H
12
13#ifndef PCMK__CONFIG_H
14#define PCMK__CONFIG_H
15#include <config.h>
16#endif
17
18#include <portability.h>
19
20/* Our minimum glib dependency is 2.42. Define that as both the minimum and
21 * maximum glib APIs that are allowed (i.e. APIs that were already deprecated
22 * in 2.42, and APIs introduced after 2.42, cannot be used by Pacemaker code).
23 */
24#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_42
25#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_42
26
27#define G_LOG_DOMAIN "Pacemaker"
28
29#include <glib.h>
30#include <stdbool.h>
31#include <libxml/tree.h>
32
33/* Public API headers can guard including deprecated API headers with this
34 * symbol, thus preventing internal code (which includes this header) from using
35 * deprecated APIs, while still allowing external code to use them by default.
36 */
37#define PCMK_ALLOW_DEPRECATED 0
38
39#include <crm/lrmd.h>
42#include <crm/common/logging.h>
51#include <crm/common/internal.h>
52#include <locale.h>
53#include <gettext.h>
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59#define N_(String) (String)
60
61#ifdef ENABLE_NLS
62#define _(String) gettext(String)
63#else
64#define _(String) (String)
65#endif
66
67
68/*
69 * IPC service names that are only used internally
70 */
71
72#define PCMK__SERVER_BASED_RO "cib_ro"
73#define PCMK__SERVER_BASED_RW "cib_rw"
74#define PCMK__SERVER_BASED_SHM "cib_shm"
75
76/*
77 * IPC commands that can be sent to Pacemaker daemons
78 */
79
80#define PCMK__ATTRD_CMD_PEER_REMOVE "peer-remove"
81#define PCMK__ATTRD_CMD_UPDATE "update"
82#define PCMK__ATTRD_CMD_UPDATE_BOTH "update-both"
83#define PCMK__ATTRD_CMD_UPDATE_DELAY "update-delay"
84#define PCMK__ATTRD_CMD_QUERY "query"
85#define PCMK__ATTRD_CMD_REFRESH "refresh"
86#define PCMK__ATTRD_CMD_SYNC_RESPONSE "sync-response"
87#define PCMK__ATTRD_CMD_CLEAR_FAILURE "clear-failure"
88#define PCMK__ATTRD_CMD_CONFIRM "confirm"
89
90#define PCMK__CONTROLD_CMD_NODES "list-nodes"
91
92#define ST__LEVEL_MIN 1
93#define ST__LEVEL_MAX 9
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif // CRM_INTERNAL__H
Wrappers for and extensions to libqb logging.
Resource agent executor.
Formatted output for pacemaker tools.