]> icculus.org git repositories - taylor/freespace2.git/blob - include/osregistry.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / osregistry.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 #ifndef _FS2_REGISTRY_HEADER_FILE
10 #define _FS2_REGISTRY_HEADER_FILE
11
12 #include <stdlib.h>
13
14 // ------------------------------------------------------------------------------------------------------------
15 // REGISTRY DEFINES/VARS
16 //
17
18 // exectuable defines
19 extern const char *Osreg_company_name;
20 extern const char *Osreg_class_name;
21 extern const char *Osreg_app_name;
22 extern const char *Osreg_title;
23
24 // ------------------------------------------------------------------------------------------------------------
25 // REGISTRY FUNCTIONS
26 //
27
28
29 // initialize the registry. setup default keys to use
30 void os_init_registry_stuff();
31
32 // Writes a string to the registry
33 void os_config_write_string( const char *section, const char *name, const char *value );
34
35 // Writes an unsigned int to the INI file.  
36 void os_config_write_uint( const char *section, const char *name, unsigned int value );
37
38 // Reads a string from the INI file.  If default is passed,
39 // and the string isn't found, returns ptr to default otherwise
40 // returns NULL;    Copy the return value somewhere before
41 // calling os_read_string again, because it might reuse the
42 // same buffer.
43 const char * os_config_read_string( const char *section, const char *name, const char *default_value=NULL );
44
45 // Reads a string from the INI file.  Default_value must 
46 // be passed, and if 'name' isn't found, then returns default_value
47 unsigned int  os_config_read_uint( const char *section, const char *name, unsigned int default_value );
48
49 #endif
50