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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. void vncLogError(const char *name, const char *format, ...)
  26. __attribute__((__format__ (__printf__, 2, 3)));
  27. void vncLogStatus(const char *name, const char *format, ...)
  28. __attribute__((__format__ (__printf__, 2, 3)));
  29. void vncLogInfo(const char *name, const char *format, ...)
  30. __attribute__((__format__ (__printf__, 2, 3)));
  31. void vncLogDebug(const char *name, const char *format, ...)
  32. __attribute__((__format__ (__printf__, 2, 3)));
  33. int vncSetParam(const char *name, const char *value);
  34. int vncSetParamSimple(const char *nameAndValue);
  35. char* vncGetParam(const char *name);
  36. const char* vncGetParamDesc(const char *name);
  37. int vncIsParamBool(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