2010-10-01 20:22:51 +00:00
|
|
|
/*
|
|
|
|
* This file Copyright (C) 2007-2010 Mnemosyne LLC
|
|
|
|
*
|
|
|
|
* This file is licensed by the GPL version 2. Works owned by the
|
|
|
|
* Transmission project are granted a special exemption to clause 2(b)
|
|
|
|
* so that the bulk of its code can remain under the MIT license.
|
|
|
|
* This exemption does not extend to derived works not owned by
|
|
|
|
* the Transmission project.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2008-06-01 05:36:23 +00:00
|
|
|
#ifndef TRACKER_LIST_H
|
|
|
|
#define TRACKER_LIST_H
|
|
|
|
|
2008-10-31 18:25:21 +00:00
|
|
|
#include <gtk/gtk.h>
|
2009-04-24 01:37:04 +00:00
|
|
|
#include <libtransmission/transmission.h>
|
2008-06-01 05:36:23 +00:00
|
|
|
|
2009-04-24 01:37:04 +00:00
|
|
|
void tracker_list_set_torrent( GtkWidget*, int torrentId );
|
|
|
|
|
|
|
|
void tracker_list_clear( GtkWidget* );
|
|
|
|
|
|
|
|
GtkWidget* tracker_list_new( tr_session*, int torrentId, gboolean isNew );
|
2008-06-02 15:07:26 +00:00
|
|
|
|
2008-06-01 05:36:23 +00:00
|
|
|
/**
|
|
|
|
* @return an array of tr_tracker_info's. It's the caller's responsibility
|
|
|
|
* to g_free() every announce in the array, then the array itself.
|
|
|
|
*/
|
|
|
|
tr_tracker_info* tracker_list_get_trackers( GtkWidget * list,
|
2008-10-02 15:29:45 +00:00
|
|
|
int * trackerCount );
|
|
|
|
|
|
|
|
void tracker_list_add_trackers( GtkWidget * list,
|
|
|
|
const tr_tracker_info * trackers,
|
|
|
|
int trackerCount );
|
2008-06-01 05:36:23 +00:00
|
|
|
|
2009-04-24 01:37:04 +00:00
|
|
|
|
2008-06-01 05:36:23 +00:00
|
|
|
#endif
|