]> infiniteadaptability.org Git - seeder/commitdiff
...
authoralex <[email protected]>
Wed, 8 Sep 2021 23:37:02 +0000 (16:37 -0700)
committeralex <[email protected]>
Wed, 8 Sep 2021 23:37:02 +0000 (16:37 -0700)
inc/torrent.h
src/add.c

index 19963b0ca44caaf166b9898da7570eb85048e1db..855f625030474713a33790c569c6aca4fe6a03c2 100644 (file)
@@ -6,12 +6,14 @@
 #include<string.h>
 
 #include<file.h>
+#include<hashmap.h>
 #include<tree.h>
 
 struct torrent {
        char *root;
        char *name;
        struct tree *file_tree;
+       struct hash_map *files;
 };
 
 extern struct torrent **torrents;
index d65c8ab1971f660167fd84e814695c969c698405..9b43c1d0091c7e45b66dbf3456752a5b2eeaa173 100644 (file)
--- a/src/add.c
+++ b/src/add.c
@@ -12,6 +12,8 @@
 //     return 1;
 //}
 
+static struct hash_map *add_queue;
+
 void *add(void *p) {
        return NULL;
 }