Changeset 6042a54 for protocols/oscar/conn.c
- Timestamp:
- 2012-10-19T23:38:33Z (11 years ago)
- Branches:
- master
- Children:
- 509cf60
- Parents:
- 386042c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/conn.c
r386042c r6042a54 351 351 352 352 return cur; 353 }354 355 /**356 * aim_cloneconn - clone an aim_conn_t357 * @sess: session containing parent358 * @src: connection to clone359 *360 * A new connection is allocated, and the values are filled in361 * appropriately. Note that this function sets the new connnection's362 * ->priv pointer to be equal to that of its parent: only the pointer363 * is copied, not the data it points to.364 *365 * This function returns a pointer to the new aim_conn_t, or %NULL on366 * error367 */368 aim_conn_t *aim_cloneconn(aim_session_t *sess, aim_conn_t *src)369 {370 aim_conn_t *conn;371 372 if (!(conn = aim_conn_getnext(sess)))373 return NULL;374 375 conn->fd = src->fd;376 conn->type = src->type;377 conn->subtype = src->subtype;378 conn->seqnum = src->seqnum;379 conn->priv = src->priv;380 conn->internal = src->internal;381 conn->lastactivity = src->lastactivity;382 conn->forcedlatency = src->forcedlatency;383 conn->sessv = src->sessv;384 aim_clonehandlers(sess, conn, src);385 386 if (src->inside) {387 /*388 * XXX should clone this section as well, but since currently389 * this function only gets called for some of that rendezvous390 * crap, and not on SNAC connections, its probably okay for391 * now.392 *393 */394 }395 396 return conn;397 353 } 398 354
Note: See TracChangeset
for help on using the changeset viewer.