Commit b9cb0e2e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Jubel handling.

(Almost) all configuration now read from config file.
Use init_foo() instead of EMPTY_FOO.
parent e69f2ca1
Sat Feb 19 04:36:10 1994 Per Cederqvist (ceder@lysator.liu.se)
* Don't allow anybody to create jubel-texts.
text.c (struct jubel): New struct.
(jubel_root): New variable.
(register_jubel, free_all_jubel, ok_to_create_next_text): New
functions.
(create_text, create_anonymous_text): Check ok_to_create_next_text().
* ramkomd.c (struct parameter, log_param): Moved to
server-config.c.
(init_data_base): Removed code to build an empty data base.
(dump_exit_statistics): Call free_all_jubel().
* server-config.c (parameters): New file-local variable.
(CONFIG_FILE): New const.
(DATAFILE_NAME, BACKUPFILE_NAME, TEXTFILE_NAME, STATISTIC_NAME,
PID_NAME, MEMUSE_NAME, DEFAULT_CLIENT_SERVICE,
DEFAULT_MUX_SERVICE, TIMEOUT, GARBTIMEOUT, SYNCTIMEOUT,
GARB_INTERVAL, SYNC_INTERVAL, SYNC_RETRY_INTERVAL, CONF_NAME_LEN,
PWD_LEN, WHAT_DO_LEN, USERNAME_LEN, TEXT_LEN, BROADCAST_LEN,
REGEXP_LEN, MAX_MARKS_PERSON, MAX_MARKS_TEXT, MAX_RECIPIENTS,
MAX_COMM, MAX_FOOT, MAX_CREA_MISC, CACHE_CONFERENCES,
CACHE_PERSONS, CACHE_TEXT_STATS, MARK_AS_READ_CHUNK,
MAX_SUPER_CONF_LOOP, DEFAULT_NICE, MAXQUEUEDSIZE, MAXDEQUEUELEN):
Obsoleted by parameters. Removed.
(log_param, jubel, read_configuration): New file-local functions.
* ram-parse.c, session.c, simple-cache.c, text.c: Use init_foo()
instead fo EMPTY_FOO.
* prot-a.c (prot_a_init): Use init_priv_bits() instead of
DEFAULT_PRIV_BITS. Use init_conf_type() instead of
NULL_CONF_TYPE.
* param.h: Added lots of configuration.
* membership.c (do_add_member): Use init_membership() instead of
EMPTY_MEMBERSHIP.
* manipulate.h (register_jubel, free_all_jubel): New functions.
* lyskomd.h (num_ip_client_port, num_ip_mux_port): Removed.
* kom-types.c: Removed crap. This file is now empty.
* kom-memory.h, memory.c: Cleanup. Added init_* functions.
* internal-connections.c (init_connection): New function.
(alloc_connection): Use it, instead of the (now deleted) const
EMPTY_CONNECTION.
* dbck.c (main): Read configuration file, the same way that
lyskomd does.
* conf-file.h: (struct parameter): default_val is a char*, not
void*.
* conf-file.c (assign_bool, configure_line): Use strcmp, not
strcasecmp (which is not portable).
* admin.c, conference.c, dbck.c, disk-end-of-atomic.c, fncdef.txt,
person.c, prot-a-parse-arg-c.awk, prot-a.c, session.c,
simple-cache.c, text-garb.c, text.c: Use param."foo" (from
param.h) instead of "FOO".
* Makefile.in (DBCK): Added conf-file.o.
(DBCK_SRCS): Added conf-file.c.
Fri Jan 14 20:06:14 1994 Per Cederqvist (ceder@lysator.liu.se)
* server-config.h: New file.
Wed Jan 12 02:26:36 1994 Per Cederqvist (ceder@lysator.liu.se)
* server-config.c (CONFIG_FILE): New constant.
......
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