summaryrefslogtreecommitdiff
path: root/src/trg-file-parser.h
blob: 0958b9d4fc00481149ae9ba86c5bdd5af602e2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);