Mercurial > pidgin
diff src/protocols/oscar/oscar.h @ 13254:e9802db22b06
[gaim-migrate @ 15620]
This is the way we clean the code, clean the code, clean the code
This is the way we clean the code, clean the code, clean the code
So early in the morning
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 22:14:38 +0000 |
parents | 87a7c3077c19 |
children | 7ead7b8aea63 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.h Sun Feb 12 21:27:04 2006 +0000 +++ b/src/protocols/oscar/oscar.h Sun Feb 12 22:14:38 2006 +0000 @@ -479,9 +479,6 @@ /* ---- Internal Use Only ------------------------ */ - /* Connection information */ - OscarConnection *connlist; - /* * Transmit/receive queues. * @@ -542,6 +539,9 @@ int waiting_for_ack; } ssi; + /** A linked list containing OscarConnections. */ + GList *oscar_connections; + /** A linked list containing PeerConnections. */ GList *peer_connections; }; @@ -578,8 +578,7 @@ faim_export int aim_debugconn_sendconnect(OscarSession *sess, OscarConnection *conn); -/* the library should never call aim_conn_kill */ -faim_export void aim_conn_kill(OscarSession *sess, OscarConnection **deadconn); +void aim_conn_kill(OscarSession *sess, OscarConnection *deadconn); typedef int (*aim_rxcallback_t)(OscarSession *, FlapFrame *, ...); @@ -645,9 +644,9 @@ faim_export OscarConnection *aim_conn_findbygroup(OscarSession *sess, guint16 group); faim_export OscarSession *aim_conn_getsess(OscarConnection *conn); -faim_export void aim_conn_close(OscarConnection *deadconn); -faim_export OscarConnection *aim_newconn(OscarSession *, int type); -faim_export int aim_conn_in_sess(OscarSession *sess, OscarConnection *conn); +void oscar_connection_destroy(OscarSession *sess, OscarConnection *conn); +faim_export void aim_conn_close(OscarSession *sess, OscarConnection *conn); +faim_export OscarConnection *oscar_connection_new(OscarSession *, int type); faim_export int aim_conn_isready(OscarConnection *); faim_export int aim_conn_setstatus(OscarConnection *, int); faim_export int aim_conn_completeconnect(OscarSession *sess, OscarConnection *conn); @@ -658,7 +657,6 @@ faim_export OscarConnection *aim_getconn_type(OscarSession *, int type); faim_export OscarConnection *aim_getconn_type_all(OscarSession *, int type); -faim_export OscarConnection *aim_getconn_fd(OscarSession *, int fd); /* 0x0001 - family_oservice.c */ faim_export int aim_srv_setstatusmsg(OscarSession *sess, const char *msg);