#1366: move tr_ctor{Set,Get}Save() to a package-private header.

This commit is contained in:
Charles Kerr 2008-10-20 16:00:14 +00:00
parent ea668ca9ff
commit 2adcf84784
3 changed files with 15 additions and 6 deletions

View File

@ -14,7 +14,8 @@
#include "transmission.h"
#include "bencode.h"
#include "platform.h"
#include "session.h" /* tr_sessionFindTorrentFile */
#include "session.h" /* tr_sessionFindTorrentFile() */
#include "torrent.h" /* tr_ctorGetSave() */
#include "utils.h"
#define DEFAULT_MAX_CONNECTED_PEERS 50

View File

@ -25,6 +25,19 @@
#ifndef TR_TORRENT_H
#define TR_TORRENT_H 1
/**
*** Package-visible ctor API
**/
void tr_ctorSetSave( tr_ctor * ctor,
int saveMetadataInOurTorrentsDir );
int tr_ctorGetSave( const tr_ctor * ctor );
/**
***
**/
/* just like tr_torrentSetFileDLs but doesn't trigger a fastresume save */
void tr_torrentInitFileDLs( tr_torrent * tor,
tr_file_index_t * files,

View File

@ -717,9 +717,6 @@ tr_ctor* tr_ctorNew( const tr_handle * handle );
void tr_ctorFree( tr_ctor * ctor );
void tr_ctorSetSave( tr_ctor * ctor,
int saveMetadataInOurTorrentsDir );
void tr_ctorSetDeleteSource( tr_ctor * ctor,
uint8_t doDelete );
@ -767,8 +764,6 @@ int tr_ctorGetDownloadDir( const tr_ctor * ctor,
int tr_ctorGetMetainfo( const tr_ctor * ctor,
const struct tr_benc ** setme );
int tr_ctorGetSave( const tr_ctor * ctor );
int tr_ctorGetDeleteSource( const tr_ctor * ctor,
uint8_t * setmeDoDelete );