Support enumeration of key/value pairs in a section of strongswan.conf

This commit is contained in:
Martin Willi
2009-11-17 15:52:36 +00:00
parent 86813bef12
commit 3797b8e767
2 changed files with 45 additions and 0 deletions
+11
View File
@@ -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.
*/