Changeset 1708 for branches/daemon/daemon/client.h
- Timestamp:
- Apr 12, 2007, 2:41:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/daemon/daemon/client.h
r1635 r1708 29 29 struct strlist; 30 30 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 * ); 31 struct cl_info 32 { 33 int id; 34 const char * name; 35 const char * hash; 36 int64_t size; 37 }; 38 39 struct 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 53 typedef void ( * cl_infofunc )( const struct cl_info * ); 54 typedef void ( * cl_statfunc )( const struct cl_stat * ); 36 55 37 56 int client_init ( struct event_base * ); … … 49 68 int client_stop ( size_t, const int * ); 50 69 int client_remove ( size_t, const int * ); 51 int client_list ( cl_ listfunc );70 int client_list ( cl_infofunc ); 52 71 int client_info ( cl_infofunc ); 53 int client_hashids ( cl_ hashfunc );72 int client_hashids ( cl_infofunc ); 54 73 int client_status ( cl_statfunc ); 55 74
Note: See TracChangeset
for help on using the changeset viewer.