Ignore:
Timestamp:
Apr 12, 2007, 2:41:19 PM (15 years ago)
Author:
joshe
Message:

Minor cleanup of client code.
Display ratio in transmission-remote -l output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/daemon/daemon/client.h

    r1635 r1708  
    2929struct strlist;
    3030
    31 typedef void ( * cl_listfunc )( int, const char *, const char * );
    32 typedef void ( * cl_infofunc )( int, const char *, int64_t );
    33 typedef void ( * cl_statfunc )( int, const char *, int64_t, int64_t, int64_t,
    34                                 int64_t, const char *, const char * );
    35 typedef void ( * cl_hashfunc )( int, const char * );
     31struct cl_info
     32{
     33    int          id;
     34    const char * name;
     35    const char * hash;
     36    int64_t      size;
     37};
     38
     39struct cl_stat
     40{
     41    int          id;
     42    const char * state;
     43    int64_t      eta;
     44    int64_t      done;
     45    int64_t      ratedown;
     46    int64_t      rateup;
     47    int64_t      totaldown;
     48    int64_t      totalup;
     49    const char * error;
     50    const char * errmsg;
     51};
     52
     53typedef void ( * cl_infofunc )( const struct cl_info * );
     54typedef void ( * cl_statfunc )( const struct cl_stat * );
    3655
    3756int  client_init     ( struct event_base * );
     
    4968int  client_stop     ( size_t, const int * );
    5069int  client_remove   ( size_t, const int * );
    51 int  client_list     ( cl_listfunc );
     70int  client_list     ( cl_infofunc );
    5271int  client_info     ( cl_infofunc );
    53 int  client_hashids  ( cl_hashfunc );
     72int  client_hashids  ( cl_infofunc );
    5473int  client_status   ( cl_statfunc );
    5574
Note: See TracChangeset for help on using the changeset viewer.