]> git.lizzy.rs Git - plan9front.git/blob - sys/src/cmd/vnc/vncs.h
vncs: shut up used and not set warning
[plan9front.git] / sys / src / cmd / vnc / vncs.h
1 typedef struct  Rlist Rlist;
2 typedef struct  Vncs    Vncs;
3
4 struct Rlist
5 {
6         Rectangle       bbox;
7         int     maxrect;
8         int     nrect;
9         Rectangle *rect;
10 };
11
12 struct Vncs
13 {
14         Vnc;
15
16         Vncs    *next;
17         char            remote[NETPATHLEN];
18         char            netpath[NETPATHLEN];
19
20         char            *encname;
21         int             (*countrect)(Vncs*, Rectangle);
22         int             (*sendrect)(Vncs*, Rectangle);
23         int             copyrect;
24         int             canwarp;
25         int             dowarp;
26         Point           warppt;
27
28         ulong           updatereq;
29
30         Rlist           rlist;
31         int             ndead;
32         int             nproc;
33         int             cursorver;
34         Point           cursorpos;
35         Rectangle       cursorr;
36         int             snarfvers;
37
38         Memimage        *image;
39         ulong   imagechan;
40 };
41
42 /* rre.c */
43 int     countcorre(Vncs*, Rectangle);
44 int     counthextile(Vncs*, Rectangle);
45 int     countraw(Vncs*, Rectangle);
46 int     countrre(Vncs*, Rectangle);
47 int     sendcorre(Vncs*, Rectangle);
48 int     sendhextile(Vncs*, Rectangle);
49 int     sendraw(Vncs*, Rectangle);
50 int     sendrre(Vncs*, Rectangle);
51
52 /* rlist.c */
53 void addtorlist(Rlist*, Rectangle);
54 void freerlist(Rlist*);