summaryrefslogtreecommitdiff
path: root/src/trg-file-parser.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-08 14:24:25 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-04-08 14:24:25 +0000
commit070688006ac7cea1639f38c0bb270c191f7dc38f (patch)
tree258fbf88a6f28a86bef83553e2430e950d972793 /src/trg-file-parser.h
parentf74c398577f66488cf5c420f5df318ab801117cc (diff)
a torrent add dialog based off Transmission GTK (different bencode+action implementation) which allows you to set file priorities, torrent priority, directory in advance. probably needs a little more work.
Diffstat (limited to 'src/trg-file-parser.h')
-rw-r--r--src/trg-file-parser.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/trg-file-parser.h b/src/trg-file-parser.h
new file mode 100644
index 0000000..0958b9d
--- /dev/null
+++ b/src/trg-file-parser.h
@@ -0,0 +1,15 @@
+typedef struct {
+ char *name;
+ gint64 length;
+ GList *children;
+ guint index;
+} trg_torrent_file_node;
+
+typedef struct {
+ char *name;
+ trg_torrent_file_node *top_node;
+ gint64 total_length;
+} trg_torrent_file;
+
+void trg_torrent_file_free(trg_torrent_file * t);
+trg_torrent_file *trg_parse_torrent_file(char *filename);