vncs.h 890 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. };
  33. /* rre.c */
  34. int countcorre(Vncs*, Rectangle);
  35. int counthextile(Vncs*, Rectangle);
  36. int countraw(Vncs*, Rectangle);
  37. int countrre(Vncs*, Rectangle);
  38. int sendcorre(Vncs*, Rectangle);
  39. int sendhextile(Vncs*, Rectangle);
  40. int sendraw(Vncs*, Rectangle);
  41. int sendrre(Vncs*, Rectangle);
  42. /* rlist.c */
  43. void addtorlist(Rlist*, Rectangle);
  44. void freerlist(Rlist*);