/*
- * 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.
#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 */
char c_journal_dest[128];
char c_default_cal_zone[128];
int c_pftcpdict_port;
- int c_managesieve_port;
+ int c_niu_9;
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_10;
+ char c_niu_11[256];
+ char c_niu_12[256];
char c_rbl_at_greeting;
char c_master_user[32];
char c_master_pass[32];
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);