summaryrefslogtreecommitdiffstats
path: root/ini/ini_defines.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2010-07-28 16:37:14 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-09-22 14:57:53 -0400
commit85c26abd9dabc0f192fe9bb695c3aac1493a9e34 (patch)
tree65e23761b5b8036f54fc6b959d27d25614f2df05 /ini/ini_defines.h
parentfed9fb7462a5ee8afcae8741cb66d8167f9372b1 (diff)
downloadding-libs-85c26abd9dabc0f192fe9bb695c3aac1493a9e34.tar.gz
ding-libs-85c26abd9dabc0f192fe9bb695c3aac1493a9e34.tar.xz
ding-libs-85c26abd9dabc0f192fe9bb695c3aac1493a9e34.zip
Fixes to the value object
* Removed the annoyong type casting in the serialization since there is a new function in the simplebuffer to addstring. * Changed the serialization code to not create simple buffer object but rather add to the passed in one. * Added serialization of the value that stores section * Started cleaning constants but then stopped since this effor should be done a bit later when the new high level ini config interface is better baked.
Diffstat (limited to 'ini/ini_defines.h')
-rw-r--r--ini/ini_defines.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ini/ini_defines.h b/ini/ini_defines.h
index 46ed00f..efa9c98 100644
--- a/ini/ini_defines.h
+++ b/ini/ini_defines.h
@@ -60,6 +60,10 @@
#define INI_ERROR "errors"
#define INI_ERROR_NAME "errname"
+#define INI_CONFIG_NAME "INI"
+
+#define INI_SPECIAL_KEY "="
+#define INI_SECTION_KEY "["
/* Internal sizes. MAX_KEY is defined in config.h */
#define MAX_VALUE PATH_MAX
@@ -68,6 +72,13 @@
/* Beffer length used for int to string conversions */
#define CONVERSION_BUFFER 80
+/* Size of the block for a value */
+#define INI_VALUE_BLOCK 100
+
+/* This constant belongs here. Move from ini_config - TBD */
+/* #define COL_CLASS_INI_BASE 20000 */
+
+
/* Different error string functions can be passed as callbacks */
typedef const char * (*error_fn)(int error);