changeset 13871:2be9dfa9569b

[gaim-migrate @ 16341] Fixed a bug that prevented libqq from being loaded as a plugin. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 26 Jun 2006 03:44:39 +0000
parents 983fd420e86b
children d1da27a099d2
files src/protocols/qq/buddy_status.c src/protocols/qq/im.c src/protocols/qq/qq_proxy.c src/protocols/qq/send_core.c src/protocols/qq/send_file.c
diffstat 5 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/qq/buddy_status.c	Mon Jun 26 02:58:54 2006 +0000
+++ b/src/protocols/qq/buddy_status.c	Mon Jun 26 03:44:39 2006 +0000
@@ -62,7 +62,7 @@
 
 /*****************************************************************************/
 // parse the data into qq_buddy_status
-static gint _qq_buddy_status_read(guint8 * data, guint8 ** cursor, gint len, qq_buddy_status * s) {
+gint _qq_buddy_status_read(guint8 * data, guint8 ** cursor, gint len, qq_buddy_status * s) {
 	gint bytes;
 
 	g_return_val_if_fail(data != NULL && *cursor != NULL && s != NULL, -1);
--- a/src/protocols/qq/im.c	Mon Jun 26 02:58:54 2006 +0000
+++ b/src/protocols/qq/im.c	Mon Jun 26 03:44:39 2006 +0000
@@ -48,7 +48,7 @@
 #define DEFAULT_FONT_NAME_LEN 	  4
 
 // a debug function
-static void _qq_show_packet(gchar * desc, gchar * buf, gint len);
+void _qq_show_packet(gchar * desc, gchar * buf, gint len);
 
 enum
 {
@@ -230,7 +230,7 @@
 
 /*****************************************************************************/
 // generate a md5 key using uid and session_key
-static gchar *_gen_session_md5(gint uid, gchar * session_key)
+gchar *_gen_session_md5(gint uid, gchar * session_key)
 {
 	gchar *src, md5_str[QQ_KEY_LENGTH];
 	guint8 *cursor;
--- a/src/protocols/qq/qq_proxy.c	Mon Jun 26 02:58:54 2006 +0000
+++ b/src/protocols/qq/qq_proxy.c	Mon Jun 26 03:44:39 2006 +0000
@@ -60,7 +60,7 @@
 }
 */
 
-static void _qq_show_packet(gchar * desc, gchar * buf, gint len)
+void _qq_show_packet(gchar * desc, gchar * buf, gint len)
 {
 	char buf1[4096], buf2[10];
 	int i;
@@ -108,7 +108,7 @@
 
 
 /*****************************************************************************/
-static gint _qq_fill_host(struct sockaddr_in * addr, const gchar * host, guint16 port)
+gint _qq_fill_host(struct sockaddr_in * addr, const gchar * host, guint16 port)
 {
 	if (!inet_aton(host, &(addr->sin_addr))) {
 		struct hostent *hp;
--- a/src/protocols/qq/send_core.c	Mon Jun 26 02:58:54 2006 +0000
+++ b/src/protocols/qq/send_core.c	Mon Jun 26 03:44:39 2006 +0000
@@ -37,7 +37,7 @@
 // create qq packet header with given sequence
 // return the number of bytes in header if succeeds
 // return -1 if there is any error
-static gint _create_packet_head_seq(guint8 * buf, guint8 ** cursor,
+gint _create_packet_head_seq(guint8 * buf, guint8 ** cursor,
 			     GaimConnection * gc, guint16 cmd, gboolean is_auto_seq, guint16 * seq)
 {
 	qq_data *qd;
@@ -77,7 +77,7 @@
 // for those need ack and resend no ack feed back from server
 // return number of bytes written to the socket,
 // return -1 if there is any error
-static gint _qq_send_packet(GaimConnection * gc, guint8 * buf, gint len, guint16 cmd)
+gint _qq_send_packet(GaimConnection * gc, guint8 * buf, gint len, guint16 cmd)
 {
 	qq_data *qd;
 	qq_sendpacket *p;
--- a/src/protocols/qq/send_file.c	Mon Jun 26 02:58:54 2006 +0000
+++ b/src/protocols/qq/send_file.c	Mon Jun 26 03:44:39 2006 +0000
@@ -140,7 +140,7 @@
 }
 */
 
-static gssize _qq_xfer_write(const guchar *buf, size_t len, GaimXfer *xfer) //gfhuang
+gssize _qq_xfer_write(const guchar *buf, size_t len, GaimXfer *xfer) //gfhuang
 {
 	return _qq_xfer_udp_send(buf, len, xfer);
 }