pacemaker
2.1.0-7c3f660
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 (xmlNode *original_request, xmlNode *xml_response_data, const char *origin) |
Create a Pacemaker reply (for IPC or cluster layer) More... | |
xmlNode * | get_message_xml (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... | |
gboolean add_message_xml | ( | xmlNode * | msg, |
const char * | field, | ||
xmlNode * | xml | ||
) |
Definition at line 162 of file messages.c.
xmlNode* create_reply_adv | ( | 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 | ( | 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 182 of file messages.c.