root/src/noit_conf.h

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

glue up some actual XML

  • 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 { noit_true, noit_false } noit_conf_boolean;
12 typedef void * noit_conf_section_t;
13
14 API_EXPORT(void) noit_conf_init();
15 API_EXPORT(int) noit_conf_load(const char *path);
16 API_EXPORT(int) noit_conf_save(const char *path);
17
18 API_EXPORT(noit_conf_section_t)
19   noit_conf_get_section(noit_conf_section_t section, const char *path);
20 API_EXPORT(noit_conf_section_t *)
21   noit_conf_get_sections(noit_conf_section_t section, const char *path,
22                          int *cnt);
23
24 API_EXPORT(int) noit_conf_get_string(noit_conf_section_t section,
25                                      const char *path, char **value);
26 API_EXPORT(int) noit_conf_get_stringbuf(noit_conf_section_t section,
27                                         const char *path, char *value, int len);
28 API_EXPORT(int) noit_conf_get_int(noit_conf_section_t section,
29                                   const char *path, int *value);
30 API_EXPORT(int) noit_conf_get_float(noit_conf_section_t section,
31                                     const char *path, float *value);
32 API_EXPORT(int) noit_conf_get_boolean(noit_conf_section_t section,
33                                       const char *path, noit_conf_boolean *value);
34
35 API_EXPORT(int) noit_conf_set_string(noit_conf_section_t section,
36                                      const char *path, const char *value);
37 API_EXPORT(int) noit_conf_set_int(noit_conf_section_t section,
38                                   const char *path, int value);
39 API_EXPORT(int) noit_conf_set_float(noit_conf_section_t section,
40                                     const char *path, float value);
41 API_EXPORT(int) noit_conf_set_boolean(noit_conf_section_t section,
42                                       const char *path, noit_conf_boolean value);
43
44 #endif
Note: See TracBrowser for help on using the browser.