10 #ifndef PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 11 #define PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 14 #include <libxml/tree.h> 60 #define pcmk__set_request_flags(request, flags_to_set) do { \ 61 (request)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 62 LOG_TRACE, "Request", "message", (request)->flags, \ 63 (flags_to_set), #flags_to_set); \ 85 static inline const char *
88 if ((request != NULL) && (request->
ipc_client != NULL)) {
90 }
else if ((request != NULL) && (request->
peer != NULL)) {
106 static inline const char *
109 if ((request != NULL) && (request->
ipc_client != NULL)) {
111 }
else if ((request != NULL) && (request->
peer != NULL)) {
112 return request->
peer;
114 return "(unspecified)";
118 #endif // PCMK__CRM_COMMON_MESSAGES_INTERNAL__H
xmlNode * pcmk__process_request(pcmk__request_t *request, GHashTable *handlers)
pcmk__client_t * ipc_client
GHashTable * pcmk__register_handlers(pcmk__server_command_t handlers[])
pcmk__action_result_t result
const char * pcmk__message_name(const char *name)
Get name to be used as identifier for cluster messages.
const char * pcmk__client_name(pcmk__client_t *c)