Changeset 2311


Ignore:
Timestamp:
Jul 9, 2007, 8:10:42 PM (15 years ago)
Author:
charles
Message:

clean up #includes a bit.

Location:
trunk/libtransmission
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r2302 r2311  
    2525#include <ctype.h> /* for isdigit */
    2626#include "transmission.h"
     27#include "bencode.h"
    2728
    2829/* setting to 1 to help expose bugs with tr_bencListAdd and tr_bencDictAdd */
  • trunk/libtransmission/choking.c

    r2231 r2311  
    2525#include <math.h>
    2626#include "transmission.h"
     27#include "choking.h"
    2728
    2829#ifndef HAVE_LRINTF
  • trunk/libtransmission/choking.h

    r261 r2311  
    2323 *****************************************************************************/
    2424
     25#ifndef TR_CHOKING_H
     26#define TR_CHOKING_H
     27
    2528typedef struct tr_choking_s tr_choking_t;
    2629
     
    2932void           tr_chokingPulse( tr_choking_t * );
    3033void           tr_chokingClose( tr_choking_t * );
     34
     35#endif /* TR_CHOKING_H */
  • trunk/libtransmission/http.c

    r2154 r2311  
    2424
    2525#include "transmission.h"
     26#include "http.h"
     27#include "net.h"
    2628
    2729#define HTTP_PORT               80      /* default http port 80 */
  • trunk/libtransmission/inout.c

    r2300 r2311  
    1010
    1111#include "transmission.h"
     12#include "fastresume.h"
     13#include "fdlimit.h"
    1214
    1315struct tr_io_s
     
    1517    tr_torrent_t * tor;
    1618};
    17 
    18 #include "fastresume.h"
    1919
    2020/****
  • trunk/libtransmission/internal.h

    r2202 r2311  
    132132typedef enum { TR_NET_OK, TR_NET_ERROR, TR_NET_WAIT } tr_tristate_t;
    133133
    134 #include "trcompat.h"
    135 #include "bsdqueue.h"
    136 #include "bsdtree.h"
    137134#include "platform.h"
    138 #include "bencode.h"
    139 #include "metainfo.h"
    140135#include "tracker.h"
    141 #include "fdlimit.h"
    142136#include "peer.h"
    143 #include "net.h"
    144137#include "inout.h"
    145138#include "ratecontrol.h"
    146 #include "clients.h"
    147 #include "choking.h"
    148 #include "natpmp.h"
    149 #include "upnp.h"
    150 #include "http.h"
    151 #include "xml.h"
    152139
    153140#ifndef TRUE
  • trunk/libtransmission/makemeta.c

    r2301 r2311  
    1717#include <stdio.h> /* FILE, snprintf, stderr */
    1818
     19#include "trcompat.h" /* for strlcpy */
    1920#include "transmission.h"
    2021#include "internal.h" /* for tr_torrent_t */
  • trunk/libtransmission/metainfo.c

    r2260 r2311  
    2424
    2525#include "transmission.h"
     26#include "bencode.h"
     27#include "http.h" /* for tr_httpParseUrl */
     28#include "metainfo.h"
    2629
    2730#define TORRENT_MAX_SIZE (5*1024*1024)
  • trunk/libtransmission/natpmp.c

    r1730 r2311  
    2424
    2525#include "transmission.h"
     26#include "natpmp.h"
     27#include "net.h"
    2628
    2729#define PMP_PORT                5351
  • trunk/libtransmission/net.c

    r1425 r2311  
    2424
    2525#include "transmission.h"
     26#include "fdlimit.h"
     27#include "net.h"
     28
    2629
    2730/***********************************************************************
  • trunk/libtransmission/peer.c

    r2306 r2311  
    2424
    2525#include "transmission.h"
     26#include "bencode.h"
     27#include "clients.h" /* for tr_clientForId() */
    2628#include "peertree.h"
    2729#include "list.h"
     30#include "net.h"
    2831
    2932/*****
  • trunk/libtransmission/shared.c

    r2280 r2311  
    2323 *****************************************************************************/
    2424
     25#include "transmission.h"
     26#include "choking.h"
     27#include "natpmp.h"
     28#include "net.h"
     29#include "peer.h"
    2530#include "shared.h"
    26 #include "peer.h"
     31#include "upnp.h"
    2732
    2833/* Maximum number of peers that we keep in our local list */
  • trunk/libtransmission/torrent.c

    r2274 r2311  
    2323 *****************************************************************************/
    2424
     25#include "trcompat.h" /* for strlcpy */
    2526#include "transmission.h"
     27#include "metainfo.h"
     28#include "net.h" /* tr_netNtop */
    2629#include "shared.h"
    2730
  • trunk/libtransmission/tracker.c

    r2220 r2311  
    2424
    2525#include "transmission.h"
     26#include "bencode.h"
     27#include "bsdqueue.h"
     28#include "http.h"
     29#include "net.h"
    2630#include "shared.h"
    2731
  • trunk/libtransmission/transmission.c

    r2309 r2311  
    2424
    2525#include "transmission.h"
     26#include "fdlimit.h"
     27#include "net.h"
    2628#include "shared.h"
    2729
  • trunk/libtransmission/trcompat.h

    r1750 r2311  
    2525#define TRCOMPAT_H
    2626
     27#include <stddef.h> /* for size_t */
     28
    2729#ifndef HAVE_STRLCPY
    2830size_t
  • trunk/libtransmission/upnp.c

    r2154 r2311  
    2424
    2525#include "transmission.h"
     26#include "http.h"
     27#include "net.h"
     28#include "upnp.h"
     29#include "xml.h"
    2630
    2731/* uncomment this to log requests and responses to ~/transmission-upnp.log */
  • trunk/libtransmission/xml.c

    r2154 r2311  
    2424
    2525#include "transmission.h"
     26#include "xml.h"
    2627
    2728/* http://www.w3.org/TR/2004/REC-xml-20040204/ */
Note: See TracChangeset for help on using the changeset viewer.