GUACAMOLE-249: Correct prototypes of pointer handlers.
This commit is contained in:
parent
e4a68d776f
commit
fbfbaff540
@ -31,7 +31,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer) {
|
||||
BOOL guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer) {
|
||||
|
||||
guac_client* client = ((rdp_freerdp_context*) context)->client;
|
||||
guac_rdp_client* rdp_client = (guac_rdp_client*) client->data;
|
||||
@ -68,9 +68,11 @@ void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer) {
|
||||
/* Remember buffer */
|
||||
((guac_rdp_pointer*) pointer)->layer = buffer;
|
||||
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
void guac_rdp_pointer_set(rdpContext* context, rdpPointer* pointer) {
|
||||
BOOL guac_rdp_pointer_set(rdpContext* context, const rdpPointer* pointer) {
|
||||
|
||||
guac_client* client = ((rdp_freerdp_context*) context)->client;
|
||||
guac_rdp_client* rdp_client = (guac_rdp_client*) client->data;
|
||||
@ -80,6 +82,8 @@ void guac_rdp_pointer_set(rdpContext* context, rdpPointer* pointer) {
|
||||
pointer->xPos, pointer->yPos,
|
||||
((guac_rdp_pointer*) pointer)->layer->surface);
|
||||
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
|
||||
void guac_rdp_pointer_free(rdpContext* context, rdpPointer* pointer) {
|
||||
|
@ -53,7 +53,7 @@ typedef struct guac_rdp_pointer {
|
||||
* @param pointer
|
||||
* The pointer to cache.
|
||||
*/
|
||||
void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer);
|
||||
BOOL guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer);
|
||||
|
||||
/**
|
||||
* Sets the given cached pointer as the current pointer. The given pointer must
|
||||
@ -65,7 +65,7 @@ void guac_rdp_pointer_new(rdpContext* context, rdpPointer* pointer);
|
||||
* @param pointer
|
||||
* The pointer to set as the current mouse pointer.
|
||||
*/
|
||||
void guac_rdp_pointer_set(rdpContext* context, rdpPointer* pointer);
|
||||
BOOL guac_rdp_pointer_set(rdpContext* context, const rdpPointer* pointer);
|
||||
|
||||
/**
|
||||
* Frees all Guacamole-related data associated with the given pointer, allowing
|
||||
|
Loading…
Reference in New Issue
Block a user