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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright 2011-2019 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 vncRequestClipboard(void);
  44. void vncAnnounceClipboard(int available);
  45. void vncSendClipboardData(const char* data);
  46. int vncConnectClient(const char *addr);
  47. void vncGetQueryConnect(uint32_t *opaqueId, const char**username,
  48. const char **address, int *timeout);
  49. void vncApproveConnection(uint32_t opaqueId, int approve);
  50. void vncBell(void);
  51. void vncSetLEDState(unsigned long leds);
  52. // Must match rfb::ShortRect in common/rfb/Region.h, and BoxRec in the
  53. // Xorg source.
  54. struct UpdateRect {
  55. short x1, y1, x2, y2;
  56. };
  57. void vncAddChanged(int scrIdx, const struct UpdateRect *extents,
  58. int nRects, const struct UpdateRect *rects);
  59. void vncAddCopied(int scrIdx, const struct UpdateRect *extents,
  60. int nRects, const struct UpdateRect *rects,
  61. int dx, int dy);
  62. void vncSetCursor(int width, int height, int hotX, int hotY,
  63. const unsigned char *rgbaData);
  64. void vncPreScreenResize(int scrIdx);
  65. void vncPostScreenResize(int scrIdx, int success, int width, int height);
  66. void vncRefreshScreenLayout(int scrIdx);
  67. int vncOverrideParam(const char *nameAndValue);
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif