Commit 2c5cc247 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added new requests 109=mark-as-unread and 110=set-read-ranges. Added

parsing of "ARRAY Read-Range", aka read_range_list, needed by request
110=set-read-ranges.  Minor doc fixes.
parent b957e462
2002-11-15 Per Cederqvist <ceder@ceder.dyndns.org>
Minor doc fixes.
* doc/Protocol-A.texi (mark-as-read): Added markup.
(set-unread): Ditto.
(get-membership): This was introduced in protocol version 11, not
10.
Added new requests 109=mark-as-unread and 110=set-read-ranges.
* doc/Protocol-A.texi (mark-as-unread): New request.
(set-read-ranges): New request.
(Error Codes): Added invalid-range and invalid-range-list.
* src/include/services.h (mark_as_unread): New request.
(set_read_ranges): New request.
* src/server/fncdef.txt: Added mark_as_unread and
set_read_ranges.
* src/server/membership.c (remove_loc_no): New static function.
(read_ranges_precondition): New static function.
(read_ranges_postcondition): New static function.
(mark_as_read): Extracted debug code to read_ranges_precondition
and read_ranges_postcondition.
(mark_as_unread): New function.
(check_range_list): New static function.
(set_read_ranges): New function.
* src/server/testsuite/lyskomd.0/01.exp: Test 109=mark-as-unread
and 110=set-read-ranges.
* src/server/testsuite/lyskomd.0/03.exp: Ditto.
Added parsing of "ARRAY Read-Range", aka read_range_list, needed
by request 110=set-read-ranges.
* src/server/param.h (struct kom_par): Added max_read_ranges.
* src/server/server-config.c (parameters): Added "Max read_ranges
per call".
* src/server/prot-a.c (prot_a_destruct): Free read_range_list.
* src/server/prot-a-parse.h (prot_a_parse_read_range_list): New
function.
* src/server/prot-a-parse.c (prot_a_parse_read_range): New static
function.
(prot_a_parse_read_range_list): New function.
* src/server/prot-a-parse-arg-c.awk: Handle read_range_list.
* src/server/internal-connections.c (init_connection): Initialize
read_range_list.
* src/server/connections.h (Connection): Added read_range_list.
* src/server/connections.c (free_parsed): Free read_range_list.
* src/server/call-switch.awk: Handle read_range_list.
* src/include/kom-types.h (struct read_range_list): New struct.
* src/include/kom-errno.h (enum kom_err): Added KOM_INVALID_RANGE
and KOM_INVALID_RANGE_LIST.
2002-11-14 Per Cederqvist <ceder@ceder.dyndns.org>
Release administrativa.
......
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