Remmina - The GTK+ Remote Desktop Client  v1.4.2
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
nx_session.h
Go to the documentation of this file.
1 /*
2  * Remmina - The GTK+ Remote Desktop Client
3  * Copyright (C) 2010 Vic Lee
4  * Copyright (C) 2017-2020 Antenore Gatta, Giovanni Panozzo
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * In addition, as a special exception, the copyright holders give
22  * permission to link the code of portions of this program with the
23  * OpenSSL library under certain conditions as described in each
24  * individual source file, and distribute linked combinations
25  * including the two.
26  * You must obey the GNU General Public License in all respects
27  * for all of the code used other than OpenSSL. * If you modify
28  * file(s) with this exception, you may extend this exception to your
29  * version of the file(s), but you are not obligated to do so. * If you
30  * do not wish to do so, delete this exception statement from your
31  * version. * If you delete this exception statement from all source
32  * files in the program, then also delete it here.
33  *
34  */
35 
36 #pragma once
37 
38 G_BEGIN_DECLS
39 
40 enum {
47 };
48 
50 
51 typedef gboolean (*RemminaNXPassphraseCallback)(gchar **passphrase, gpointer userdata);
52 typedef void (*RemminaNXLogCallback)(const gchar *fmt, ...);
53 
55 
57 
59 
61 
63 
65 
67 
69 
70 gboolean remmina_nx_session_open(RemminaNXSession *nx, const gchar *server, guint port, const gchar *private_key_file, RemminaNXPassphraseCallback passphrase_func, gpointer userdata);
71 
72 gboolean remmina_nx_session_login(RemminaNXSession *nx, const gchar *username, const gchar *password);
73 
74 void remmina_nx_session_add_parameter(RemminaNXSession *nx, const gchar *name, const gchar *valuefmt, ...);
75 
77 
78 void remmina_nx_session_set_tree_view(RemminaNXSession *nx, GtkTreeView *tree);
79 
80 gboolean remmina_nx_session_iter_first(RemminaNXSession *nx, GtkTreeIter *iter);
81 
82 gboolean remmina_nx_session_iter_next(RemminaNXSession *nx, GtkTreeIter *iter);
83 
84 gchar *remmina_nx_session_iter_get(RemminaNXSession *nx, GtkTreeIter *iter, gint column);
85 
86 void remmina_nx_session_iter_set(RemminaNXSession *nx, GtkTreeIter *iter, gint column, const gchar *data);
87 
89 
91 
93 
95 
97 
99 
100 gboolean remmina_nx_session_invoke_proxy(RemminaNXSession *nx, gint display, GChildWatchFunc exit_func, gpointer user_data);
101 
103 
104 G_END_DECLS
void remmina_nx_session_add_parameter(RemminaNXSession *nx, const gchar *name, const gchar *valuefmt,...)
Definition: nx_session.c:634
gboolean remmina_nx_session_iter_next(RemminaNXSession *nx, GtkTreeIter *iter)
Definition: nx_session.c:697
void remmina_nx_session_set_localport(RemminaNXSession *nx, gint localport)
Definition: nx_session.c:244
gboolean remmina_nx_session_has_error(RemminaNXSession *nx)
Definition: nx_session.c:216
gboolean remmina_nx_session_terminate(RemminaNXSession *nx)
Definition: nx_session.c:767
void(* RemminaNXLogCallback)(const gchar *fmt,...)
Definition: nx_session.h:52
gboolean remmina_nx_session_list(RemminaNXSession *nx)
Definition: nx_session.c:667
gboolean remmina_nx_session_tunnel_open(RemminaNXSession *nx)
Definition: nx_session.c:881
const gchar * remmina_nx_session_get_error(RemminaNXSession *nx)
Definition: nx_session.c:223
void remmina_nx_session_clear_error(RemminaNXSession *nx)
Definition: nx_session.c:229
gchar * remmina_nx_session_iter_get(RemminaNXSession *nx, GtkTreeIter *iter, gint column)
Definition: nx_session.c:706
gboolean remmina_nx_session_login(RemminaNXSession *nx, const gchar *username, const gchar *password)
Definition: nx_session.c:611
gboolean(* RemminaNXPassphraseCallback)(gchar **passphrase, gpointer userdata)
Definition: nx_session.h:51
void remmina_nx_session_set_tree_view(RemminaNXSession *nx, GtkTreeView *tree)
Definition: nx_session.c:683
gboolean remmina_nx_session_start(RemminaNXSession *nx)
Definition: nx_session.c:746
gboolean remmina_nx_session_invoke_proxy(RemminaNXSession *nx, gint display, GChildWatchFunc exit_func, gpointer user_data)
Definition: nx_session.c:951
RemminaNXLogCallback log_callback
Definition: nx_session.c:99
RemminaNXSession * remmina_nx_session_new(void)
Definition: nx_session.c:129
gboolean remmina_nx_session_iter_first(RemminaNXSession *nx, GtkTreeIter *iter)
Definition: nx_session.c:689
gboolean remmina_nx_session_open(RemminaNXSession *nx, const gchar *server, guint port, const gchar *private_key_file, RemminaNXPassphraseCallback passphrase_func, gpointer userdata)
Definition: nx_session.c:529
void remmina_nx_session_set_encryption(RemminaNXSession *nx, gint encryption)
Definition: nx_session.c:238
gboolean remmina_nx_session_attach(RemminaNXSession *nx)
Definition: nx_session.c:753
gboolean remmina_nx_session_allow_start(RemminaNXSession *nx)
Definition: nx_session.c:721
void remmina_nx_session_iter_set(RemminaNXSession *nx, GtkTreeIter *iter, gint column, const gchar *data)
Definition: nx_session.c:715
void remmina_nx_session_free(RemminaNXSession *nx)
Definition: nx_session.c:145
void remmina_nx_session_set_log_callback(RemminaNXSession *nx, RemminaNXLogCallback log_callback)
Definition: nx_session.c:250
gboolean remmina_nx_session_restore(RemminaNXSession *nx)
Definition: nx_session.c:760
void remmina_nx_session_bye(RemminaNXSession *nx)
Definition: nx_session.c:1002