Ignore:
Timestamp:
Mar 31, 2011, 4:41:52 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) copyediting: peer-io's "EncryptionMode?" type had a name too similar to tr_encryption_mode... rename it to reduce potential confusion

File:
1 edited

Legend:

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

    r12229 r12282  
    4848ReadState;
    4949
     50typedef enum
     51{
     52    /* these match the values in MSE's crypto_select */
     53    PEER_ENCRYPTION_NONE  = ( 1 << 0 ),
     54    PEER_ENCRYPTION_RC4   = ( 1 << 1 )
     55}
     56tr_encryption_type;
     57
     58
    5059typedef ReadState ( *tr_can_read_cb  )( struct tr_peerIo * io,
    5160                                        void             * user_data,
     
    7786    int                   magicNumber;
    7887
    79     uint32_t              encryptionMode;
     88    tr_encryption_type    encryption_type;
    8089    bool                  isSeed;
    8190
     
    279288}
    280289
    281 typedef enum
    282 {
    283     /* these match the values in MSE's crypto_select */
    284     PEER_ENCRYPTION_NONE  = ( 1 << 0 ),
    285     PEER_ENCRYPTION_RC4   = ( 1 << 1 )
    286 }
    287 EncryptionMode;
    288 
    289 void tr_peerIoSetEncryption( tr_peerIo * io, uint32_t encryptionMode );
     290void tr_peerIoSetEncryption( tr_peerIo * io, tr_encryption_type encryption_type );
    290291
    291292static inline bool
    292293tr_peerIoIsEncrypted( const tr_peerIo * io )
    293294{
    294     return ( io != NULL ) && ( io->encryptionMode == PEER_ENCRYPTION_RC4 );
     295    return ( io != NULL ) && ( io->encryption_type == PEER_ENCRYPTION_RC4 );
    295296}
    296297
Note: See TracChangeset for help on using the changeset viewer.