Renamed RUNNING and STOPPING to GUAC_CLIENT_RUNNING and GUAC_CLIENT_STOPPING. Added GUAC_CLIENT_MOUSE_* masks.
This commit is contained in:
parent
966cdd7271
commit
27c4e62756
@ -90,9 +90,34 @@ typedef void guac_client_log_handler(guac_client* client, const char* format, va
|
|||||||
*/
|
*/
|
||||||
typedef int guac_client_init_handler(guac_client* client, int argc, char** argv);
|
typedef int guac_client_init_handler(guac_client* client, int argc, char** argv);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Button mask value for the left mouse button.
|
||||||
|
*/
|
||||||
|
#define GUAC_CLIENT_MOUSE_LEFT 0x01
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Button mask value for the middle mouse button.
|
||||||
|
*/
|
||||||
|
#define GUAC_CLIENT_MOUSE_MIDDLE 0x02
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Button mask value for the right mouse button.
|
||||||
|
*/
|
||||||
|
#define GUAC_CLIENT_MOUSE_RIGHT 0x04
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Button mask value for scrolling the mouse scrollwheel up.
|
||||||
|
*/
|
||||||
|
#define GUAC_CLIENT_MOUSE_SCROLL_UP 0x08
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Button mask value for scrolling the mouse scrollwheel down.
|
||||||
|
*/
|
||||||
|
#define GUAC_CLIENT_MOUSE_SCROLL_DOWN 0x10
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Possible current states of the Guacamole client. Currently, the only
|
* Possible current states of the Guacamole client. Currently, the only
|
||||||
* two states are RUNNING and STOPPING.
|
* two states are GUAC_CLIENT_RUNNING and GUAC_CLIENT_STOPPING.
|
||||||
*/
|
*/
|
||||||
typedef enum guac_client_state {
|
typedef enum guac_client_state {
|
||||||
|
|
||||||
@ -100,13 +125,13 @@ typedef enum guac_client_state {
|
|||||||
* The state of the client from when it has been allocated by the main
|
* The state of the client from when it has been allocated by the main
|
||||||
* daemon until it is killed or disconnected.
|
* daemon until it is killed or disconnected.
|
||||||
*/
|
*/
|
||||||
RUNNING,
|
GUAC_CLIENT_RUNNING,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The state of the client when a stop has been requested, signalling the
|
* The state of the client when a stop has been requested, signalling the
|
||||||
* I/O threads to shutdown.
|
* I/O threads to shutdown.
|
||||||
*/
|
*/
|
||||||
STOPPING
|
GUAC_CLIENT_STOPPING
|
||||||
|
|
||||||
} guac_client_state;
|
} guac_client_state;
|
||||||
|
|
||||||
@ -156,9 +181,9 @@ struct guac_client {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The current state of the client. When the client is first allocated,
|
* The current state of the client. When the client is first allocated,
|
||||||
* this will be initialized to RUNNING. It will remain at RUNNING until
|
* this will be initialized to GUAC_CLIENT_RUNNING. It will remain at
|
||||||
* an event occurs which requires the client to shutdown, at which point
|
* GUAC_CLIENT_RUNNING until an event occurs which requires the client to
|
||||||
* the state becomes STOPPING.
|
* shutdown, at which point the state becomes GUAC_CLIENT_STOPPING.
|
||||||
*/
|
*/
|
||||||
guac_client_state state;
|
guac_client_state state;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user