Add support to the GTK GUI for saving private copies of torrent files.

The prefs dialog for this sucks, but it should work.
This commit is contained in:
Josh Elsasser
2006-06-10 06:53:20 +00:00
parent 54bfe1f4a7
commit 0a4d97fdca
10 changed files with 343 additions and 118 deletions

View File

@@ -39,11 +39,13 @@
#define SHUTUP
#endif
typedef void (*add_torrents_func_t)(void*,void*,GList*,const char*,gboolean*);
typedef void (*add_torrents_func_t)(void*,void*,GList*,const char*,guint);
/* return number of items in array */
#define ALEN(a) (sizeof(a) / sizeof((a)[0]))
#define ISA(o, t) (g_type_is_a(G_OBJECT_TYPE(G_OBJECT(o)), (t)))
/* used for a callback function with a data parameter */
typedef void (*callbackfunc_t)(void*);
@@ -82,6 +84,18 @@ urldecode(const char *str, int len);
GList *
checkfilenames(int argc, char **argv);
/* returns the flag for an action string */
guint
addactionflag(const char *action);
/* returns the action string for a flag */
const char *
addactionname(guint flag);
/* turn a NULL-terminated list of void* arguments into a glist */
GList *
makeglist(void *ptr, ...);
#ifdef GTK_MAJOR_VERSION
/* if wind is NULL then you must call gtk_widget_show on the returned widget */