Changeset 320 for trunk/gtk/tr_torrent.h


Ignore:
Timestamp:
Jun 10, 2006, 6:53:20 AM (16 years ago)
Author:
joshe
Message:

Add support to the GTK GUI for saving private copies of torrent files.
The prefs dialog for this sucks, but it should work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr_torrent.h

    r269 r320  
    5757  char *dir;
    5858  gboolean closing;
     59  char *delfile;
    5960  gboolean disposed;
    6061};
     
    7778tr_torrent_info(TrTorrent *tor);
    7879
     80/* explicitly start the torrent running or paused */
     81#define TR_TORNEW_PAUSED        0x01
     82#define TR_TORNEW_RUNNING       0x02
     83/* load a saved torrent file, torrent param is hash instead of filename */
     84#define TR_TORNEW_LOAD_SAVED    0x04
     85/* save a private copy of the torrent file */
     86#define TR_TORNEW_SAVE_COPY     0x08
     87/* save a private copy of the torrent file and remove the original */
     88#define TR_TORNEW_SAVE_MOVE     0x10
     89
    7990TrTorrent *
    8091tr_torrent_new(GObject *backend, const char *torrent, const char *dir,
    81                gboolean *paused, char **err);
     92               guint flags, char **err);
    8293
    8394TrTorrent *
     
    93104void
    94105tr_torrent_get_state(TrTorrent *tor, benc_val_t *state);
     106void
     107tr_torrent_state_saved(TrTorrent *tor);
    95108#endif
    96109
Note: See TracChangeset for help on using the changeset viewer.