From b14501bfd679bbcd79ec983d71cba96e8e58c604 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 3 Aug 2014 05:55:15 +0200 Subject: mds-clipboard: all actions except add, however there is not removal of old entries yet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/protocols | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/protocols b/doc/protocols index e008c28..1a251af 100644 --- a/doc/protocols +++ b/doc/protocols @@ -142,23 +142,28 @@ Conditionally required header: Length Length of the message Conditionally required header: Size - Available and optional if: `Action: set-size` + Required if: `Action: set-size` The maximum number of elements in the clipstack -Conditionally optional header: Index - Available and optional if: `Action: read` - The index of the item in the clipstack, starting at 0 - Conditionally required header: Client ID Your ID, provided by `ID assignment` in response to `Command: assign-id`. - Required if: `Action: add` but not `Time to live: forever` + Required if: `Action: add` and a header starting with + `Time to live: until-death` + Required if: `Action: read` + Required if: `Action: get-size` + +Conditionally optional header: Index + Available and optional if: `Action: read` + The index of the item in the clipstack, starting at 0 Conditionally optional header: Time to live Available and optional if: `Action: add` The number of seconds the entry should be available before it is removed by the server, or: until-death: remove entry when the client closes + until-death #: remove entry when the client closes, + or # seconds have elapsed forever: never remove it (default) The server will always remove the entry when: 1) it is at the bottom of the clipstack and a new -- cgit v1.2.3-70-g09d2