xmlSetProp(hello->children, "client_uuid", uid); xmlSetProp(hello->children, "client_name", client_name); xmlSetProp(hello->children, "major_version", major_version); xmlSetProp(hello->children, "minor_version", minor_version);
set_xml_property_copy(hello->children, "client_uuid", uid); set_xml_property_copy(hello->children, "client_name", client_name); set_xml_property_copy(hello->children, "major_version", major_version); set_xml_property_copy(hello->children, "minor_version", minor_version);
send_hello_message(IPC_Channel *ipc_client,		   const char *uid,		   const char *client_name,		   const char *major_version,		   const char *minor_version){    FNIN();    if(uid == NULL || strlen(uid) == 0       || client_name == NULL || strlen(client_name) == 0       || major_version == NULL || strlen(major_version) == 0       || minor_version == NULL || strlen(minor_version) == 0)    {	cl_log(LOG_ERR, "Missing fields, Hello message will not be valid.");	return;    }    xmlDocPtr hello = xmlNewDoc("1.0");    hello->children = xmlNewDocNode(hello, NULL, "hello", NULL);    xmlSetProp(hello->children, "client_uuid", uid);    xmlSetProp(hello->children, "client_name", client_name);    xmlSetProp(hello->children, "major_version", major_version);    xmlSetProp(hello->children, "minor_version", minor_version);    send_xmlipc_message(ipc_client, xmlDocGetRootElement(hello));}