comparison mcabber/mcabber/xmpp_helper.c @ 2303:4f3821bda633

LM: Use get_child in place of find_child
author Mikael Berthe <mikael@lilotux.net>
date Mon, 30 Jan 2017 18:46:15 +0100
parents f5402d705f67
children
comparison
equal deleted inserted replaced
2302:245ec6d73380 2303:4f3821bda633
107 { 107 {
108 LmMessageNode *tmp; 108 LmMessageNode *tmp;
109 109
110 if (G_UNLIKELY(!node || !child)) return NULL; 110 if (G_UNLIKELY(!node || !child)) return NULL;
111 111
112 tmp = lm_message_node_find_child(node, child); 112 tmp = lm_message_node_get_child(node, child);
113 if (tmp) { 113 if (tmp) {
114 const gchar *val = lm_message_node_get_value(tmp); 114 const gchar *val = lm_message_node_get_value(tmp);
115 return (val ? val : ""); 115 return (val ? val : "");
116 } 116 }
117 return NULL; 117 return NULL;