pacemaker  3.0.0-d8340737c4
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 <crm/common/xml_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)
 
#define pcmk__new_message(server, reply_to, sender_system, recipient_node, recipient_system, task, data)
 
#define pcmk__new_request(server, sender_system, recipient_node, recipient_system, task, data)
 
#define pcmk__new_reply(original_request, data)   pcmk__new_reply_as(__func__, (original_request), (data))
 

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

xmlNode * pcmk__new_message_as (const char *origin, enum pcmk_ipc_server server, const char *reply_to, const char *sender_system, const char *recipient_node, const char *recipient_system, const char *task, xmlNode *data)
 
xmlNode * pcmk__new_reply_as (const char *origin, const xmlNode *original_request, xmlNode *data)
 
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__new_message

#define pcmk__new_message (   server,
  reply_to,
  sender_system,
  recipient_node,
  recipient_system,
  task,
  data 
)
Value:
pcmk__new_message_as(__func__, (server), (reply_to), \
(sender_system), (recipient_node), \
(recipient_system), (task), (data))
char data[0]
Definition: cpg.c:58
xmlNode * pcmk__new_message_as(const char *origin, enum pcmk_ipc_server server, const char *reply_to, const char *sender_system, const char *recipient_node, const char *recipient_system, const char *task, xmlNode *data)
Definition: messages.c:58

Definition at line 111 of file messages_internal.h.

◆ pcmk__new_reply

#define pcmk__new_reply (   original_request,
  data 
)    pcmk__new_reply_as(__func__, (original_request), (data))

Definition at line 162 of file messages_internal.h.

◆ pcmk__new_request

#define pcmk__new_request (   server,
  sender_system,
  recipient_node,
  recipient_system,
  task,
  data 
)
Value:
pcmk__new_message_as(__func__, (server), NULL, \
(sender_system), (recipient_node), \
(recipient_system), (task), (data))
char data[0]
Definition: cpg.c:58
xmlNode * pcmk__new_message_as(const char *origin, enum pcmk_ipc_server server, const char *reply_to, const char *sender_system, const char *recipient_node, const char *recipient_system, const char *task, xmlNode *data)
Definition: messages.c:58

Definition at line 141 of file messages_internal.h.

◆ 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:211

Definition at line 68 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 23 of file messages_internal.h.

Function Documentation

◆ pcmk__new_message_as()

xmlNode* pcmk__new_message_as ( const char *  origin,
enum pcmk_ipc_server  server,
const char *  reply_to,
const char *  sender_system,
const char *  recipient_node,
const char *  recipient_system,
const char *  task,
xmlNode *  data 
)

Definition at line 58 of file messages.c.

◆ pcmk__new_reply_as()

xmlNode* pcmk__new_reply_as ( const char *  origin,
const xmlNode *  original_request,
xmlNode *  data 
)

Definition at line 123 of file messages.c.

◆ pcmk__process_request()

xmlNode* pcmk__process_request ( pcmk__request_t request,
GHashTable *  handlers 
)

Definition at line 210 of file messages.c.

◆ pcmk__register_handlers()

GHashTable* pcmk__register_handlers ( const pcmk__server_command_t  handlers[])

Definition at line 181 of file messages.c.

◆ pcmk__reset_request()

void pcmk__reset_request ( pcmk__request_t request)

Definition at line 244 of file messages.c.