pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Data Structures | Macros | Enumerations | Functions
messages_internal.h File Reference
#include <stdint.h>
#include <libxml/tree.h>
#include <crm/common/ipc_internal.h>
#include <crm/common/results_internal.h>
Include dependency graph for messages_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__request_t
 
struct  pcmk__server_command_t
 

Macros

#define pcmk__set_request_flags(request, flags_to_set)
 

Enumerations

enum  pcmk__request_flags { pcmk__request_none = UINT32_C(0), pcmk__request_sync = (UINT32_C(1) << 0), pcmk__request_reuse_options = (UINT32_C(1) << 1) }
 

Functions

const char * pcmk__message_name (const char *name)
 Get name to be used as identifier for cluster messages. More...
 
GHashTable * pcmk__register_handlers (const pcmk__server_command_t handlers[])
 
xmlNode * pcmk__process_request (pcmk__request_t *request, GHashTable *handlers)
 
void pcmk__reset_request (pcmk__request_t *request)
 

Macro Definition Documentation

◆ pcmk__set_request_flags

#define pcmk__set_request_flags (   request,
  flags_to_set 
)
Value:
do { \
(request)->flags = pcmk__set_flags_as(__func__, __LINE__, \
LOG_TRACE, "Request", "message", (request)->flags, \
(flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:38
uint64_t flags
Definition: remote.c:215

Definition at line 63 of file messages_internal.h.

Enumeration Type Documentation

◆ pcmk__request_flags

Enumerator
pcmk__request_none 
pcmk__request_sync 
pcmk__request_reuse_options 

Definition at line 18 of file messages_internal.h.

Function Documentation

◆ pcmk__message_name()

const char* pcmk__message_name ( const char *  name)

Get name to be used as identifier for cluster messages.

Parameters
[in]nameActual system name to check
Returns
Non-NULL cluster message identifier corresponding to name
Note
The Pacemaker daemons were renamed in version 2.0.0, but the old names must continue to be used as the identifier for cluster messages, so that mixed-version clusters are possible during a rolling upgrade.

Definition at line 180 of file messages.c.

◆ pcmk__process_request()

xmlNode* pcmk__process_request ( pcmk__request_t request,
GHashTable *  handlers 
)

Definition at line 251 of file messages.c.

◆ pcmk__register_handlers()

GHashTable* pcmk__register_handlers ( const pcmk__server_command_t  handlers[])

Definition at line 222 of file messages.c.

◆ pcmk__reset_request()

void pcmk__reset_request ( pcmk__request_t request)

Definition at line 285 of file messages.c.