Lumiera  0.pre.03
»edit your freedom«
config-interface.h
Go to the documentation of this file.
1 /*
2  CONFIG-INTERFACE.h - Lumiera configuration interface
3 
4  Copyright (C)
5  2008, Christian Thaeter <ct@pipapo.org>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
28 #ifndef LUMIERA_CONFIG_INTERFACE_H
29 #define LUMIERA_CONFIG_INTERFACE_H
30 
31 
32 #include "common/interface.h"
33 
34 
35 
36 void
37 lumiera_config_interface_init (void);
38 
39 void
40 lumiera_config_interface_destroy (void);
41 
42 /*
43  Note that some interfaces return ints rather than underlying opaque pointers, this is then the truth value of the pointer
44  */
45 
46 LUMIERA_INTERFACE_DECLARE (lumieraorg_configuration, 0,
47  LUMIERA_INTERFACE_SLOT (int, load, (const char* file)),
48  LUMIERA_INTERFACE_SLOT (int, save, (void)),
49  LUMIERA_INTERFACE_SLOT (int, purge, (const char* filename)),
50  LUMIERA_INTERFACE_SLOT (void, dump, (FILE* out)),
51  LUMIERA_INTERFACE_SLOT (int, setdefault, (const char* line)),
52  LUMIERA_INTERFACE_SLOT (int, reset, (const char* key)),
53  LUMIERA_INTERFACE_SLOT (int, info, (const char* key, const char** filename, unsigned* line)),
54 
55  LUMIERA_INTERFACE_SLOT (const char*, wordlist_get_nth, (const char* key, unsigned nth, const char* delims)),
56  LUMIERA_INTERFACE_SLOT (int, wordlist_find, (const char* key, const char* value, const char* delims)),
57  LUMIERA_INTERFACE_SLOT (int, wordlist_replace,
58  (const char* key, const char* value, const char* subst1, const char* subst2, const char* delims)),
59  LUMIERA_INTERFACE_SLOT (int, wordlist_add, (const char* key, const char* value, const char* delims)),
60 
61  LUMIERA_INTERFACE_SLOT (int, link_get, (const char* key, const char** value)),
62  LUMIERA_INTERFACE_SLOT (int, link_set, (const char* key, const char** value)),
63  LUMIERA_INTERFACE_SLOT (int, number_get, (const char* key, long long* value)),
64  LUMIERA_INTERFACE_SLOT (int, number_set, (const char* key, long long* value)),
65  LUMIERA_INTERFACE_SLOT (int, real_get, (const char* key, long double* value)),
66  LUMIERA_INTERFACE_SLOT (int, real_set, (const char* key, long double* value)),
67  LUMIERA_INTERFACE_SLOT (int, string_get, (const char* key, const char** value)),
68  LUMIERA_INTERFACE_SLOT (int, string_set, (const char* key, const char** value)),
69  LUMIERA_INTERFACE_SLOT (int, wordlist_get, (const char* key, const char** value)),
70  LUMIERA_INTERFACE_SLOT (int, wordlist_set, (const char* key, const char** value)),
71  LUMIERA_INTERFACE_SLOT (int, word_get, (const char* key, const char** value)),
72  LUMIERA_INTERFACE_SLOT (int, word_set, (const char* key, const char** value)),
73  LUMIERA_INTERFACE_SLOT (int, bool_get, (const char* key, int* value)),
74  LUMIERA_INTERFACE_SLOT (int, bool_set, (const char* key, int* value)),
75  );
76 
77 
78 #endif
79 /*
80 // Local Variables:
81 // mode: C
82 // c-file-style: "gnu"
83 // indent-tabs-mode: nil
84 // End:
85 */
#define LUMIERA_INTERFACE_DECLARE(name, version,...)
Declare an interface.
Definition: interface.h:154
Lumiera interface macros and structures.