pidgin.openq: 86bc43b8: Add some new function define

ccpaging at pidgin.im ccpaging at pidgin.im
Wed Dec 3 23:21:17 EST 2008


-----------------------------------------------------------------
Revision: 86bc43b8ba4801c699c6ee887ee9d1cdc48d5254
Ancestor: 12d73253070c057f8643c51582650e4bb450db2c
Author: ccpaging at pidgin.im
Date: 2008-11-19T08:35:32
Branch: im.pidgin.pidgin.openq
URL: http://d.pidgin.im/viewmtn/revision/info/86bc43b8ba4801c699c6ee887ee9d1cdc48d5254

Modified files:
        libpurple/protocols/qq/im.h

ChangeLog: 

Add some new function define

-------------- next part --------------
============================================================
--- libpurple/protocols/qq/im.h	6602112880f84a02253572906d7256af0b82c9dc
+++ libpurple/protocols/qq/im.h	c8c9a0ee6d50b0e3e0c92b0be78f247865b2c84e
@@ -33,7 +33,7 @@ enum {
 	QQ_MSG_TO_UNKNOWN = 0x000a,
 	QQ_MSG_SMS = 0x0014,	/* not sure */
 	QQ_MSG_NEWS = 0x0018,
-	QQ_MSG_UNKNOWN_QUN_IM = 0x0020,
+	QQ_MSG_QUN_IM_UNKNOWN = 0x0020,
 	QQ_MSG_ADD_TO_QUN = 0x0021,
 	QQ_MSG_DEL_FROM_QUN = 0x0022,
 	QQ_MSG_APPLY_ADD_TO_QUN = 0x0023,
@@ -49,17 +49,22 @@ typedef struct {
 };
 
 typedef struct {
+	guint8 attr;
+	guint8 rgb[3];
+	guint16 charset;
 	gchar *font;		/* Attension: font may NULL. font name is in QQ charset */
 	guint8 font_len;
-	guint8 attr;
-	guint8 rgb[3];
 } qq_im_format;
 
+gint qq_put_im_tail(guint8 *buf, qq_im_format *fmt);
+gint qq_get_im_tail(qq_im_format *fmt, guint8 *data, gint data_len);
+
+qq_im_format *qq_im_fmt_new(void);
+void qq_im_fmt_free(qq_im_format *fmt);
 qq_im_format *qq_im_fmt_new_by_purple(const gchar *msg);
+gchar *qq_im_fmt_to_purple(qq_im_format *fmt, gchar *text);
 gboolean qq_im_smiley_none(const gchar *msg);
-void qq_im_fmt_free(qq_im_format *fmt);
 GSList *qq_im_get_segments(gchar *msg_stripped, gboolean is_smiley_none);
-gint qq_put_im_tail(guint8 *buf, qq_im_format *fmt);
 
 void qq_got_message(PurpleConnection *gc, const gchar *msg);
 gint qq_send_im(PurpleConnection *gc, const gchar *who, const gchar *message, PurpleMessageFlags flags);
@@ -68,5 +73,4 @@ gchar *qq_emoticon_to_purple(gchar *text
 void qq_process_extend_im(PurpleConnection *gc, guint8 *data, gint len);
 
 gchar *qq_emoticon_to_purple(gchar *text);
-gchar *qq_format_to_purple(guint8 *data, gint len, gchar *text);
 #endif


More information about the Commits mailing list