10 #ifndef PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 11 #define PCMK__CRM_COMMON_MESSAGES_INTERNAL__H 14 #include <libxml/tree.h> 64 #define pcmk__set_request_flags(request, flags_to_set) do { \ 65 (request)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 66 LOG_TRACE, "Request", "message", (request)->flags, \ 67 (flags_to_set), #flags_to_set); \ 90 static inline const char *
93 if ((request != NULL) && (request->
ipc_client != NULL)) {
95 }
else if ((request != NULL) && (request->
peer != NULL)) {
111 static inline const char *
114 if ((request != NULL) && (request->
ipc_client != NULL)) {
116 }
else if ((request != NULL) && (request->
peer != NULL)) {
117 return request->
peer;
119 return "(unspecified)";
123 #endif // PCMK__CRM_COMMON_MESSAGES_INTERNAL__H
GHashTable * pcmk__register_handlers(const pcmk__server_command_t handlers[])
void pcmk__reset_request(pcmk__request_t *request)
xmlNode * pcmk__process_request(pcmk__request_t *request, GHashTable *handlers)
pcmk__client_t * ipc_client
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(const pcmk__client_t *c)