2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS CD-ROM Maker
4 * FILE: tools/cdmake/dirhash.h
5 * PURPOSE: CD-ROM Premastering Utility - Directory names hashing
6 * PROGRAMMERS: Art Yerkes
12 #define NUM_DIR_HASH_BUCKETS 1024
16 struct target_file
*next
;
21 struct target_dir_entry
23 unsigned int hashcode
;
24 struct target_dir_entry
*next_dir_hash_entry
;
26 struct target_dir_entry
*next
;
27 struct target_dir_entry
*parent
;
28 struct target_dir_entry
*child
;
29 struct target_file
*head
;
30 char *normalized_name
;
34 struct target_dir_hash
36 struct target_dir_entry
*buckets
[NUM_DIR_HASH_BUCKETS
];
37 struct target_dir_entry root
;
40 void normalize_dirname(char *filename
);
42 struct target_dir_entry
*
43 dir_hash_create_dir(struct target_dir_hash
*dh
, const char *casename
, const char *targetnorm
);
46 dir_hash_add_file(struct target_dir_hash
*dh
, const char *source
, const char *target
);
48 void dir_hash_destroy(struct target_dir_hash
*dh
);