1 /*
2  * vinagre-spice-tunnel.h
3  * SSH Tunneling for Vinagre
4  * This file is part of vinagre
5  *
6  * Copyright (C) 2009 - Jonh Wendell <wendell@bani.com.br>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef __VINAGRE_SPICE_TUNNEL_H__
23 #define __VINAGRE_SPICE_TUNNEL_H__
24 
25 #include <gtk/gtk.h>
26 
27 G_BEGIN_DECLS
28 
29 typedef enum
30 {
31   VINAGRE_SPICE_TUNNEL_ERROR_NO_FREE_PORT = 1
32 } VinagreSpiceTunnelError;
33 
34 #define VINAGRE_SPICE_TUNNEL_ERROR vinagre_spice_tunnel_error_quark()
35 GQuark vinagre_spice_tunnel_error_quark (void);
36 
37 gboolean vinagre_spice_tunnel_create (GtkWindow *parent,
38 				    gchar **original_host,
39 				    gchar **original_port,
40 				    gchar *gateway,
41 				    GError **error);
42 
43 G_END_DECLS
44 
45 #endif  /* __VINAGRE_SPICE_TUNNEL_H__  */
46 /* vim: set ts=8: */
47