count = 0;
str_truncate(ctx->value, 0);
switch (def->type) {
- case SET_INTERNAL:
- break;
case SET_BOOL: {
const bool *val = value, *dval = default_value;
if (ctx->export_defaults ||
const struct setting_define *list;
for (list = info->defines; list->key != NULL; list++) {
- if (strcmp(list->key, key) == 0 && list->type != SET_INTERNAL)
+ if (strcmp(list->key, key) == 0)
return list;
}
return NULL;
ptr = STRUCT_MEMBER_P(link->set_struct, def->offset);
switch (def->type) {
- case SET_INTERNAL:
- i_unreached();
case SET_BOOL:
return get_bool(ctx, value, (bool *)ptr);
case SET_UINT:
#define SETTING_STREAM_LF_CHAR "\003"
enum setting_type {
- SET_INTERNAL, /* don't set this variable */
SET_BOOL,
SET_UINT,
SET_STR,
{ SET_DEFLIST, name, offsetof(struct service_settings, field), defines }
static struct setting_define service_setting_defines[] = {
- DEF(SET_INTERNAL, master_set),
DEF(SET_STR, name),
DEF(SET_STR, type),
DEF(SET_STR, executable),