return -1;
}
break;
+ case SET_TIME_MSECS:
+ if (settings_get_time_msecs(value, (unsigned int *)ptr, &error) < 0) {
+ ctx->error = p_strdup(ctx->parser_pool, error);
+ return -1;
+ }
+ break;
case SET_SIZE:
if (settings_get_size(value, (uoff_t *)ptr, &error) < 0) {
ctx->error = p_strdup(ctx->parser_pool, error);
case SET_UINT:
case SET_UINT_OCT:
case SET_TIME:
+ case SET_TIME_MSECS:
case SET_SIZE:
case SET_IN_PORT:
case SET_STR:
case SET_UINT:
case SET_UINT_OCT:
case SET_TIME:
+ case SET_TIME_MSECS:
case SET_SIZE:
case SET_IN_PORT:
case SET_STR:
}
case SET_UINT:
case SET_UINT_OCT:
- case SET_TIME: {
+ case SET_TIME:
+ case SET_TIME_MSECS: {
const unsigned int *src_uint = src;
unsigned int *dest_uint = dest;
case SET_UINT:
case SET_UINT_OCT:
case SET_TIME:
+ case SET_TIME_MSECS:
case SET_SIZE:
case SET_IN_PORT:
case SET_STR_VARS:
SET_UINT,
SET_UINT_OCT,
SET_TIME,
+ SET_TIME_MSECS,
SET_SIZE,
SET_IN_PORT, /* internet port */
SET_STR,
{ SET_TIME + COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE( \
((struct struct_name *)0)->name, unsigned int), \
#name, offsetof(struct struct_name, name), NULL }
+#define SETTING_DEFINE_STRUCT_TIME_MSECS(name, struct_name) \
+ { SET_TIME_MSECS + COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE( \
+ ((struct struct_name *)0)->name, unsigned int), \
+ #name, offsetof(struct struct_name, name), NULL }
#define SETTING_DEFINE_STRUCT_STR(name, struct_name) \
{ SET_STR + COMPILE_ERROR_IF_TYPES_NOT_COMPATIBLE( \
((struct struct_name *)0)->name, const char *), \