(RPC) add utility arguments for torrent-info: sort by (activity|age|id|name|progress|ratio|state|tracker), filter by (active|all|downloading|paused|seeding)

This commit is contained in:
Charles Kerr
2008-06-16 22:11:50 +00:00
parent de6a87bfc9
commit 518f277e9f
11 changed files with 389 additions and 39 deletions

View File

@@ -29,6 +29,7 @@
#include <stdarg.h>
#include <stddef.h> /* for size_t */
#include <stdio.h> /* FILE* */
#include <time.h> /* time_t* */
/***
****
@@ -219,6 +220,11 @@ void tr_set_compare( const void * a, size_t aCount,
int tr_compareUint16( uint16_t a, uint16_t b );
int tr_compareUint32( uint32_t a, uint32_t b );
int tr_compareUint64( uint64_t a, uint64_t b );
int tr_compareDouble( double a, double b );
int tr_compareTime( time_t a, time_t b );
int tr_strcmp( const void * a, const void * b );
int tr_strcasecmp( const char * a, const char * b );
void tr_sha1_to_hex( char * out, const uint8_t * sha1 );