From bb05de2a9d146a2ac50fc7bf899ee94c643e27a3 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 18 Jul 2002 06:49:39 +0000 Subject: add w3mimg protocol in comment --- w3mimgdisplay.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'w3mimgdisplay.c') diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c index 31c4940..c151b12 100644 --- a/w3mimgdisplay.c +++ b/w3mimgdisplay.c @@ -1,4 +1,4 @@ -/* $Id: w3mimgdisplay.c,v 1.4 2002/07/18 06:27:23 ukai Exp $ */ +/* $Id: w3mimgdisplay.c,v 1.5 2002/07/18 06:49:39 ukai Exp $ */ #include #include #include @@ -57,6 +57,28 @@ main(int argc, char **argv) if (buf[len - 1] == '\r') buf[--len] = '\0'; } + /* + * w3mimg protocol + * 0 1 2 .... + * +--+--+--+--+ ...... +--+--+ + * |op|; |args |\n| + * +--+--+--+--+ .......+--+--+ + * + * args is separeted by ';' + * op args + * 0; params draw image + * 1; params redraw image + * 2; -none- clear image + * 3; -none- sync drawing + * 4; -none- nop, sync communication + * response '\n' + * 5; path get size of image, + * response " \n" + * + * params + * ;;;;;;;;; + * + */ switch (buf[0]) { case '0': DrawImage(&buf[2], 0); -- cgit v1.2.3