X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fconfig.h;h=9fc59f48050ae6aeebda4f49d110eadfe49ab9f4;hb=fdd5004e632b955274b9fdeb9a63223cba7536a8;hp=79f24427439249371bf2d8650b2787180bb77b7c;hpb=d3a226e3a4df3d393c22a2b4452324fd239f4858;p=citadel.git diff --git a/citadel/config.h b/citadel/config.h index 79f244274..9fc59f480 100644 --- a/citadel/config.h +++ b/citadel/config.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1987-2015 by the citadel.org team + * Copyright (c) 1987-2016 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -13,15 +13,11 @@ #include "serv_extensions.h" #include "citadel_dirs.h" -#define CtdlGetConfigInt(x) atoi(CtdlGetConfigStr(x)) -#define CtdlGetConfigLong(x) atol(CtdlGetConfigStr(x)) - - /* * This is the format of the legacy config file. Do not attempt to do anything with it other - * than migrate it into the new format. + * than migrate it into the new format. DO NOT EDIT -- EVER. */ struct legacy_config { char c_nodename[16]; /* short name of this node on a Citadel network */ @@ -85,10 +81,10 @@ struct legacy_config { int c_pftcpdict_port; int c_managesieve_port; int c_auth_mode; - char c_funambol_host[256]; - int c_funambol_port; - char c_funambol_source[256]; - char c_funambol_auth[256]; + char c_niu_8[256]; + int c_niu_9; + char c_niu_10[256]; + char c_niu_11[256]; char c_rbl_at_greeting; char c_master_user[32]; char c_master_pass[32]; @@ -112,9 +108,13 @@ void shutdown_config_system(void); void put_config(void); void CtdlSetConfigStr(char *, char *); char *CtdlGetConfigStr(char *); +int CtdlGetConfigInt(char *); +long CtdlGetConfigLong(char *); void CtdlSetConfigInt(char *key, int value); void CtdlSetConfigLong(char *key, long value); +void CtdlDelConfig(char *key); char *CtdlGetSysConfig(char *sysconfname); void CtdlPutSysConfig(char *sysconfname, char *sysconfdata); void validate_config(void); +void netcfg_keyname(char *, long);