root/src/noit_conf.h

Revision 0268e62cb80791dd94220cf6deec916656c7cddd, 0.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

update.. prep for config system and module loading

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  */
5
6 #ifndef _NOIT_CONF_H
7 #define _NOIT_CONF_H
8
9 #include "noit_defines.h"
10
11 typedef enum { true, false } noit_conf_boolean;
12
13 API_EXPORT(void) noit_conf_init();
14 API_EXPORT(int) noit_conf_load(const char *path);
15 API_EXPORT(int) noit_conf_save(const char *path);
16
17 API_EXPORT(int) noit_conf_get_string(const char *path, char **value);
18 API_EXPORT(int) noit_conf_get_int(const char *path, int *value);
19 API_EXPORT(int) noit_conf_get_float(const char *path, float *value);
20 API_EXPORT(int) noit_conf_get_boolean(const char *path, noit_conf_boolean *value);
21
22 API_EXPORT(int) noit_conf_set_string(const char *path, const char *value);
23 API_EXPORT(int) noit_conf_set_int(const char *path, int value);
24 API_EXPORT(int) noit_conf_set_float(const char *path, float value);
25 API_EXPORT(int) noit_conf_set_boolean(const char *path, noit_conf_boolean value);
26
27 #endif
Note: See TracBrowser for help on using the browser.