Mercurial > pidgin
comparison src/protocols/msn/servconn.h @ 8583:fc27237783ee
[gaim-migrate @ 9333]
Added Felipe Contreras's patch to reorganize and clean up the MSN
protocol plugin. Thanks, and once again, apologies for the what must have
seemed a never-ending delay.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 05 Apr 2004 07:11:24 +0000 |
parents | 06f57183e29f |
children | 1e211dde3cae |
comparison
equal
deleted
inserted
replaced
8582:d7c85220c685 | 8583:fc27237783ee |
---|---|
51 | 51 |
52 gboolean connected; | 52 gboolean connected; |
53 | 53 |
54 MsnHttpMethodData *http_data; | 54 MsnHttpMethodData *http_data; |
55 | 55 |
56 char *server; | 56 #if 0 |
57 /* shx: not used */ | |
58 char *host; | |
57 int port; | 59 int port; |
60 #endif | |
58 | 61 |
59 int fd; | 62 int fd; |
60 int inpa; | 63 int inpa; |
61 | 64 |
62 char *rxqueue; | 65 char *rxqueue; |
73 int multiline_len; | 76 int multiline_len; |
74 | 77 |
75 GHashTable *commands; | 78 GHashTable *commands; |
76 GHashTable *msg_types; | 79 GHashTable *msg_types; |
77 | 80 |
78 gboolean (*connect_cb)(gpointer, gint, GaimInputCondition); | 81 gboolean (*connect_cb)(MsnServConn *servconn); |
79 void (*failed_read_cb)(gpointer, gint, GaimInputCondition); | 82 void (*disconnect_cb)(MsnServConn *servconn); |
80 void (*login_cb)(gpointer, gint, GaimInputCondition); | |
81 | 83 |
82 void *data; | 84 void *data; |
83 }; | 85 }; |
84 | 86 |
85 MsnServConn *msn_servconn_new(MsnSession *session); | 87 MsnServConn *msn_servconn_new(MsnSession *session); |
86 | 88 |
87 void msn_servconn_destroy(MsnServConn *servconn); | 89 void msn_servconn_destroy(MsnServConn *servconn); |
88 | 90 |
89 gboolean msn_servconn_connect(MsnServConn *servconn); | 91 gboolean msn_servconn_connect(MsnServConn *servconn, const char *host, |
92 int port); | |
90 void msn_servconn_disconnect(MsnServConn *servconn); | 93 void msn_servconn_disconnect(MsnServConn *servconn); |
91 | 94 |
95 #if 0 | |
96 /* shx: not used */ | |
92 void msn_servconn_set_server(MsnServConn *servconn, const char *server, | 97 void msn_servconn_set_server(MsnServConn *servconn, const char *server, |
93 int port); | 98 int port); |
94 | 99 |
95 const char *msn_servconn_get_server(const MsnServConn *servconn); | 100 const char *msn_servconn_get_server(const MsnServConn *servconn); |
96 int msn_servconn_get_port(const MsnServConn *servconn); | 101 int msn_servconn_get_port(const MsnServConn *servconn); |
102 #endif | |
97 | 103 |
98 void msn_servconn_set_connect_cb(MsnServConn *servconn, | 104 void msn_servconn_set_connect_cb(MsnServConn *servconn, |
99 gboolean (*connect_cb)(gpointer, gint, GaimInputCondition)); | 105 gboolean (*connect_cb)(MsnServConn *servconn)); |
100 | 106 |
101 void msn_servconn_set_failed_read_cb(MsnServConn *servconn, | 107 void msn_servconn_set_disconnect_cb(MsnServConn *servconn, |
102 void (*failed_read_cb)(gpointer, gint, GaimInputCondition)); | 108 void (*disconnect_cb)(MsnServConn *servconn)); |
103 | 109 |
104 size_t msn_servconn_write(MsnServConn *servconn, const char *buf, | 110 size_t msn_servconn_write(MsnServConn *servconn, const char *buf, |
105 size_t size); | 111 size_t size); |
106 | 112 |
107 gboolean msn_servconn_send_command(MsnServConn *servconn, const char *command, | 113 gboolean msn_servconn_send_command(MsnServConn *servconn, const char *command, |