MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / resource_ipc_callback

Function resource_ipc_callback

tools/crm_resource.c:103–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static int
104resource_ipc_callback(const char *buffer, ssize_t length, gpointer userdata)
105{
106 xmlNode *msg = string2xml(buffer);
107
108 fprintf(stderr, ".");
109 crm_log_xml_trace(msg, "[inbound]");
110
111 crmd_replies_needed--;
112 if (crmd_replies_needed == 0) {
113 fprintf(stderr, " OK\n");
114 crm_debug("Got all the replies we expected");
115 return crm_exit(0);
116 }
117
118 free_xml(msg);
119 return 0;
120}
121
122struct ipc_client_callbacks crm_callbacks =
123{

Callers

nothing calls this directly

Calls 3

string2xmlFunction · 0.85
crm_exitFunction · 0.85
free_xmlFunction · 0.85

Tested by

no test coverage detected