10 #ifndef PCMK__CRM_COMMON_UTIL__H 11 #define PCMK__CRM_COMMON_UTIL__H 13 #include <sys/types.h> 57 pcmk_any_flags_set(uint64_t flag_group, uint64_t flags_to_check)
59 return (flag_group & flags_to_check) != 0;
72 pcmk_all_flags_set(uint64_t flag_group, uint64_t flags_to_check)
74 return (flag_group & flags_to_check) == flags_to_check;
80 #define pcmk_is_set(g, f) pcmk_all_flags_set((g), (f)) 92 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) API related to resource agents.
char * crm_generate_uuid(void)
char * pcmk_promotion_score_name(const char *rsc_id)
Return the name of the node attribute used as a promotion score.
int crm_user_lookup(const char *name, uid_t *uid, gid_t *gid)
void pcmk_common_cleanup(void)
Free all memory used by libcrmcommon.
int pcmk_daemon_user(uid_t *uid, gid_t *gid)
Get user and group IDs of pacemaker daemon user.
Low-level API for XML Access Control Lists (ACLs)
Function and executable result codes.
Functionality for manipulating name/value pairs.
int compare_version(const char *version1, const char *version2)
Pacemaker APIs related to scores.
char * crm_md5sum(const char *buffer)
Deprecated Pacemaker utilities.
int crm_default_remote_port(void)
Get the default remote connection TCP port on this host.