pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Typedefs
crm_compat.h File Reference

Deprecated Pacemaker utilities. More...

#include <strings.h>
#include <glib.h>
#include <crm/common/actions.h>
#include <crm/common/scores.h>
Include dependency graph for crm_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EOS   '\0'
 
#define MAX_IPC_DELAY   120
 
#define CRM_SCORE_INFINITY   PCMK_SCORE_INFINITY
 
#define INFINITY   PCMK_SCORE_INFINITY
 
#define CRM_INFINITY_S   PCMK_VALUE_INFINITY
 
#define CRM_MINUS_INFINITY_S   PCMK_VALUE_MINUS_INFINITY
 
#define CRM_PLUS_INFINITY_S   PCMK_VALUE_PLUS_INFINITY
 
#define INFINITY_S   "INFINITY"
 
#define MINUS_INFINITY_S   "-INFINITY"
 
#define CRM_OP_FENCE   PCMK_ACTION_STONITH
 
#define CRM_OP_LRM_QUERY   "lrm_query"
 
#define CRM_OP_RELAXED_CLONE   PCMK_ACTION_CLONE_ONE_OR_MORE
 
#define CRM_OP_RELAXED_SET   PCMK_ACTION_ONE_OR_MORE
 
#define CRM_ATTR_RA_VERSION   "#ra-version"
 
#define CRMD_ACTION_CANCEL   PCMK_ACTION_CANCEL
 
#define CRMD_ACTION_DELETE   PCMK_ACTION_DELETE
 
#define CRMD_ACTION_DEMOTE   PCMK_ACTION_DEMOTE
 
#define CRMD_ACTION_DEMOTED   PCMK_ACTION_DEMOTED
 
#define CRMD_ACTION_METADATA   PCMK_ACTION_META_DATA
 
#define CRMD_ACTION_MIGRATE   PCMK_ACTION_MIGRATE_TO
 
#define CRMD_ACTION_MIGRATED   PCMK_ACTION_MIGRATE_FROM
 
#define CRMD_ACTION_NOTIFIED   PCMK_ACTION_NOTIFIED
 
#define CRMD_ACTION_NOTIFY   PCMK_ACTION_NOTIFY
 
#define CRMD_ACTION_PROMOTE   PCMK_ACTION_PROMOTE
 
#define CRMD_ACTION_PROMOTED   PCMK_ACTION_PROMOTED
 
#define CRMD_ACTION_RELOAD   PCMK_ACTION_RELOAD
 
#define CRMD_ACTION_RELOAD_AGENT   PCMK_ACTION_RELOAD_AGENT
 
#define CRMD_ACTION_START   PCMK_ACTION_START
 
#define CRMD_ACTION_STARTED   PCMK_ACTION_RUNNING
 
#define CRMD_ACTION_STATUS   PCMK_ACTION_MONITOR
 
#define CRMD_ACTION_STOP   PCMK_ACTION_STOP
 
#define CRMD_ACTION_STOPPED   PCMK_ACTION_STOPPED
 
#define CRMD_METADATA_CALL_TIMEOUT   PCMK_DEFAULT_METADATA_TIMEOUT_MS
 
#define RSC_CANCEL   PCMK_ACTION_CANCEL
 
#define RSC_DELETE   PCMK_ACTION_DELETE
 
#define RSC_DEMOTE   PCMK_ACTION_DEMOTE
 
#define RSC_DEMOTED   PCMK_ACTION_DEMOTED
 
#define RSC_METADATA   PCMK_ACTION_META_DATA
 
#define RSC_MIGRATE   PCMK_ACTION_MIGRATE_TO
 
#define RSC_MIGRATED   PCMK_ACTION_MIGRATE_FROM
 
#define RSC_NOTIFIED   PCMK_ACTION_NOTIFIED
 
#define RSC_NOTIFY   PCMK_ACTION_NOTIFY
 
#define RSC_PROMOTE   PCMK_ACTION_PROMOTE
 
#define RSC_PROMOTED   PCMK_ACTION_PROMOTED
 
#define RSC_START   PCMK_ACTION_START
 
#define RSC_STARTED   PCMK_ACTION_RUNNING
 
#define RSC_STATUS   PCMK_ACTION_MONITOR
 
#define RSC_STOP   PCMK_ACTION_STOP
 
#define RSC_STOPPED   PCMK_ACTION_STOPPED
 
#define CRM_OP_LOCAL_SHUTDOWN   "start_shutdown"
 
#define __builtin_expect(expr, result)   (expr)
 
#define __likely(expr)   __builtin_expect(expr, 1)
 
#define __unlikely(expr)   __builtin_expect(expr, 0)
 

Typedefs

typedef GList * GListPtr
 

Detailed Description

Deprecated Pacemaker utilities.

Deprecated:
Do not include this header directly. The utilities in this header, and the header itself, will be removed in a future release.

Definition in file crm_compat.h.

Macro Definition Documentation

◆ __builtin_expect

#define __builtin_expect (   expr,
  result 
)    (expr)
Deprecated:
This macro will be removed in a future release

Definition at line 192 of file crm_compat.h.

◆ __likely

#define __likely (   expr)    __builtin_expect(expr, 1)
Deprecated:
This macro will be removed in a future release

Definition at line 195 of file crm_compat.h.

◆ __unlikely

#define __unlikely (   expr)    __builtin_expect(expr, 0)
Deprecated:
This macro will be removed in a future release

Definition at line 197 of file crm_compat.h.

◆ CRM_ATTR_RA_VERSION

#define CRM_ATTR_RA_VERSION   "#ra-version"
Deprecated:
This defined constant will be removed in a future release

Definition at line 78 of file crm_compat.h.

◆ CRM_INFINITY_S

#define CRM_INFINITY_S   PCMK_VALUE_INFINITY
Deprecated:
Use PCMK_VALUE_INFINITY instead

Definition at line 51 of file crm_compat.h.

◆ CRM_MINUS_INFINITY_S

#define CRM_MINUS_INFINITY_S   PCMK_VALUE_MINUS_INFINITY
Deprecated:
Use PCMK_VALUE_MINUS_INFINITY instead

Definition at line 54 of file crm_compat.h.

◆ CRM_OP_FENCE

#define CRM_OP_FENCE   PCMK_ACTION_STONITH
Deprecated:
Use PCMK_ACTION_STONITH instead

Definition at line 66 of file crm_compat.h.

◆ CRM_OP_LOCAL_SHUTDOWN

#define CRM_OP_LOCAL_SHUTDOWN   "start_shutdown"
Deprecated:
Do not use

Definition at line 186 of file crm_compat.h.

◆ CRM_OP_LRM_QUERY

#define CRM_OP_LRM_QUERY   "lrm_query"
Deprecated:
This defined constant will be removed in a future release

Definition at line 69 of file crm_compat.h.

◆ CRM_OP_RELAXED_CLONE

#define CRM_OP_RELAXED_CLONE   PCMK_ACTION_CLONE_ONE_OR_MORE
Deprecated:
Use PCMK_ACTION_CLONE_ONE_OR_MORE instead

Definition at line 72 of file crm_compat.h.

◆ CRM_OP_RELAXED_SET

#define CRM_OP_RELAXED_SET   PCMK_ACTION_ONE_OR_MORE
Deprecated:
Use PCMK_ACTION_ONE_OR_MORE instead

Definition at line 75 of file crm_compat.h.

◆ CRM_PLUS_INFINITY_S

#define CRM_PLUS_INFINITY_S   PCMK_VALUE_PLUS_INFINITY
Deprecated:
Use PCMK_VALUE_PLUS_INFINITY instead

Definition at line 57 of file crm_compat.h.

◆ CRM_SCORE_INFINITY

#define CRM_SCORE_INFINITY   PCMK_SCORE_INFINITY
Deprecated:
Use PCMK_SCORE_INFINITY instead

Definition at line 40 of file crm_compat.h.

◆ CRMD_ACTION_CANCEL

#define CRMD_ACTION_CANCEL   PCMK_ACTION_CANCEL
Deprecated:
Use PCMK_ACTION_CANCEL instead

Definition at line 81 of file crm_compat.h.

◆ CRMD_ACTION_DELETE

#define CRMD_ACTION_DELETE   PCMK_ACTION_DELETE
Deprecated:
Use PCMK_ACTION_DELETE instead

Definition at line 84 of file crm_compat.h.

◆ CRMD_ACTION_DEMOTE

#define CRMD_ACTION_DEMOTE   PCMK_ACTION_DEMOTE
Deprecated:
Use PCMK_ACTION_DEMOTE instead

Definition at line 87 of file crm_compat.h.

◆ CRMD_ACTION_DEMOTED

#define CRMD_ACTION_DEMOTED   PCMK_ACTION_DEMOTED
Deprecated:
Use PCMK_ACTION_DEMOTED instead

Definition at line 90 of file crm_compat.h.

◆ CRMD_ACTION_METADATA

#define CRMD_ACTION_METADATA   PCMK_ACTION_META_DATA
Deprecated:
Use PCMK_ACTION_META_DATA instead

Definition at line 93 of file crm_compat.h.

◆ CRMD_ACTION_MIGRATE

#define CRMD_ACTION_MIGRATE   PCMK_ACTION_MIGRATE_TO
Deprecated:
Use PCMK_ACTION_MIGRATE_TO instead

Definition at line 96 of file crm_compat.h.

◆ CRMD_ACTION_MIGRATED

#define CRMD_ACTION_MIGRATED   PCMK_ACTION_MIGRATE_FROM
Deprecated:
Use PCMK_ACTION_MIGRATE_FROM instead

Definition at line 99 of file crm_compat.h.

◆ CRMD_ACTION_NOTIFIED

#define CRMD_ACTION_NOTIFIED   PCMK_ACTION_NOTIFIED
Deprecated:
Use PCMK_ACTION_NOTIFIED instead

Definition at line 102 of file crm_compat.h.

◆ CRMD_ACTION_NOTIFY

#define CRMD_ACTION_NOTIFY   PCMK_ACTION_NOTIFY
Deprecated:
Use PCMK_ACTION_NOTIFY instead

Definition at line 105 of file crm_compat.h.

◆ CRMD_ACTION_PROMOTE

#define CRMD_ACTION_PROMOTE   PCMK_ACTION_PROMOTE
Deprecated:
Use PCMK_ACTION_PROMOTE instead

Definition at line 108 of file crm_compat.h.

◆ CRMD_ACTION_PROMOTED

#define CRMD_ACTION_PROMOTED   PCMK_ACTION_PROMOTED
Deprecated:
Use PCMK_ACTION_PROMOTED instead

Definition at line 111 of file crm_compat.h.

◆ CRMD_ACTION_RELOAD

#define CRMD_ACTION_RELOAD   PCMK_ACTION_RELOAD
Deprecated:
Use PCMK_ACTION_RELOAD instead

Definition at line 114 of file crm_compat.h.

◆ CRMD_ACTION_RELOAD_AGENT

#define CRMD_ACTION_RELOAD_AGENT   PCMK_ACTION_RELOAD_AGENT
Deprecated:
Use PCMK_ACTION_RELOAD_AGENT instead

Definition at line 117 of file crm_compat.h.

◆ CRMD_ACTION_START

#define CRMD_ACTION_START   PCMK_ACTION_START
Deprecated:
Use PCMK_ACTION_START instead

Definition at line 120 of file crm_compat.h.

◆ CRMD_ACTION_STARTED

#define CRMD_ACTION_STARTED   PCMK_ACTION_RUNNING
Deprecated:
Use PCMK_ACTION_RUNNING instead

Definition at line 123 of file crm_compat.h.

◆ CRMD_ACTION_STATUS

#define CRMD_ACTION_STATUS   PCMK_ACTION_MONITOR
Deprecated:
Use PCMK_ACTION_MONITOR instead

Definition at line 126 of file crm_compat.h.

◆ CRMD_ACTION_STOP

#define CRMD_ACTION_STOP   PCMK_ACTION_STOP
Deprecated:
Use PCMK_ACTION_STOP instead

Definition at line 129 of file crm_compat.h.

◆ CRMD_ACTION_STOPPED

#define CRMD_ACTION_STOPPED   PCMK_ACTION_STOPPED
Deprecated:
Use PCMK_ACTION_STOPPED instead

Definition at line 132 of file crm_compat.h.

◆ CRMD_METADATA_CALL_TIMEOUT

#define CRMD_METADATA_CALL_TIMEOUT   PCMK_DEFAULT_METADATA_TIMEOUT_MS
Deprecated:
Do not use

Definition at line 135 of file crm_compat.h.

◆ EOS

#define EOS   '\0'
Deprecated:
Use '\0' instead

Definition at line 33 of file crm_compat.h.

◆ INFINITY

#define INFINITY   PCMK_SCORE_INFINITY
Deprecated:
Use PCMK_SCORE_INFINITY instead

Definition at line 48 of file crm_compat.h.

◆ INFINITY_S

#define INFINITY_S   "INFINITY"
Deprecated:
Use PCMK_VALUE_INFINITY instead

Definition at line 60 of file crm_compat.h.

◆ MAX_IPC_DELAY

#define MAX_IPC_DELAY   120
Deprecated:
This defined constant will be removed in a future release

Definition at line 36 of file crm_compat.h.

◆ MINUS_INFINITY_S

#define MINUS_INFINITY_S   "-INFINITY"
Deprecated:
Use PCMK_VALUE_MINUS_INFINITY instead

Definition at line 63 of file crm_compat.h.

◆ RSC_CANCEL

#define RSC_CANCEL   PCMK_ACTION_CANCEL
Deprecated:
Use PCMK_ACTION_CANCEL instead

Definition at line 138 of file crm_compat.h.

◆ RSC_DELETE

#define RSC_DELETE   PCMK_ACTION_DELETE
Deprecated:
Use PCMK_ACTION_DELETE instead

Definition at line 141 of file crm_compat.h.

◆ RSC_DEMOTE

#define RSC_DEMOTE   PCMK_ACTION_DEMOTE
Deprecated:
Use PCMK_ACTION_DEMOTE instead

Definition at line 144 of file crm_compat.h.

◆ RSC_DEMOTED

#define RSC_DEMOTED   PCMK_ACTION_DEMOTED
Deprecated:
Use PCMK_ACTION_DEMOTED instead

Definition at line 147 of file crm_compat.h.

◆ RSC_METADATA

#define RSC_METADATA   PCMK_ACTION_META_DATA
Deprecated:
Use PCMK_ACTION_META_DATA instead

Definition at line 150 of file crm_compat.h.

◆ RSC_MIGRATE

#define RSC_MIGRATE   PCMK_ACTION_MIGRATE_TO
Deprecated:
Use PCMK_ACTION_MIGRATE_TO instead

Definition at line 153 of file crm_compat.h.

◆ RSC_MIGRATED

#define RSC_MIGRATED   PCMK_ACTION_MIGRATE_FROM
Deprecated:
Use PCMK_ACTION_MIGRATE_FROM instead

Definition at line 156 of file crm_compat.h.

◆ RSC_NOTIFIED

#define RSC_NOTIFIED   PCMK_ACTION_NOTIFIED
Deprecated:
Use PCMK_ACTION_NOTIFIED instead

Definition at line 159 of file crm_compat.h.

◆ RSC_NOTIFY

#define RSC_NOTIFY   PCMK_ACTION_NOTIFY
Deprecated:
Use PCMK_ACTION_NOTIFY instead

Definition at line 162 of file crm_compat.h.

◆ RSC_PROMOTE

#define RSC_PROMOTE   PCMK_ACTION_PROMOTE
Deprecated:
Use PCMK_ACTION_PROMOTE instead

Definition at line 165 of file crm_compat.h.

◆ RSC_PROMOTED

#define RSC_PROMOTED   PCMK_ACTION_PROMOTED
Deprecated:
Use PCMK_ACTION_PROMOTED instead

Definition at line 168 of file crm_compat.h.

◆ RSC_START

#define RSC_START   PCMK_ACTION_START
Deprecated:
Use PCMK_ACTION_START instead

Definition at line 171 of file crm_compat.h.

◆ RSC_STARTED

#define RSC_STARTED   PCMK_ACTION_RUNNING
Deprecated:
Use PCMK_ACTION_RUNNING instead

Definition at line 174 of file crm_compat.h.

◆ RSC_STATUS

#define RSC_STATUS   PCMK_ACTION_MONITOR
Deprecated:
Use PCMK_ACTION_MONITOR instead

Definition at line 177 of file crm_compat.h.

◆ RSC_STOP

#define RSC_STOP   PCMK_ACTION_STOP
Deprecated:
Use PCMK_ACTION_STOP instead

Definition at line 180 of file crm_compat.h.

◆ RSC_STOPPED

#define RSC_STOPPED   PCMK_ACTION_STOPPED
Deprecated:
Use PCMK_ACTION_STOPPED instead

Definition at line 183 of file crm_compat.h.

Typedef Documentation

◆ GListPtr

typedef GList* GListPtr
Deprecated:
Use GList * instead

Definition at line 204 of file crm_compat.h.