summaryrefslogtreecommitdiff
path: root/src/trg-file-parser.h
diff options
context:
space:
mode:
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);