Ignore:
Timestamp:
Apr 13, 2008, 10:31:07 PM (14 years ago)
Author:
charles
Message:

#394: resume files should use original name instead of hash name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.h

    r5506 r5608  
    6969void      tr_bencPrint( const tr_benc * );
    7070void      tr_bencFree( tr_benc * );
     71int       tr_bencDictFindInt( tr_benc * dict, const char * key, int64_t * setme );
     72int       tr_bencDictFindStr( tr_benc * dict, const char * key, const char ** setme );
     73int       tr_bencDictFindList( tr_benc * dict, const char * key, tr_benc ** setme );
     74int       tr_bencDictFindDict( tr_benc * dict, const char * key, tr_benc ** setme );
    7175tr_benc * tr_bencDictFind( tr_benc * dict, const char * key );
    7276tr_benc * tr_bencDictFindType( tr_benc * dict, const char * key, int type );
     
    8892void   _tr_bencInitStr( tr_benc * val, char * str, int len, int nofree );
    8993int    tr_bencInitStrDup( tr_benc * val, const char * str );
     94int    tr_bencInitStrDupLen( tr_benc * val, const char * str, int len );
    9095void   tr_bencInitInt( tr_benc * val, int64_t num );
    9196int   tr_bencInitDict( tr_benc * val, int reserveCount );
     
    96101tr_benc    * tr_bencListAdd( tr_benc  * list );
    97102/* note: key must not be freed or modified while val is in use */
    98 tr_benc    * tr_bencDictAdd( tr_benc  * dict, const char * key );
     103tr_benc    * tr_bencDictAdd( tr_benc * dict, const char * key );
     104tr_benc    * tr_bencDictAddInt( tr_benc * dict, const char * key, int64_t val );
     105tr_benc    * tr_bencDictAddStr( tr_benc * dict, const char * key, const char * val );
     106tr_benc    * tr_bencDictAddList( tr_benc * dict, const char * key, int reserveCount );
     107tr_benc    * tr_bencDictAddDict( tr_benc * dict, const char * key, int reserveCount );
    99108
    100109char*  tr_bencSave( const tr_benc * val, int * len );
    101110char*   tr_bencSaveAsSerializedPHP( const tr_benc * top, int * len );
    102111
    103 
    104 int64_t tr_bencGetInt( const tr_benc * val );
     112int tr_bencGetInt( const tr_benc * val, int64_t * setme );
    105113
    106114int tr_bencIsType( const tr_benc *, int type );
Note: See TracChangeset for help on using the changeset viewer.