pacemaker
2.1.8-3980678f03
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <stdio.h>
#include <sys/types.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <crm/common/xml_compat.h>
Go to the source code of this file.
Functions | |
xmlNode * | create_request_adv (const char *task, xmlNode *msg_data, const char *host_to, const char *sys_to, const char *sys_from, const char *uuid_from, const char *origin) |
Create a Pacemaker request (for IPC or cluster layer) More... | |
xmlNode * | create_reply_adv (const xmlNode *original_request, xmlNode *xml_response_data, const char *origin) |
Create a Pacemaker reply (for IPC or cluster layer) More... | |
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) |
gboolean | add_message_xml (xmlNode *msg, const char *field, xmlNode *xml) |
xmlNode * | get_message_xml (const xmlNode *msg, const char *field) |
gboolean add_message_xml | ( | xmlNode * | msg, |
const char * | field, | ||
xmlNode * | xml | ||
) |
Definition at line 290 of file messages.c.
xmlNode* create_reply_adv | ( | const xmlNode * | original_request, |
xmlNode * | xml_response_data, | ||
const char * | origin | ||
) |
Create a Pacemaker reply (for IPC or cluster layer)
[in] | original_request | XML of request this is a reply to |
[in] | xml_response_data | XML to copy as data section of reply |
[in] | origin | Name of function that called this one |
Definition at line 104 of file messages.c.
xmlNode* create_request_adv | ( | const char * | task, |
xmlNode * | msg_data, | ||
const char * | host_to, | ||
const char * | sys_to, | ||
const char * | sys_from, | ||
const char * | uuid_from, | ||
const char * | origin | ||
) |
Create a Pacemaker request (for IPC or cluster layer)
[in] | task | What to set as the request's task |
[in] | msg_data | What to add as the request's data contents |
[in] | host_to | What to set as the request's destination host |
[in] | sys_to | What to set as the request's destination system |
[in] | sys_from | If not NULL, set as request's origin system |
[in] | uuid_from | If not NULL, use in request's origin system |
[in] | origin | Name of function that called this one |
Definition at line 40 of file messages.c.
xmlNode* get_message_xml | ( | const xmlNode * | msg, |
const char * | field | ||
) |
Definition at line 299 of file messages.c.
const char* pcmk__message_name | ( | const char * | name | ) |
Get name to be used as identifier for cluster messages.
[in] | name | Actual system name to check |
Definition at line 171 of file messages.c.
xmlNode* pcmk__process_request | ( | pcmk__request_t * | request, |
GHashTable * | handlers | ||
) |
Definition at line 242 of file messages.c.
GHashTable* pcmk__register_handlers | ( | const pcmk__server_command_t | handlers[] | ) |
Definition at line 213 of file messages.c.
void pcmk__reset_request | ( | pcmk__request_t * | request | ) |
Definition at line 276 of file messages.c.