Changeset 7425


Ignore:
Timestamp:
Dec 17, 2008, 1:39:24 AM (12 years ago)
Author:
jhujhiti
Message:

(trunk libT) use an enum tr_address_type instead of uint8_t for tr_address.type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.h

    r7413 r7425  
    5656struct tr_session;
    5757
    58 #define TR_AF_INET  0
    59 #define TR_AF_INET6 1
     58typedef enum tr_address_type
     59{
     60    TR_AF_INET,
     61    TR_AF_INET6
     62} tr_address_type;
    6063
    61 typedef struct tr_address {
    62     uint8_t type;
     64typedef struct tr_address
     65{
     66    tr_address_type type;
    6367    union {
    6468        /* The order here is important for tr_in{,6}addr_any initialization,
Note: See TracChangeset for help on using the changeset viewer.