summaryrefslogtreecommitdiff
path: root/src/upload.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/upload.h')
-rw-r--r--src/upload.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/upload.h b/src/upload.h
new file mode 100644
index 0000000..5dc17e2
--- /dev/null
+++ b/src/upload.h
@@ -0,0 +1,30 @@
+#ifndef UPLOAD_H_
+#define UPLOAD_H_
+
+#include <glib.h>
+
+#include "trg-client.h"
+#include "trg-main-window.h"
+
+typedef struct {
+ GSList *list; // list of filenames
+ trg_response *upload_response; // OR: a HTTP response containing a torrent
+ TrgClient *client;
+ gpointer cb_data;
+ TrgMainWindow *main_window; // a parent window to attach any error dialogs to
+ guint flags;
+ gchar *dir;
+ gint priority;
+ gint* file_priorities;
+ gint* file_wanted;
+ guint n_files;
+ gboolean extra_args;
+ guint progress_index;
+ GSourceFunc callback;
+ gchar *uid;
+} trg_upload;
+
+void trg_upload_free(trg_upload *upload);
+void trg_do_upload(trg_upload *upload);
+
+#endif