diff libpurple/protocols/oscar/odc.c @ 30814:a347a4cd1caf

Moved encoding-related functions to a separate file, renamed some of them, and updated comments.
author ivan.komarov@soc.pidgin.im
date Sat, 24 Jul 2010 17:32:00 +0000
parents 8a90bd0a3b79
children 5661f30d1b8e
line wrap: on
line diff
--- a/libpurple/protocols/oscar/odc.c	Mon Jul 19 22:05:38 2010 +0000
+++ b/libpurple/protocols/oscar/odc.c	Sat Jul 24 17:32:00 2010 +0000
@@ -19,6 +19,7 @@
 */
 
 /* From the oscar PRPL */
+#include "encoding.h"
 #include "oscar.h"
 #include "peer.h"
 
@@ -366,7 +367,7 @@
 		g_datalist_clear(&attributes);
 
 		/* Append the message up to the tag */
-		utf8 = purple_plugin_oscar_decode_im_part(account, conn->bn,
+		utf8 = oscar_decode_im_part(account, conn->bn,
 				encoding, 0x0000, tmp, start - tmp);
 		if (utf8 != NULL) {
 			g_string_append(newmsg, utf8);
@@ -386,7 +387,7 @@
 	/* Append any remaining message data */
 	if (tmp <= msgend)
 	{
-		utf8 = purple_plugin_oscar_decode_im_part(account, conn->bn,
+		utf8 = oscar_decode_im_part(account, conn->bn,
 				encoding, 0x0000, tmp, msgend - tmp);
 		if (utf8 != NULL) {
 			g_string_append(newmsg, utf8);