X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=secnet.h;h=7d1edb0737d6709714973f9b438a66bddd5a08c5;hb=55e96f163095fc9286e0566fdaa1b1df45631fe3;hp=986ef260283824c9b60b9053e2801affb9839a8c;hpb=bc07424dca80830704295cc1cfee04da75479f8c;p=secnet.git diff --git a/secnet.h b/secnet.h index 986ef26..7d1edb0 100644 --- a/secnet.h +++ b/secnet.h @@ -138,6 +138,14 @@ extern uint32_t dict_read_number(dict_t *dict, cstring_t key, bool_t required, /* return value can safely be assigned to int32_t */ extern bool_t dict_read_bool(dict_t *dict, cstring_t key, bool_t required, cstring_t desc, struct cloc loc, bool_t def); +const char **dict_read_string_array(dict_t *dict, cstring_t key, + bool_t required, cstring_t desc, + struct cloc loc, const char *const *def); + /* Return value is a NULL-terminated array obtained from malloc; + * Individual string values are still owned by config file machinery + * and must not be modified or freed. Returns NULL if key not + * found. */ + struct flagstr { cstring_t name; uint32_t value;