diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-07-18 06:49:39 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-07-18 06:49:39 +0000 |
commit | bb05de2a9d146a2ac50fc7bf899ee94c643e27a3 (patch) | |
tree | a5247f647b36e131411a7e861bebf25f11961eb4 /w3mimgdisplay.c | |
parent | * w3mimgdisplay.c (main): '5' for w3mimgsize (diff) | |
download | w3m-bb05de2a9d146a2ac50fc7bf899ee94c643e27a3.tar.gz w3m-bb05de2a9d146a2ac50fc7bf899ee94c643e27a3.zip |
add w3mimg protocol in comment
Diffstat (limited to 'w3mimgdisplay.c')
-rw-r--r-- | w3mimgdisplay.c | 24 |
1 files changed, 23 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -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 "<width> <height>\n" + * + * params + * <n>;<x>;<y>;<w>;<h>;<sx>;<sy>;<sw>;<sh>;<path> + * + */ switch (buf[0]) { case '0': DrawImage(&buf[2], 0); |