ReactOS  0.4.13-dev-101-g0ca4b50
dirhash.h
Go to the documentation of this file.
1 /*
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
7  */
8 
9 #ifndef _DIRHASH_H_
10 #define _DIRHASH_H_
11 
12 #define NUM_DIR_HASH_BUCKETS 1024
13 
15 {
16  struct target_file *next;
17  char *source_name;
18  char *target_name;
19 };
20 
22 {
23  unsigned int hashcode;
25 
29  struct target_file *head;
31  char *case_name;
32 };
33 
35 {
38 };
39 
40 void normalize_dirname(char *filename);
41 
42 struct target_dir_entry *
43 dir_hash_create_dir(struct target_dir_hash *dh, const char *casename, const char *targetnorm);
44 
45 struct target_file *
46 dir_hash_add_file(struct target_dir_hash *dh, const char *source, const char *target);
47 
48 void dir_hash_destroy(struct target_dir_hash *dh);
49 
50 #endif // _DIRHASH_H_
struct target_file * head
Definition: dirhash.h:29
void normalize_dirname(char *filename)
Definition: dirhash.c:63
unsigned int hashcode
Definition: dirhash.h:23
char * source_name
Definition: dirhash.h:17
struct target_file * dir_hash_add_file(struct target_dir_hash *dh, const char *source, const char *target)
Definition: dirhash.c:178
const char * filename
Definition: ioapi.h:135
struct target_dir_entry * child
Definition: dirhash.h:28
Definition: dirhash.h:21
char * case_name
Definition: dirhash.h:31
struct target_dir_entry * parent
Definition: dirhash.h:27
struct target_dir_entry * dir_hash_create_dir(struct target_dir_hash *dh, const char *casename, const char *targetnorm)
Definition: dirhash.c:118
struct target_dir_entry * next
Definition: dirhash.h:26
struct target_dir_entry * next_dir_hash_entry
Definition: dirhash.h:24
#define NUM_DIR_HASH_BUCKETS
Definition: dirhash.h:12
struct target_file * next
Definition: dirhash.h:16
GLenum target
Definition: glext.h:7315
char * normalized_name
Definition: dirhash.h:30
char * target_name
Definition: dirhash.h:18
void dir_hash_destroy(struct target_dir_hash *dh)
Definition: dirhash.c:235
struct target_dir_entry * buckets[NUM_DIR_HASH_BUCKETS]
Definition: dirhash.h:36