Ignore:
Timestamp:
Apr 17, 2011, 5:22:50 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) more heap pruning: use composition rather than aggregation for the tr_crypto object owned by tr_peerIo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-io.h

    r12343 r12365  
    2626#include "transmission.h"
    2727#include "bandwidth.h"
     28#include "crypto.h"
    2829#include "net.h" /* tr_address */
    2930#include "utils.h" /* tr_time() */
     
    3132struct evbuffer;
    3233struct tr_bandwidth;
    33 struct tr_crypto;
    3434struct tr_datatype;
    3535struct tr_peerIo;
     
    108108
    109109    struct tr_bandwidth   bandwidth;
    110     struct tr_crypto    * crypto;
     110    tr_crypto            crypto;
    111111
    112112    struct evbuffer     * inbuf;
     
    283283**/
    284284
    285 static inline struct tr_crypto * tr_peerIoGetCrypto( tr_peerIo * io )
    286 {
    287     return io->crypto;
     285static inline tr_crypto * tr_peerIoGetCrypto( tr_peerIo * io )
     286{
     287    return &io->crypto;
    288288}
    289289
Note: See TracChangeset for help on using the changeset viewer.