]> icculus.org git repositories - taylor/freespace2.git/blob - include/fhash.h
Initial revision
[taylor/freespace2.git] / include / fhash.h
1 /*
2  * $Logfile: /Freespace2/code/Localization/fhash.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  *
8  * $Log$
9  * Revision 1.1  2002/05/03 03:28:12  root
10  * Initial revision
11  *
12  * 
13  * 4     12/01/98 4:46p Dave
14  * Put in targa bitmap support (16 bit).
15  *  
16  * $NoKeywords: $
17  */
18
19 #ifndef _FRED_XSTR_HASH_TABLE_HEADER_FILE
20 #define _FRED_XSTR_HASH_TABLE_HEADER_FILE
21
22 // -----------------------------------------------------------------------------------------------
23 // HASH DEFINES/VARS
24 //
25
26
27 // -----------------------------------------------------------------------------------------------
28 // HASH FUNCTIONS
29 //
30
31 // initialize the hash table
32 void fhash_init();
33
34 // set the hash table to be active for parsing
35 void fhash_activate();
36
37 // set the hash table to be inactive for parsing
38 void fhash_deactivate();
39
40 // if the hash table is active
41 int fhash_active();
42
43 // flush out the hash table, freeing up everything
44 void fhash_flush();
45
46 // add a string with the given id# to the has table
47 void fhash_add_str(char *str, int id);
48
49 // determine if the passed string exists in the table
50 // returns : -2 if the string doesn't exit, or >= -1 as the string id # otherwise
51 int fhash_string_exists(char *str);
52
53 #endif
54