]> icculus.org git repositories - taylor/freespace2.git/blob - include/fhash.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / fhash.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell 
5  * or otherwise commercially exploit the source or things you created based on
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Localization/fhash.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  *
16  * $Log$
17  * Revision 1.2  2002/06/09 04:41:13  relnev
18  * added copyright header
19  *
20  * Revision 1.1.1.1  2002/05/03 03:28:12  root
21  * Initial import.
22  *
23  * 
24  * 4     12/01/98 4:46p Dave
25  * Put in targa bitmap support (16 bit).
26  *  
27  * $NoKeywords: $
28  */
29
30 #ifndef _FRED_XSTR_HASH_TABLE_HEADER_FILE
31 #define _FRED_XSTR_HASH_TABLE_HEADER_FILE
32
33 // -----------------------------------------------------------------------------------------------
34 // HASH DEFINES/VARS
35 //
36
37
38 // -----------------------------------------------------------------------------------------------
39 // HASH FUNCTIONS
40 //
41
42 // initialize the hash table
43 void fhash_init();
44
45 // set the hash table to be active for parsing
46 void fhash_activate();
47
48 // set the hash table to be inactive for parsing
49 void fhash_deactivate();
50
51 // if the hash table is active
52 int fhash_active();
53
54 // flush out the hash table, freeing up everything
55 void fhash_flush();
56
57 // add a string with the given id# to the has table
58 void fhash_add_str(char *str, int id);
59
60 // determine if the passed string exists in the table
61 // returns : -2 if the string doesn't exit, or >= -1 as the string id # otherwise
62 int fhash_string_exists(char *str);
63
64 #endif
65