diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-20 00:38:33 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2012-10-20 00:38:33 +0100 |
commit | 6042a54e827b36770e8989d9a8ba49a66ec6f846 (patch) | |
tree | 80fb3767c863d88f03d20f310762706664a3ef19 /protocols/oscar/conn.c | |
parent | 386042c08547bbe7f0b62ad97cdd8488cc13e97e (diff) |
Massive cleanup in OSCAR.
Diffstat (limited to 'protocols/oscar/conn.c')
-rw-r--r-- | protocols/oscar/conn.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/protocols/oscar/conn.c b/protocols/oscar/conn.c index 77ffd50f..a178761e 100644 --- a/protocols/oscar/conn.c +++ b/protocols/oscar/conn.c @@ -353,50 +353,6 @@ aim_conn_t *aim_getconn_type_all(aim_session_t *sess, int type) } /** - * aim_cloneconn - clone an aim_conn_t - * @sess: session containing parent - * @src: connection to clone - * - * A new connection is allocated, and the values are filled in - * appropriately. Note that this function sets the new connnection's - * ->priv pointer to be equal to that of its parent: only the pointer - * is copied, not the data it points to. - * - * This function returns a pointer to the new aim_conn_t, or %NULL on - * error - */ -aim_conn_t *aim_cloneconn(aim_session_t *sess, aim_conn_t *src) -{ - aim_conn_t *conn; - - if (!(conn = aim_conn_getnext(sess))) - return NULL; - - conn->fd = src->fd; - conn->type = src->type; - conn->subtype = src->subtype; - conn->seqnum = src->seqnum; - conn->priv = src->priv; - conn->internal = src->internal; - conn->lastactivity = src->lastactivity; - conn->forcedlatency = src->forcedlatency; - conn->sessv = src->sessv; - aim_clonehandlers(sess, conn, src); - - if (src->inside) { - /* - * XXX should clone this section as well, but since currently - * this function only gets called for some of that rendezvous - * crap, and not on SNAC connections, its probably okay for - * now. - * - */ - } - - return conn; -} - -/** * aim_newconn - Open a new connection * @sess: Session to create connection in * @type: Type of connection to create |