Changeset 5608 for trunk/libtransmission/bencode.h
- Timestamp:
- Apr 13, 2008, 10:31:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/bencode.h
r5506 r5608 69 69 void tr_bencPrint( const tr_benc * ); 70 70 void tr_bencFree( tr_benc * ); 71 int tr_bencDictFindInt( tr_benc * dict, const char * key, int64_t * setme ); 72 int tr_bencDictFindStr( tr_benc * dict, const char * key, const char ** setme ); 73 int tr_bencDictFindList( tr_benc * dict, const char * key, tr_benc ** setme ); 74 int tr_bencDictFindDict( tr_benc * dict, const char * key, tr_benc ** setme ); 71 75 tr_benc * tr_bencDictFind( tr_benc * dict, const char * key ); 72 76 tr_benc * tr_bencDictFindType( tr_benc * dict, const char * key, int type ); … … 88 92 void _tr_bencInitStr( tr_benc * val, char * str, int len, int nofree ); 89 93 int tr_bencInitStrDup( tr_benc * val, const char * str ); 94 int tr_bencInitStrDupLen( tr_benc * val, const char * str, int len ); 90 95 void tr_bencInitInt( tr_benc * val, int64_t num ); 91 96 int tr_bencInitDict( tr_benc * val, int reserveCount ); … … 96 101 tr_benc * tr_bencListAdd( tr_benc * list ); 97 102 /* note: key must not be freed or modified while val is in use */ 98 tr_benc * tr_bencDictAdd( tr_benc * dict, const char * key ); 103 tr_benc * tr_bencDictAdd( tr_benc * dict, const char * key ); 104 tr_benc * tr_bencDictAddInt( tr_benc * dict, const char * key, int64_t val ); 105 tr_benc * tr_bencDictAddStr( tr_benc * dict, const char * key, const char * val ); 106 tr_benc * tr_bencDictAddList( tr_benc * dict, const char * key, int reserveCount ); 107 tr_benc * tr_bencDictAddDict( tr_benc * dict, const char * key, int reserveCount ); 99 108 100 109 char* tr_bencSave( const tr_benc * val, int * len ); 101 110 char* tr_bencSaveAsSerializedPHP( const tr_benc * top, int * len ); 102 111 103 104 int64_t tr_bencGetInt( const tr_benc * val ); 112 int tr_bencGetInt( const tr_benc * val, int64_t * setme ); 105 113 106 114 int tr_bencIsType( const tr_benc *, int type );
Note: See TracChangeset
for help on using the changeset viewer.