libpurple/protocols/myspace/markup.c

changeset 20349
b067ceddc36f
parent 19794
b8e3b530086e
parent 19859
71d37b57eff2
child 20376
40eb7fd73b9a
equal deleted inserted replaced
19794:b8e3b530086e 20349:b067ceddc36f
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details. 13 * GNU General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
18 */ 18 */
19 19
20 #include "myspace.h" 20 #include "myspace.h"
21 21
22 typedef void (*MSIM_XMLNODE_CONVERT)(MsimSession *, xmlnode *, gchar **, gchar **); 22 typedef void (*MSIM_XMLNODE_CONVERT)(MsimSession *, xmlnode *, gchar **, gchar **);
319 const gchar *color; 319 const gchar *color;
320 gchar *purple_color; 320 gchar *purple_color;
321 321
322 color = xmlnode_get_attrib(root, "v"); 322 color = xmlnode_get_attrib(root, "v");
323 if (!color) { 323 if (!color) {
324 purple_debug_info("msim", "msim_markup_c_to_html: <c> tag w/o v attr"); 324 purple_debug_info("msim", "msim_markup_c_to_html: <c> tag w/o v attr\n");
325 *begin = g_strdup(""); 325 *begin = g_strdup("");
326 *end = g_strdup(""); 326 *end = g_strdup("");
327 /* TODO: log as unrecognized */ 327 /* TODO: log as unrecognized */
328 return; 328 return;
329 } 329 }
347 347
348 color = xmlnode_get_attrib(root, "v"); 348 color = xmlnode_get_attrib(root, "v");
349 if (!color) { 349 if (!color) {
350 *begin = g_strdup(""); 350 *begin = g_strdup("");
351 *end = g_strdup(""); 351 *end = g_strdup("");
352 purple_debug_info("msim", "msim_markup_b_to_html: <b> w/o v attr"); 352 purple_debug_info("msim", "msim_markup_b_to_html: <b> w/o v attr\n");
353 /* TODO: log as unrecognized. */ 353 /* TODO: log as unrecognized. */
354 return; 354 return;
355 } 355 }
356 356
357 purple_color = msim_color_to_purple(color); 357 purple_color = msim_color_to_purple(color);
372 guint i; 372 guint i;
373 struct MSIM_EMOTICON *emote; 373 struct MSIM_EMOTICON *emote;
374 374
375 name = xmlnode_get_attrib(root, "n"); 375 name = xmlnode_get_attrib(root, "n");
376 if (!name) { 376 if (!name) {
377 purple_debug_info("msim", "msim_markup_i_to_html: <i> w/o n"); 377 purple_debug_info("msim", "msim_markup_i_to_html: <i> w/o n\n");
378 *begin = g_strdup(""); 378 *begin = g_strdup("");
379 *end = g_strdup(""); 379 *end = g_strdup("");
380 /* TODO: log as unrecognized */ 380 /* TODO: log as unrecognized */
381 return; 381 return;
382 } 382 }

mercurial