mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add handshake to coordintate with connection of VNC client. fb_initialize() will not return until the connection is established
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user