Commit 42c33528 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(struct parameter): New field: default_suffix.

(assign_timeval): New assigner.
parent d04418a0
/*
* $Id: conf-file.h,v 1.9 2003/07/12 00:16:52 ceder Exp $
* $Id: conf-file.h,v 1.10 2003/07/12 21:27:25 ceder Exp $
* Copyright (C) 1994, 1998-1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -37,6 +37,8 @@ struct parameter {
int max_assignments; /* -1 == eternity */
const char *default_val; /* String, as read from the config file. */
void *value;
const char *default_suffix; /* Default suffix for assigners that
cares about such things. */
};
void read_config(const char *config_file, const struct parameter *par);
......@@ -49,6 +51,7 @@ extern Success assign_uint (const char *val, const struct parameter *par);
extern Success assign_string (const char *val, const struct parameter *par);
extern Success assign_bool (const char *val, const struct parameter *par);
extern Success assign_double (const char *val, const struct parameter *par);
extern Success assign_timeval (const char *val, const struct parameter *par);
extern void unassign_string(const struct parameter *par);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment