aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/settings.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-11-17 15:52:36 +0000
committerMartin Willi <martin@strongswan.org>2009-11-17 15:52:36 +0000
commit3797b8e767a247f64a706b0a4dc8656e8377fbab (patch)
tree706c046a3f672d4f1ee1d0eb10c364dfcb0ba4d3 /src/libstrongswan/settings.h
parent86813bef129d8c2bc479239b497dd72f3288463d (diff)
downloadstrongswan-3797b8e767a247f64a706b0a4dc8656e8377fbab.tar.bz2
strongswan-3797b8e767a247f64a706b0a4dc8656e8377fbab.tar.xz
Support enumeration of key/value pairs in a section of strongswan.conf
Diffstat (limited to 'src/libstrongswan/settings.h')
-rw-r--r--src/libstrongswan/settings.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstrongswan/settings.h b/src/libstrongswan/settings.h
index 7a28225d3..a032c5cd9 100644
--- a/src/libstrongswan/settings.h
+++ b/src/libstrongswan/settings.h
@@ -103,6 +103,17 @@ struct settings_t {
*/
enumerator_t* (*create_section_enumerator)(settings_t *this,
char *section, ...);
+
+ /**
+ * Create an enumerator over key/value pairs in a section.
+ *
+ * @param section section name to list key/value pairs of, printf style
+ * @param ... argmuent list for section
+ * @return enumerator over (char *key, char *value)
+ */
+ enumerator_t* (*create_key_value_enumerator)(settings_t *this,
+ char *section, ...);
+
/**
* Destroy a settings instance.
*/