comparison mcabber/mcabber/xmpp_helper.c @ 2033:a37fbc3ac6aa

Delivery receipts: Use LM-generated messages id
author Mikael Berthe <mikael@lilotux.net>
date Sun, 14 Oct 2012 17:41:56 +0200
parents f740c4128f76
children 412322678d59
comparison
equal deleted inserted replaced
2032:f740c4128f76 2033:a37fbc3ac6aa
102 feature = g_slist_next(feature); 102 feature = g_slist_next(feature);
103 } 103 }
104 } 104 }
105 #endif 105 #endif
106 106
107 // The caller must g_free this after use
108 gchar *lm_get_uid ()
109 {
110 static guint xmpp_uid = 0;
111 return g_strdup_printf ("mc%u", ++xmpp_uid);
112 }
113
114 const gchar* lm_message_node_get_child_value(LmMessageNode *node, 107 const gchar* lm_message_node_get_child_value(LmMessageNode *node,
115 const gchar *child) 108 const gchar *child)
116 { 109 {
117 LmMessageNode *tmp; 110 LmMessageNode *tmp;
118 tmp = lm_message_node_find_child(node, child); 111 tmp = lm_message_node_find_child(node, child);