vncs.h 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. typedef struct Rlist Rlist;
  2. typedef struct Vncs Vncs;
  3. struct Rlist
  4. {
  5. Rectangle bbox;
  6. int maxrect;
  7. int nrect;
  8. Rectangle *rect;
  9. };
  10. struct Vncs
  11. {
  12. Vnc;
  13. Vncs *next;
  14. char remote[NETPATHLEN];
  15. char netpath[NETPATHLEN];
  16. char *encname;
  17. int (*countrect)(Vncs*, Rectangle);
  18. int (*sendrect)(Vncs*, Rectangle);
  19. int copyrect;
  20. int canwarp;
  21. int needwarp;
  22. Point warppt;
  23. int updaterequest;
  24. Rlist rlist;
  25. int ndead;
  26. int nproc;
  27. int cursorver;
  28. Point cursorpos;
  29. Rectangle cursorr;
  30. int snarfvers;
  31. Memimage *image;
  32. ulong imagechan;
  33. };
  34. /* rre.c */
  35. int countcorre(Vncs*, Rectangle);
  36. int counthextile(Vncs*, Rectangle);
  37. int countraw(Vncs*, Rectangle);
  38. int countrre(Vncs*, Rectangle);
  39. int sendcorre(Vncs*, Rectangle);
  40. int sendhextile(Vncs*, Rectangle);
  41. int sendraw(Vncs*, Rectangle);
  42. int sendrre(Vncs*, Rectangle);
  43. /* rlist.c */
  44. void addtorlist(Rlist*, Rectangle);
  45. void freerlist(Rlist*);