Mercurial > pidgin
comparison src/protocols/qq/qq_proxy.h @ 14021:ef8490f9e823
[gaim-migrate @ 16618]
Replaced all C++-style comments with C-style ones.
Cleaned up some comments and implemented a more consistent formatting scheme.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Wed, 02 Aug 2006 15:35:36 +0000 |
parents | 16102b9c5c4a |
children | 3cefea0bf4a2 |
comparison
equal
deleted
inserted
replaced
14020:13e7ba964993 | 14021:ef8490f9e823 |
---|---|
19 * You should have received a copy of the GNU General Public License | 19 * You should have received a copy of the GNU General Public License |
20 * along with this program; if not, write to the Free Software | 20 * along with this program; if not, write to the Free Software |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 */ | 22 */ |
23 | 23 |
24 // START OF FILE | |
25 /*****************************************************************************/ | |
26 | |
27 #ifndef _QQ_PROXY_H | 24 #ifndef _QQ_PROXY_H |
28 #define _QQ_PROXY_H | 25 #define _QQ_PROXY_H |
29 | 26 |
30 #include <glib.h> | 27 #include <glib.h> |
31 #include "proxy.h" // GaimAccount, GaimConnection | 28 #include "proxy.h" |
32 #include "qq.h" // qq_data | 29 #include "qq.h" |
33 | 30 |
34 #define QQ_CONNECT_STEPS 2 // steps in cnnection | 31 #define QQ_CONNECT_STEPS 2 /* steps in connection */ |
35 | 32 |
36 struct PHB { | 33 struct PHB { |
37 GaimInputFunction func; | 34 GaimInputFunction func; |
38 gpointer data; | 35 gpointer data; |
39 gchar *host; | 36 gchar *host; |
43 GaimAccount *account; | 40 GaimAccount *account; |
44 gint udpsock; | 41 gint udpsock; |
45 gpointer sockbuf; | 42 gpointer sockbuf; |
46 }; | 43 }; |
47 | 44 |
48 gint qq_proxy_read(qq_data * qd, guint8 * data, gint len); | 45 gint qq_proxy_read(qq_data *qd, guint8 *data, gint len); |
49 gint qq_proxy_write(qq_data * qd, guint8 * data, gint len); | 46 gint qq_proxy_write(qq_data *qd, guint8 *data, gint len); |
50 | 47 |
51 gint qq_connect(GaimAccount * account, const gchar * host, guint16 port, gboolean use_tcp, gboolean is_redirect); | 48 gint qq_connect(GaimAccount *account, const gchar *host, guint16 port, gboolean use_tcp, gboolean is_redirect); |
52 | 49 |
53 void qq_disconnect(GaimConnection * gc); | 50 void qq_disconnect(GaimConnection *gc); |
54 void _qq_show_packet(gchar * des, gchar * buf, gint len); | 51 void _qq_show_packet(gchar *des, gchar *buf, gint len); |
55 | 52 |
56 #endif //_QQ_PROXY_H | 53 #endif |
57 /*****************************************************************************/ | |
58 // END OF FILE |