pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
include
crm
common
util_compat.h
Go to the documentation of this file.
1
/*
2
* Copyright 2004-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_COMMON_UTIL_COMPAT__H
11
#define PCMK__CRM_COMMON_UTIL_COMPAT__H
12
13
#include <stdbool.h>
// bool
14
#include <glib.h>
// gboolean
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
29
void
crm_gnutls_global_init
(
void
);
31
33
bool
crm_is_daemon_name
(
const
char
*
name
);
34
35
// NOTE: sbd (as of at least 1.5.2) uses this
37
static
inline
gboolean
38
is_set(
long
long
word,
long
long
bit)
39
{
40
return
((word & bit) == bit);
41
}
42
43
#ifdef __cplusplus
44
}
45
#endif
46
47
#endif // PCMK__CRM_COMMON_UTIL_COMPAT__H
name
const char * name
Definition:
cib.c:26
crm_is_daemon_name
bool crm_is_daemon_name(const char *name)
Check whether string represents a client name used by cluster daemons.
Definition:
utils.c:476
crm_gnutls_global_init
void crm_gnutls_global_init(void)
Definition:
utils.c:457
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14