X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Flibstrongswan%2Fsettings.h;h=451c2a583a82593c94f197bb0464dcbb3d451d1d;hp=91770973bf84f02fe831fe7ce75639280aa563ef;hb=07d7f9a402aef13f6fad591e8b851f11e0a31731;hpb=e376d75f96ed471fb43f3b89cc9a336deb8a9358 diff --git a/src/libstrongswan/settings.h b/src/libstrongswan/settings.h index 9177097..451c2a5 100644 --- a/src/libstrongswan/settings.h +++ b/src/libstrongswan/settings.h @@ -80,9 +80,18 @@ struct settings_t { * @param def default value to return if key not found * @return value of the key */ - int (*get_int)(settings_t *this, char *key, bool def); + int (*get_int)(settings_t *this, char *key, int def); /** + * Get a time value. + * + * @param key key including sections + * @param def default value to return if key not found + * @return value of the key + */ + u_int32_t (*get_time)(settings_t *this, char *key, u_int32_t def); + + /** * Destroy a settings instance. */ void (*destroy)(settings_t *this);