Ignore:
Timestamp:
Nov 19, 2007, 5:29:17 PM (15 years ago)
Author:
charles
Message:

added tr_global_stats prototypes for BentMyWookie?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r3872 r3885  
    9797 * tr_init
    9898 ***********************************************************************
    99  * Initializes a libtransmission instance. Returns a obscure handle to
    100  * be passed to all functions below. The tag argument is a short string
     99 * Initializes a libtransmission instance and returns an opaque handle
     100 * to be passed to functions below. The tag argument is a short string
    101101 * unique to the program invoking tr_init(), it is currently used as
    102102 * part of saved torrent files' names to prevent one frontend from
     
    109109tr_handle * tr_init( const char * tag );
    110110
    111 typedef struct tr_tracker_info tr_tracker_info;
     111/* shut down a libtransmission instance created by tr_init(). */
     112void tr_close( tr_handle * );
     113
     114
     115/**
     116***
     117**/
     118
     119typedef struct tr_global_stats
     120{
     121    uint64_t downloadedGigs;  /* total down / GiB */
     122    uint64_t downloadedBytes; /* total down % GiB */
     123    uint64_t uploadedGigs;    /* total up / GiB */
     124    uint64_t uploadedBytes;   /* total up % GiB */
     125    double ratio;             /* total up / total down */
     126    uint64_t filesAdded;      /* number of files added */
     127    uint64_t sessionCount;    /* program started N times */
     128}
     129tr_global_stats;
     130
     131void tr_getGlobalStats( const tr_handle * handle, tr_global_stats * setme );
     132
    112133
    113134/**
     
    292313 **********************************************************************/
    293314void tr_torrentRates( tr_handle *, float *, float * );
    294 
    295 /***********************************************************************
    296  * tr_close
    297  ***********************************************************************
    298  * Frees memory allocated by tr_init.
    299  **********************************************************************/
    300 void tr_close( tr_handle * );
    301315
    302316
     
    555569tr_piece;
    556570   
     571typedef struct tr_tracker_info
     572{
     573    char * address;
     574    int    port;
     575    char * announce;
     576    char * scrape;
     577}
     578tr_tracker_info;
     579
    557580struct tr_info
    558581{
     
    724747};
    725748
    726 struct tr_tracker_info
    727 {
    728     char * address;
    729     int    port;
    730     char * announce;
    731     char * scrape;
    732 };
    733 
    734749struct tr_handle_status
    735750{
Note: See TracChangeset for help on using the changeset viewer.