You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vncExtInit.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright 2011-2015 Pierre Ossman for Cendio AB
  3. *
  4. * This is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This software is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this software; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  17. * USA.
  18. */
  19. #ifndef __VNCEXTINIT_H__
  20. #define __VNCEXTINIT_H__
  21. #include <stdint.h>
  22. #include <stddef.h>
  23. #include <sys/select.h>
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. // vncExt.c
  28. extern int vncNoClipboard;
  29. void vncAddExtension(void);
  30. int vncNotifyQueryConnect(void);
  31. // vncExtInit.cc
  32. extern void* vncFbptr[];
  33. extern int vncFbstride[];
  34. extern int vncInetdSock;
  35. void vncExtensionInit(void);
  36. void vncExtensionClose(void);
  37. void vncHandleSocketEvent(int fd, int scrIdx, int read, int write);
  38. void vncCallBlockHandlers(int* timeout);
  39. int vncGetAvoidShiftNumLock(void);
  40. int vncGetSetPrimary(void);
  41. int vncGetSendPrimary(void);
  42. void vncUpdateDesktopName(void);
  43. void vncServerCutText(const char *text);
  44. int vncConnectClient(const char *addr);
  45. void vncGetQueryConnect(uint32_t *opaqueId, const char**username,
  46. const char **address, int *timeout);
  47. void vncApproveConnection(uint32_t opaqueId, int approve);
  48. void vncBell(void);
  49. void vncSetLEDState(unsigned long leds);
  50. // Must match rfb::ShortRect in common/rfb/Region.h, and BoxRec in the
  51. // Xorg source.
  52. struct UpdateRect {
  53. short x1, y1, x2, y2;
  54. };
  55. void vncAddChanged(int scrIdx, const struct UpdateRect *extents,
  56. int nRects, const struct UpdateRect *rects);
  57. void vncAddCopied(int scrIdx, const struct UpdateRect *extents,
  58. int nRects, const struct UpdateRect *rects,
  59. int dx, int dy);
  60. void vncSetCursor(int width, int height, int hotX, int hotY,
  61. const unsigned char *rgbaData);
  62. void vncPreScreenResize(int scrIdx);
  63. void vncPostScreenResize(int scrIdx, int success, int width, int height);
  64. void vncRefreshScreenLayout(int scrIdx);
  65. int vncOverrideParam(const char *nameAndValue);
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif