Commit 8f6fed19 authored by Per Cederqvist's avatar Per Cederqvist

(Simple Data Types): ENUMERATIONs can be inherited from SELECTIONS.

(LysKOM Data Types): Define Info-Type.
(add-recipient): The recpt-type argument is an Info-Type, not a
	complete Misc-Info.
(async-new-recipient): The type argument is an Info-Type, not a
	complete Misc-Info.
(async-sub-recipient): Likewise.
(Document Revision History): Mention Info-Type.
parent 75313fe5
......@@ -2,7 +2,7 @@
@c
@c FIXME: Explain how the garb works with nice and keep-commented
@c
@c $Id: Protocol-A.texi,v 1.85 1999/07/11 00:50:22 ceder Exp $
@c $Id: Protocol-A.texi,v 1.86 1999/07/11 21:28:27 ceder Exp $
@c %**start of header
@setfilename protocol-a.info
@settitle LysKOM Protocol A
......@@ -136,7 +136,11 @@ The LysKOM developers can be reached by email to
@item 10.1: 1999-07-11
Call @code{sub-comment} was incorrectly marked obsolete. This has been
corrected. Regexps are case sensitive. Distributed with lyskomd 2.0.1.
corrected. Regexps are case sensitive. The Info-Type enumeration was
introduced in the description of the protocol. (Previous versions of
the protocol had broken definitions of add-recipient,
async-new-recipient and async-sub-recipient.) Distributed with lyskomd
2.0.1.
@item 10.0: 1999-06-27
The specification was translated to English and converted to Texinfo by
......@@ -1499,6 +1503,13 @@ This specification states that name-1 is represented by the integer
value-1, name-2 is represented by value-2 and name-3 is represented by
value-3.
An enumeration can also be inherited from a SELECTION datatype:
Info-type : ENUMERATION_OF(Misc-Info))
This means that Info-type is an enumeration, that contains the same keys
and values as the SELECTION Misc-Info.
For example, in the following specification, the constant guwal will be
transmitted as the integer 2, ciokwe as the integer 3, and hopi as the
integer 5.
......@@ -2423,6 +2434,7 @@ values.
@tindex Misc-Info
@tindex Text-Stat-Old
@tindex Text-Stat
@tindex Info-Type
@example
Misc-Info ::= SELECTION
( 0=recpt recipient : Conf-No;
......@@ -2438,6 +2450,8 @@ values.
15=bcc-recpt bcc-recipient : Text-No;
)
Info-Type ::= ENUMERATION_OF(Misc-Info)
Text-Stat-Old ::=
( creation-time : Time;
author : Pers-No;
......@@ -4410,7 +4424,7 @@ author.
@example
add-recipient [30] (( text-no : Text-No;
conf-no : Conf-No;
recpt-type : Misc-Info; ))
recpt-type : Info-Type; ))
-> ( );
@end example
......@@ -7938,7 +7952,7 @@ message is sent to all logged-in members of any recipient of the text.
@example
async-new-recipient [16] (( text-no : Text-No;
conf-no : Conf-No;
type : Misc-Info; ));
type : Info-Type; ));
@end example
This message indicates that a new recipient has been added to text
......@@ -7955,7 +7969,7 @@ recipient.
@example
async-sub-recipient [17] (( text-no : Text-No;
conf-no : Conf-No;
type : Misc-Info; ));
type : Info-Type; ));
@end example
This message indicates that a recipient has been removed from text
......@@ -8192,7 +8206,8 @@ Attempt to create an illegal misc item. @code{error-status} contains the
index of the illegal item.
@item illegal-info-type (26)
Attempt to use a Misc-Info type that the server knows nothing about.
Attempt to use a Misc-Info type (or Info-Type value) that the server
knows nothing about.
@code{error-status} is the type.
@item already-recipient (27)
......
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