Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 XORG_GLUE_H
  20. #define XORG_GLUE_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #ifdef __GNUC__
  25. # define __printf_attr(a, b) __attribute__((__format__ (__printf__, a, b)))
  26. # define __noreturn_attr __attribute__((noreturn))
  27. #else
  28. # define __printf_attr(a, b)
  29. # define __noreturn_attr
  30. #endif // __GNUC__
  31. const char *vncGetDisplay(void);
  32. unsigned long vncGetServerGeneration(void);
  33. void vncFatalError(const char *format, ...) __printf_attr(1, 2) __noreturn_attr;
  34. int vncGetScreenCount(void);
  35. void vncGetScreenFormat(int scrIdx, int *depth, int *bpp,
  36. int *trueColour, int *bigEndian,
  37. int *redMask, int *greenMask, int *blueMask);
  38. int vncGetScreenX(int scrIdx);
  39. int vncGetScreenY(int scrIdx);
  40. // These hide in xvnc.c or vncModule.c
  41. void vncClientGone(int fd);
  42. int vncRandRCanCreateScreenOutputs(int scrIdx, int extraOutputs);
  43. int vncRandRCreateScreenOutputs(int scrIdx, int extraOutputs);
  44. int vncRandRCanCreateModes(void);
  45. void* vncRandRCreateMode(void* output, int width, int height);
  46. void* vncRandRSetPreferredMode(void* output, void* mode);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif