VNC: First few lines of initialization code

This commit is contained in:
Gregory Nutt
2016-04-16 13:06:39 -06:00
parent e793ee2be5
commit 9b42bf65f0
3 changed files with 79 additions and 0 deletions
+18
View File
@@ -75,12 +75,26 @@
# define CONFIG_VNCSERVER_STACKSIZE 2048
#endif
#ifndef CONFIG_VNCSERVER_IOBUFFER_SIZE
# define CONFIG_VNCSERVER_IOBUFFER_SIZE 80
#endif
/* RFB Port Number */
#define RFB_PORT_BASE 5900
#define RFB_MAX_DISPLAYS CONFIG_VNCSERVER_NDISPLAYS
#define RFB_DISPLAY_PORT(d) (RFB_PORT_BASE + (d))
/* Miscellaneous */
#ifndef MIN
# define MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef MAX
# define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
/****************************************************************************
* Public Types
****************************************************************************/
@@ -115,6 +129,10 @@ struct vnc_session_s
uint8_t bpp; /* Bits per pixel */
struct nxgl_size_s screen; /* Size of the screen in pixels x rows */
FAR uint8_t *fb; /* Allocated local frame buffer */
/* I/O buffer for misc network send/receive */
uint8_t iobuf[CONFIG_VNCSERVER_IOBUFFER_SIZE];
};
/****************************************************************************