comparison src/sslconn.c @ 14179:db2d55d332d6

[gaim-migrate @ 16829] Just rename connect to connectfunc. This is what it was like before my changes. Now I know why! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 18 Aug 2006 05:58:17 +0000
parents 8160857cd958
children
comparison
equal deleted inserted replaced
14178:00f4e261e5f0 14179:db2d55d332d6
44 if (plugin != NULL && !gaim_plugin_is_loaded(plugin)) 44 if (plugin != NULL && !gaim_plugin_is_loaded(plugin))
45 gaim_plugin_load(plugin); 45 gaim_plugin_load(plugin);
46 46
47 ops = gaim_ssl_get_ops(); 47 ops = gaim_ssl_get_ops();
48 if ((ops == NULL) || (ops->init == NULL) || (ops->uninit == NULL) || 48 if ((ops == NULL) || (ops->init == NULL) || (ops->uninit == NULL) ||
49 (ops->connect == NULL) || (ops->close == NULL) || 49 (ops->connectfunc == NULL) || (ops->close == NULL) ||
50 (ops->read == NULL) || (ops->write == NULL)) 50 (ops->read == NULL) || (ops->write == NULL))
51 { 51 {
52 return FALSE; 52 return FALSE;
53 } 53 }
54 54
85 } 85 }
86 86
87 gsc->fd = source; 87 gsc->fd = source;
88 88
89 ops = gaim_ssl_get_ops(); 89 ops = gaim_ssl_get_ops();
90 (ops->connect)(gsc); 90 ops->connectfunc(gsc);
91 } 91 }
92 92
93 GaimSslConnection * 93 GaimSslConnection *
94 gaim_ssl_connect(GaimAccount *account, const char *host, int port, 94 gaim_ssl_connect(GaimAccount *account, const char *host, int port,
95 GaimSslInputFunction func, GaimSslErrorFunction error_func, 95 GaimSslInputFunction func, GaimSslErrorFunction error_func,
175 gsc->connect_cb = func; 175 gsc->connect_cb = func;
176 gsc->error_cb = error_func; 176 gsc->error_cb = error_func;
177 gsc->fd = fd; 177 gsc->fd = fd;
178 178
179 ops = gaim_ssl_get_ops(); 179 ops = gaim_ssl_get_ops();
180 (ops->connect)(gsc); 180 ops->connectfunc(gsc);
181 181
182 return (GaimSslConnection *)gsc; 182 return (GaimSslConnection *)gsc;
183 } 183 }
184 184
185 void 185 void