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.

RFBGlue.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 RFB_GLUE_H
  20. #define RFB_GLUE_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. void vncInitRFB(void);
  25. #ifdef __GNUC__
  26. # define __printf_attr(a, b) __attribute__((__format__ (__printf__, a, b)))
  27. #else
  28. # define __printf_attr(a, b)
  29. #endif // __GNUC__
  30. void vncLogError(const char *name, const char *format, ...) __printf_attr(2, 3);
  31. void vncLogStatus(const char *name, const char *format, ...) __printf_attr(2, 3);
  32. void vncLogInfo(const char *name, const char *format, ...) __printf_attr(2, 3);
  33. void vncLogDebug(const char *name, const char *format, ...) __printf_attr(2, 3);
  34. int vncSetParam(const char *name, const char *value);
  35. int vncSetParamSimple(const char *nameAndValue);
  36. char* vncGetParam(const char *name);
  37. const char* vncGetParamDesc(const char *name);
  38. int vncGetParamCount(void);
  39. char *vncGetParamList(void);
  40. void vncListParams(int width, int nameWidth);
  41. int vncGetSocketPort(int fd);
  42. int vncIsTCPPortUsed(int port);
  43. char* vncConvertLF(const char* src, size_t bytes);
  44. char* vncLatin1ToUTF8(const char* src, size_t bytes);
  45. char* vncUTF8ToLatin1(const char* src, size_t bytes);
  46. void vncStrFree(char* str);
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif