guacamole-spice-protocol/src/protocols/rdp/guac_handlers.h

69 lines
2.3 KiB
C
Raw Normal View History

/*
* Copyright (C) 2013 Glyptodon LLC
2011-03-28 03:56:14 +00:00
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
2011-03-28 03:56:14 +00:00
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
2011-03-28 03:56:14 +00:00
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
2011-03-28 03:56:14 +00:00
#ifndef _GUAC_RDP_GUAC_HANDLERS_H
#define _GUAC_RDP_GUAC_HANDLERS_H
2011-03-28 03:56:14 +00:00
2014-01-01 22:44:28 +00:00
#include "config.h"
2011-03-28 03:56:14 +00:00
#include <guacamole/client.h>
2013-10-15 21:13:56 +00:00
#include <guacamole/stream.h>
2011-03-28 03:56:14 +00:00
2013-11-04 09:28:27 +00:00
/**
* Structure which represents the current state of an upload.
*/
typedef struct guac_rdp_upload_stat {
/**
* The overall offset within the file that the next write should
* occur at.
*/
int offset;
/**
* The ID of the file being written to.
*/
int file_id;
} guac_rdp_upload_stat;
2011-03-28 03:56:14 +00:00
int rdp_guac_client_free_handler(guac_client* client);
int rdp_guac_client_handle_messages(guac_client* client);
int rdp_guac_client_mouse_handler(guac_client* client, int x, int y, int mask);
2011-07-24 07:47:38 +00:00
int rdp_guac_client_key_handler(guac_client* client, int keysym, int pressed);
2012-04-30 06:28:29 +00:00
int rdp_guac_client_clipboard_handler(guac_client* client, char* data);
2011-03-28 03:56:14 +00:00
2013-10-15 21:13:56 +00:00
int rdp_guac_client_file_handler(guac_client* client, guac_stream* stream,
char* mimetype, char* filename);
int rdp_guac_client_blob_handler(guac_client* client, guac_stream* stream,
void* data, int length);
int rdp_guac_client_end_handler(guac_client* client, guac_stream* stream);
2013-11-12 19:46:32 +00:00
int rdp_guac_client_ack_handler(guac_client* client, guac_stream* stream,
char* message, guac_protocol_status status);
2011-03-28 03:56:14 +00:00
#endif