6 #define DIRSEP_CHAR '\\'
9 #define DIRSEP_CHAR '/'
14 typedef struct slist_s slist_t
;
20 /* list of string lists */
22 typedef struct llist_s llist_t
;
30 typedef struct flist_s flist_t
;
40 unsigned int piece_length
; /* piece length */
41 llist_t
*announce_list
; /* announce URLs */
42 char *comment
; /* optional comment */
43 const char *torrent_name
; /* name of torrent (name of directory) */
44 char *metainfo_file_path
; /* absolute path to the metainfo file */
45 slist_t
*web_seed_list
; /* web seed URLs */
46 int target_is_directory
; /* target is a directory */
47 int no_creation_date
; /* don't write the creation date */
48 int private; /* set the private flag */
49 int verbose
; /* be verbose */
51 unsigned int threads
; /* number of threads used for hashing */
54 /* information calculated by read_dir() */
55 off_t size
; /* combined size of all files */
56 flist_t
*file_list
; /* list of files and their sizes */
57 unsigned int pieces
; /* number of pieces */
60 #endif /* _MKTORRENT_H */