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

Test, document and implement 107=query-read-texts and

parent b478fb7d
2002-11-13 Per Cederqvist <>
Release administrativa.
* HACKING: Make sure no closed bugs are left on the TODO list.
Test 107=query-read-texts and 108=get-membership.
* src/server/testsuite/lyskomd.0/bug-52.exp: Fixed a couple of
errors in the range-based test cases.
(checkit): Test 107=query-read-texts and 108=get-membership.
(checktrunc): New proc. Use it a few times to check that the new
requests can truncate the ranges of read texts.
* src/server/testsuite/lyskomd.0/03.exp: Be prepared that
query-read-texts-old now adjusts the read ranges. Test
107=query-read-texts and 108=get-membership. Renumber.
* src/server/testsuite/lyskomd.0/01.exp: Test 107=query-read-texts
and 108=get-membership. Renumber.
Implement 107=query-read-texts and 108=get-membership.
* src/server/prot-a.c (prot_a_reply): Handle rt_membership and
* src/server/prot-a-output.h, src/server/prot-a-output.c
(prot_a_output_membership): New function.
(prot_a_output_membership_list): New function.
* src/server/person.c (do_query_read_texts): New arguments:
want_read_ranges and max_ranges. All callers updated. Call
adjust_read() if want_read_ranges is true.
(query_read_texts): New function.
* src/server/membership.c (copy_public_confs): New arguments:
keep_read and max_ranges. All callers updated.
(adjust_read): Now has external linkage. Changed return type from
void to Bool; return true if the membership was modified.
(do_get_membership): New arguments: keep_ranges and max_ranges.
Renamed the want_read_texts argument to want_read_ranges. All
callers updated.
(get_membership): New function.
* src/server/manipulate.h (adjust_read): Now has external
* src/server/fncdef.txt: Added query_read_texts and
* src/server/connections.h (Connection): Added num4.
(enum res_type): Added rt_membership and rt_membership_list.
(union result_holder): Added membership and membership_list.
* src/include/services.h (get_membership): New function.
(query_read_texts): New function.
Documented new range-based requests get-membership and
query-read-texts. Renamed the old versions by adding a "-10"
* doc/constructs.expected: Removed references to bug 52.
* doc/Protocol-A.texi (Membership and Reading): Talk about
read-ranges, not last-text-read and read-texts.
(Person Status Types): Mention read-ranges.
(Membership Information): Mention that obsolete versions of
Membership exists.
(Membership Information): Renamed Membership to Membership-10, and
added new Membership and Read-Range types.
(Protocol Requests): Flag 98=query-read-texts-10 and
99=get-membership-10 as obsolete. Added 107=query-read-texts and
(sub-member): Changed get-membership to get-membership-old, since
that is was the example uses. Added markup.
(mark-as-read): Changed query-read-texts to query-read-texts-old,
since that is what the example uses. Added markup.
(set-unread): Ditto.
(set-last-read): Ditto.
(query-read-texts-10): New name for former request
query-read-texts. Mark it as obsolete and refer to the new
query-read-texts request. Changed return type to Membership-10.
(get-membership-10): New name for former request
get-membership. Mark it as obsolete and refer to the new
get-membership request. Changed return type to ARRAY
(query-read-texts): New request.
(get-membership): New request.
(Membership visibility): Added get-membership-10 and
(What do I have unread): Added markup.
(Future changes): Removed references to bug 52.
(Document Edition History): Tracked the renaming of
query-read-texts-10 and get-membership-10.
2002-11-12 Per Cederqvist <>
Added a "_10" suffix to type Membership and all derived types and
Supports Markdown
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