diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-08-05 11:59:45 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-08-05 11:59:45 -0400 |
commit | 1524075828995e14fef035ff5884134997c7479a (patch) | |
tree | 0ece450ec17839a26d5c564b753e291cf774aa40 /include/ini.h | |
parent | 202e69c8951a38187489c66e994dd593755d62cb (diff) | |
download | stasis-1524075828995e14fef035ff5884134997c7479a.tar.gz |
Add handler for space-delimited lists
* This needs attention, however. The INI writer has no way to know a list with spaces is a list; this happens in the value conversion functions.
* Add type_hint member to INIData structure. At some point support with be added for all INIVAL_TYPE_* defines. Right now it's only used with arrays.
* Zero out line buffer in ini_open after each iteration
* Do not strip raw INI data. Let the conversion functions handle it
* Add spaces to key value pairs in rendered INI output.
Diffstat (limited to 'include/ini.h')
-rw-r--r-- | include/ini.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ini.h b/include/ini.h index 7167cad..d7cf056 100644 --- a/include/ini.h +++ b/include/ini.h @@ -29,7 +29,7 @@ #define INIVAL_TO_LIST 1 << 1 /*! \union INIVal - * \brief Consolidation possible value types + * \brief Consolidate possible value types */ union INIVal { int as_int; ///< Integer @@ -52,6 +52,7 @@ union INIVal { struct INIData { char *key; ///< INI variable name char *value; ///< INI variable value + unsigned type_hint; }; /*! \struct INISection |