pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
Data Structures | Macros | Enumerations
tickets_internal.h File Reference

Scheduler API for tickets. More...

#include <stdint.h>
#include <sys/types.h>
#include <glib.h>
Include dependency graph for tickets_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pcmk__ticket_t
 

Macros

#define pcmk__set_ticket_flags(ticket, flags_to_set)
 
#define pcmk__clear_ticket_flags(ticket, flags_to_clear)
 

Enumerations

enum  pcmk__ticket_flags { pcmk__ticket_none = UINT32_C(0), pcmk__ticket_granted = (UINT32_C(1) << 0), pcmk__ticket_standby = (UINT32_C(1) << 1) }
 

Detailed Description

Scheduler API for tickets.

Definition in file tickets_internal.h.

Macro Definition Documentation

◆ pcmk__clear_ticket_flags

#define pcmk__clear_ticket_flags (   ticket,
  flags_to_clear 
)
Value:
do { \
(ticket)->flags = pcmk__clear_flags_as(__func__, __LINE__, \
LOG_TRACE, "Ticket", (ticket)->id, (ticket)->flags, \
(flags_to_clear), #flags_to_clear); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
uint64_t flags
Definition: remote.c:211

Definition at line 47 of file tickets_internal.h.

◆ pcmk__set_ticket_flags

#define pcmk__set_ticket_flags (   ticket,
  flags_to_set 
)
Value:
do { \
(ticket)->flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Ticket", (ticket)->id, (ticket)->flags, \
(flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
uint64_t flags
Definition: remote.c:211

Definition at line 34 of file tickets_internal.h.

Enumeration Type Documentation

◆ pcmk__ticket_flags

Enumerator
pcmk__ticket_none 
pcmk__ticket_granted 
pcmk__ticket_standby 

Definition at line 53 of file tickets_internal.h.