Changeset 310 for trunk/libtransmission/transmission.h
- Timestamp:
- Jun 9, 2006, 7:53:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/transmission.h
r264 r310 60 60 * tr_getPrefsDirectory 61 61 *********************************************************************** 62 * Returns the full path to the directory used by libtransmission to 63 * store the resume files. The string belongs to libtransmission, do 64 * not free it. 62 * Returns the full path to a directory which can be used to store 63 * preferences. The string belongs to libtransmission, do not free it. 65 64 **********************************************************************/ 66 65 char * tr_getPrefsDirectory(); … … 124 123 * valid torrent file, returns an handle and adds it to the list of 125 124 * torrents (but doesn't start it). Returns NULL and sets *error 126 * otherwise. 125 * otherwise. If the TR_FSAVEPRIVATE flag is passed then a private copy 126 * of the torrent file will be saved. 127 127 **********************************************************************/ 128 128 #define TR_EINVALID 1 … … 131 131 #define TR_EOTHER 666 132 132 tr_torrent_t * tr_torrentInit( tr_handle_t *, const char * path, 133 int * error ); 133 int flags, int * error ); 134 135 /*********************************************************************** 136 * tr_torrentInitSaved 137 *********************************************************************** 138 * Opens and parses a torrent file as with tr_torrentInit, only taking 139 * the hash string of a saved torrent file instead of a filename. There 140 * are currently no valid flags for this function. 141 **********************************************************************/ 142 tr_torrent_t * tr_torrentInitSaved( tr_handle_t *, const char * hashStr, 143 int flags, int * error ); 134 144 135 145 typedef struct tr_info_s tr_info_t; … … 202 212 203 213 /*********************************************************************** 214 * tr_torrentRemoveSaved 215 *********************************************************************** 216 * Removes the private saved copy of a torrent file for torrents which 217 * the TR_FSAVEPRIVATE flag is set. 218 **********************************************************************/ 219 void tr_torrentRemoveSaved( tr_torrent_t * ); 220 221 /*********************************************************************** 204 222 * tr_torrentClose 205 223 *********************************************************************** … … 208 226 **********************************************************************/ 209 227 void tr_torrentClose( tr_handle_t *, tr_torrent_t * ); 210 211 228 212 229 /*********************************************************************** … … 226 243 /* General info */ 227 244 uint8_t hash[SHA_DIGEST_LENGTH]; 245 char hashString[2*SHA_DIGEST_LENGTH+1]; 228 246 char name[MAX_PATH_LENGTH]; 247 248 /* Flags */ 249 #define TR_FSAVEPRIVATE 0x01 /* save a private copy of the torrent */ 250 int flags; 229 251 230 252 /* Tracker info */
Note: See TracChangeset
for help on using the changeset viewer.