X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fconf.h;h=a0d2631718e968abd95c4e96d24e8123e7efafb7;hb=302a260054ea38d3cb97be6d1a3010082c09265d;hp=7edc83547bc5d5d302295cbe11ee8d8ac1552875;hpb=d3372da97568d5e1f35fa19787c8ec8af93a0435;p=doldaconnect.git diff --git a/daemon/conf.h b/daemon/conf.h index 7edc835..a0d2631 100644 --- a/daemon/conf.h +++ b/daemon/conf.h @@ -1,6 +1,6 @@ /* * Dolda Connect - Modular multiuser Direct Connect-style client - * Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com) + * Copyright (C) 2004 Fredrik Tolf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,8 +24,6 @@ #include #include -#define CONFIG_PATH "/usr/local/etc/doldacond.conf:/usr/etc/doldacond.conf:/etc/doldacond.conf" - #define CONF_VAR_END -1 #define CONF_VAR_BOOL 0 #define CONF_VAR_INT 1 @@ -70,6 +68,7 @@ struct configvar *confgetvar(char *modname, char *varname); #define confgetstr(m, v) (confgetvar((m), (v))->val.str) void confregmod(struct configmod *mod); void readconfig(FILE *stream); -char *findconfigfile(void); +void storevar(char *key, void *val, size_t len); +void *fetchvar(char *key, size_t *lenb); #endif