Changeset 7151


Ignore:
Timestamp:
Nov 24, 2008, 8:17:36 PM (12 years ago)
Author:
charles
Message:

(libT) add #ifdefs to ensure that client apps don't #include private libtransmission headers.

Location:
trunk
Files:
37 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r7113 r7151  
    3232#include <libtransmission/bencode.h>
    3333#include <libtransmission/makemeta.h>
    34 #include <libtransmission/metainfo.h> /* tr_metainfoFree */
    3534#include <libtransmission/tr-getopt.h>
    3635#include <libtransmission/utils.h> /* tr_wait */
  • trunk/daemon/daemon.c

    r7113 r7151  
    2323#include <libtransmission/transmission.h>
    2424#include <libtransmission/bencode.h>
    25 #include <libtransmission/rpcimpl.h>
    2625#include <libtransmission/tr-getopt.h>
    2726#include <libtransmission/utils.h>
  • trunk/libtransmission/bandwidth.h

    r7147 r7151  
    1010 * $Id:$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_BANDWIDTH_H
  • trunk/libtransmission/blocklist.h

    r6949 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_BLOCKLIST_H
  • trunk/libtransmission/completion.h

    r6935 r7151  
    2525#ifndef TR_COMPLETION_H
    2626#define TR_COMPLETION_H
     27
     28#ifndef __TRANSMISSION__
     29#error only libtransmission should #include this header.
     30#endif
    2731
    2832#include "transmission.h"
  • trunk/libtransmission/crypto.h

    r6947 r7151  
    1313#ifndef TR_ENCRYPTION_H
    1414#define TR_ENCRYPTION_H
     15
     16#ifndef __TRANSMISSION__
     17#error only libtransmission should #include this header.
     18#endif
    1519
    1620#include <inttypes.h>
  • trunk/libtransmission/fastresume.h

    r6795 r7151  
    2323 *****************************************************************************/
    2424
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
     28
    2529#ifndef TR_FAST_RESUME_H
    2630#define TR_FAST_RESUME_H
  • trunk/libtransmission/fdlimit.h

    r7051 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#include "net.h"
  • trunk/libtransmission/handshake.h

    r6949 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_HANDSHAKE_H
  • trunk/libtransmission/inout.h

    r6842 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#ifndef TR_IO_H
  • trunk/libtransmission/list.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_LIST_H
  • trunk/libtransmission/metainfo.h

    r6937 r7151  
    2323 *****************************************************************************/
    2424
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
     28
    2529#ifndef TR_METAINFO_H
    2630#define TR_METAINFO_H 1
     
    3842                       const struct tr_benc * benc );
    3943
    40 void tr_metainfoFree( tr_info * inf );
    41 
    4244void tr_metainfoRemoveSaved( const tr_handle * handle,
    4345                             const tr_info *   info );
  • trunk/libtransmission/natpmp.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_NATPMP_H
  • trunk/libtransmission/net.h

    r7133 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#ifndef _TR_NET_H_
  • trunk/libtransmission/peer-common.h

    r7125 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_PEER_H
  • trunk/libtransmission/peer-io.h

    r7147 r7151  
    1111 */
    1212
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
     16
    1317#ifndef TR_PEER_IO_H
    1418#define TR_PEER_IO_H
  • trunk/libtransmission/peer-mgr-private.h

    r7125 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_PEER_MGR_PRIVATE_H
  • trunk/libtransmission/peer-mgr.h

    r7055 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_PEER_MGR_H
  • trunk/libtransmission/peer-msgs.h

    r6882 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_PEER_MSGS_H
  • trunk/libtransmission/port-forwarding.h

    r6795 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#ifndef SHARED_H
  • trunk/libtransmission/ptrarray.h

    r7136 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#ifndef _TR_PTR_ARRAY_H_
  • trunk/libtransmission/publish.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef _TR_PUBLISHER_H_
  • trunk/libtransmission/ratecontrol.h

    r7069 r7151  
    2323 *****************************************************************************/
    2424
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
     28
    2529#ifndef _TR_RATECONTROL_H_
    2630#define _TR_RATECONTROL_H_
  • trunk/libtransmission/resume.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_RESUME_H
  • trunk/libtransmission/rpc-server.h

    r6825 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_RPC_SERVER_H
  • trunk/libtransmission/session.h

    r7147 r7151  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
    2428
    2529#ifndef TR_INTERNAL_H
  • trunk/libtransmission/stats.h

    r7039 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_STATS_H
  • trunk/libtransmission/torrent.h

    r7147 r7151  
    2323 *****************************************************************************/
    2424
     25#ifndef __TRANSMISSION__
     26#error only libtransmission should #include this header.
     27#endif
     28
    2529#ifndef TR_TORRENT_H
    2630#define TR_TORRENT_H 1
  • trunk/libtransmission/tracker.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef _TR_TRACKER_H_
  • trunk/libtransmission/transmission.h

    r7136 r7151  
    807807                     tr_info           * setme_info_or_NULL );
    808808
     809/** @brief free a metainfo
     810    @see tr_torrentParse */
     811void tr_metainfoFree( tr_info * inf );
     812
     813
    809814/** Instantiate a single torrent.
    810815    @return 0 on success,
  • trunk/libtransmission/trevent.h

    r6811 r7151  
    1111 */
    1212
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
     16
    1317#ifndef TR_EVENT_H
     18#define TR_EVENT_H
    1419
    1520#include <stddef.h> /* size_t */
  • trunk/libtransmission/upnp.h

    r6795 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_UPNP_H
  • trunk/libtransmission/verify.h

    r6975 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_VERIFY_H
  • trunk/libtransmission/webseed.h

    r6882 r7151  
    1010 * $Id$
    1111 */
     12
     13#ifndef __TRANSMISSION__
     14#error only libtransmission should #include this header.
     15#endif
    1216
    1317#ifndef TR_WEBSEED_H
  • trunk/macosx/Controller.m

    r7114 r7151  
    4949#import "ExpandedPathToIconTransformer.h"
    5050#import "SpeedLimitToTurtleIconTransformer.h"
    51 #import "metainfo.h"
    5251#import "utils.h"
    5352
  • trunk/macosx/DragOverlayWindow.m

    r7013 r7151  
    2626#import "DragOverlayView.h"
    2727#import "NSStringAdditions.h"
    28 #import "metainfo.h"
    2928
    3029@implementation DragOverlayWindow
  • trunk/macosx/Torrent.m

    r7069 r7151  
    2828#import "NSApplicationAdditions.h"
    2929#import "NSStringAdditions.h"
    30 #import "metainfo.h"
    3130#import "utils.h" //tr_httpIsValidURL
    3231
Note: See TracChangeset for help on using the changeset viewer.