comparison libpurple/protocols/msn/soap.h @ 20768:48ee7ec3426d

Cleanup the SOAP SSL flag to be a gboolean for clarity. Various sanity checks, sanity checking and I think a couple leak fixes too for the offline IM code.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 04 Oct 2007 01:12:08 +0000
parents 2c8c6d77f12c
children 29d8c86c14cd
comparison
equal deleted inserted replaced
20767:d91c76c76da8 20768:48ee7ec3426d
81 char *login_path; 81 char *login_path;
82 char *soap_action; 82 char *soap_action;
83 83
84 MsnSoapStep step; 84 MsnSoapStep step;
85 /*ssl connection?*/ 85 /*ssl connection?*/
86 guint ssl_conn; 86 gboolean ssl_conn;
87 /*normal connection*/ 87 /*normal connection*/
88 guint fd; 88 guint fd;
89 /*SSL connection*/ 89 /*SSL connection*/
90 PurpleSslConnection *gsc; 90 PurpleSslConnection *gsc;
91 /*ssl connection callback*/ 91 /*ssl connection callback*/
92 MsnSoapSslConnectCbFunction connect_cb; 92 MsnSoapSslConnectCbFunction connect_cb;
93 /*ssl error callback*/ 93 /*ssl error callback*/
133 void msn_soap_request_free(MsnSoapReq *request); 133 void msn_soap_request_free(MsnSoapReq *request);
134 void msn_soap_post_request(MsnSoapConn *soapconn,MsnSoapReq *request); 134 void msn_soap_post_request(MsnSoapConn *soapconn,MsnSoapReq *request);
135 void msn_soap_post_head_request(MsnSoapConn *soapconn); 135 void msn_soap_post_head_request(MsnSoapConn *soapconn);
136 136
137 /*new a soap conneciton */ 137 /*new a soap conneciton */
138 MsnSoapConn *msn_soap_new(MsnSession *session,gpointer data,int sslconn); 138 MsnSoapConn *msn_soap_new(MsnSession *session, gpointer data, gboolean ssl);
139 139
140 /*destroy */ 140 /*destroy */
141 void msn_soap_destroy(MsnSoapConn *soapconn); 141 void msn_soap_destroy(MsnSoapConn *soapconn);
142 142
143 /*init a soap conneciton */ 143 /*init a soap conneciton */
144 void msn_soap_init(MsnSoapConn *soapconn, char * host, int ssl, 144 void msn_soap_init(MsnSoapConn *soapconn, char * host, gboolean ssl,
145 MsnSoapSslConnectCbFunction connect_cb, 145 MsnSoapSslConnectCbFunction connect_cb,
146 MsnSoapSslErrorCbFunction error_cb); 146 MsnSoapSslErrorCbFunction error_cb);
147 void msn_soap_connect(MsnSoapConn *soapconn); 147 void msn_soap_connect(MsnSoapConn *soapconn);
148 void msn_soap_close(MsnSoapConn *soapconn); 148 void msn_soap_close(MsnSoapConn *soapconn);
149 149