Add handshake to coordintate with connection of VNC client. fb_initialize() will not return until the connection is established

This commit is contained in:
Gregory Nutt
2016-04-18 12:24:52 -06:00
parent 9d84360c1f
commit 0a6a4ac9bc
4 changed files with 112 additions and 23 deletions
+15 -1
View File
@@ -230,7 +230,7 @@ struct vnc_session_s
};
/****************************************************************************
* Public Function Prototypes
* Public Data
****************************************************************************/
#ifdef __cplusplus
@@ -241,6 +241,20 @@ extern "C"
#define EXTERN extern
#endif
/* Given a display number as an index, the following array can be used to
* look-up the session structure for that display.
*/
EXTERN FAR struct vnc_session_s *g_vnc_sessions[RFB_MAX_DISPLAYS];
/* Used to synchronize the server thread with the framebuffer driver. */
EXTERN sem_t g_fbsem[RFB_MAX_DISPLAYS];
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
* Name: vnc_server
*