10 #ifndef PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 11 #define PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 14 #include <libxml/tree.h> 63 #define pcmk__set_request_flags(request, flags_to_set) do { \ 64 (request)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 65 LOG_TRACE, "Request", "message", (request)->flags, \ 66 (flags_to_set), #flags_to_set); \ 89 static inline const char *
92 if ((request != NULL) && (request->
ipc_client != NULL)) {
94 }
else if ((request != NULL) && (request->
peer != NULL)) {
110 static inline const char *
113 if ((request != NULL) && (request->
ipc_client != NULL)) {
115 }
else if ((request != NULL) && (request->
peer != NULL)) {
116 return request->
peer;
118 return "(unspecified)";
122 #endif // PCMK__CRM_COMMON_MESSAGES_INTERNAL__H
void pcmk__reset_request(pcmk__request_t *request)
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)