libguac  0.9.8
plugin.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Glyptodon LLC
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
23 #ifndef _GUAC_PLUGIN_H
24 #define _GUAC_PLUGIN_H
25 
26 #include "client-types.h"
27 #include "plugin-constants.h"
28 #include "plugin-types.h"
29 
37 
41  void* __client_plugin_handle;
42 
48 
54  const char** args;
55 
56 };
57 
67 guac_client_plugin* guac_client_plugin_open(const char* protocol);
68 
78 
90  guac_client* client, int argc, char** argv);
91 
92 #endif
Type definitions related to client plugins.
int guac_client_plugin_close(guac_client_plugin *plugin)
Close the given plugin, releasing all associated resources.
int guac_client_plugin_init_client(guac_client_plugin *plugin, guac_client *client, int argc, char **argv)
Initializes the given guac_client using the initialization routine provided by the given guac_client_...
A handle to a client plugin, containing enough information about the plugin to complete the initial p...
Definition: plugin.h:36
Type definitions related to the Guacamole client structure, guac_client.
Constants related to client plugins.
guac_client_plugin * guac_client_plugin_open(const char *protocol)
Open the plugin which provides support for the given protocol, if it exists.
int guac_client_init_handler(guac_client *client, int argc, char **argv)
Handler which should initialize the given guac_client.
Definition: client-fntypes.h:132
Guacamole proxy client.
Definition: client.h:87
const char ** args
NULL-terminated array of all arguments accepted by this client plugin, in order.
Definition: plugin.h:54
guac_client_init_handler * init_handler
Reference to the init handler of this client plugin.
Definition: plugin.h:47