pacemaker
2.1.7-0f7f88312f
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/msg_xml.h>
#include <crm/common/xml_internal.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... | |
xmlNode * | get_message_xml (const xmlNode *msg, const char *field) |
gboolean | add_message_xml (xmlNode *msg, const char *field, xmlNode *xml) |
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 | ||
) |
Definition at line 160 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 102 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 154 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 180 of file messages.c.
xmlNode* pcmk__process_request | ( | pcmk__request_t * | request, |
GHashTable * | handlers | ||
) |
Definition at line 251 of file messages.c.
GHashTable* pcmk__register_handlers | ( | const pcmk__server_command_t | handlers[] | ) |
Definition at line 222 of file messages.c.
void pcmk__reset_request | ( | pcmk__request_t * | request | ) |
Definition at line 285 of file messages.c.