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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. // Only from C++
  25. #ifdef __cplusplus
  26. namespace rfb { class StringParameter; };
  27. extern rfb::StringParameter httpDir;
  28. #endif
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32. // vncExt.c
  33. extern int vncNoClipboard;
  34. void vncAddExtension(void);
  35. int vncNotifyQueryConnect(void);
  36. // vncExtInit.cc
  37. extern void* vncFbptr[];
  38. extern int vncFbstride[];
  39. extern int vncInetdSock;
  40. void vncExtensionInit(void);
  41. void vncExtensionClose(void);
  42. void vncHandleSocketEvent(int fd, int scrIdx, int read, int write);
  43. void vncCallBlockHandlers(int* timeout);
  44. int vncGetAvoidShiftNumLock(void);
  45. int vncGetSetPrimary(void);
  46. int vncGetSendPrimary(void);
  47. void vncUpdateDesktopName(void);
  48. void vncServerCutText(const char *text, size_t len);
  49. int vncConnectClient(const char *addr);
  50. void vncGetQueryConnect(uint32_t *opaqueId, const char**username,
  51. const char **address, int *timeout);
  52. void vncApproveConnection(uint32_t opaqueId, int approve);
  53. void vncBell(void);
  54. void vncSetLEDState(unsigned long leds);
  55. // Must match rfb::ShortRect in common/rfb/Region.h, and BoxRec in the
  56. // Xorg source.
  57. struct UpdateRect {
  58. short x1, y1, x2, y2;
  59. };
  60. void vncAddChanged(int scrIdx, const struct UpdateRect *extents,
  61. int nRects, const struct UpdateRect *rects);
  62. void vncAddCopied(int scrIdx, const struct UpdateRect *extents,
  63. int nRects, const struct UpdateRect *rects,
  64. int dx, int dy);
  65. void vncSetCursor(int width, int height, int hotX, int hotY,
  66. const unsigned char *rgbaData);
  67. void vncPreScreenResize(int scrIdx);
  68. void vncPostScreenResize(int scrIdx, int success, int width, int height);
  69. void vncRefreshScreenLayout(int scrIdx);
  70. int vncOverrideParam(const char *nameAndValue);
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif