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

55 lines
1.9 KiB
C
Raw Normal View History

/*
* Copyright (C) 2014 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.
*/
#ifndef GUAC_RDP_USER_H
#define GUAC_RDP_USER_H
2011-03-28 03:56:14 +00:00
#include <guacamole/user.h>
2011-03-28 03:56:14 +00:00
/**
* Handler for joining users.
*
* @param user The user joining the connection.
*
* @param argc
* The number of arguments provided by the user during the connection
* handshake.
*
* @param argv
* Array of values of each argument provided by the user during the
* connection handshake.
*
* @return Zero if the join operation succeeded, non-zero otherwise.
*/
int guac_rdp_user_join_handler(guac_user* user, int argc, char** argv);
2011-03-28 03:56:14 +00:00
/**
* Handler for received simple file uploads. This handler will automatically
* select between RDPDR and SFTP depending on which is available and which has
* priority given associated settings.
*/
int guac_rdp_user_file_handler(guac_user* user, guac_stream* stream,
char* mimetype, char* filename);
2011-03-28 03:56:14 +00:00
#endif