Welcome to mirror list, hosted at ThFree Co, Russian Federation.

nx_session.h - gitlab.com/Remmina/remmina-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9f809198ed3cd67dbb694dc9088a828bd6d4c65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Remmina - The GTK+ Remote Desktop Client
 * Copyright (C) 2010 Vic Lee
 * Copyright (C) 2017-2021 Antenore Gatta, Giovanni Panozzo
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301, USA.
 *
 *  In addition, as a special exception, the copyright holders give
 *  permission to link the code of portions of this program with the
 *  OpenSSL library under certain conditions as described in each
 *  individual source file, and distribute linked combinations
 *  including the two.
 *  You must obey the GNU General Public License in all respects
 *  for all of the code used other than OpenSSL. *  If you modify
 *  file(s) with this exception, you may extend this exception to your
 *  version of the file(s), but you are not obligated to do so. *  If you
 *  do not wish to do so, delete this exception statement from your
 *  version. *  If you delete this exception statement from all source
 *  files in the program, then also delete it here.
 *
 */

#pragma once

G_BEGIN_DECLS

enum {
	REMMINA_NX_SESSION_COLUMN_DISPLAY,
	REMMINA_NX_SESSION_COLUMN_TYPE,
	REMMINA_NX_SESSION_COLUMN_ID,
	REMMINA_NX_SESSION_COLUMN_STATUS,
	REMMINA_NX_SESSION_COLUMN_NAME,
	REMMINA_NX_SESSION_N_COLUMNS
};

typedef struct _RemminaNXSession RemminaNXSession;

typedef gboolean (*RemminaNXPassphraseCallback)(gchar **passphrase, gpointer userdata);
typedef void (*RemminaNXLogCallback)(const gchar *fmt, ...);

RemminaNXSession *remmina_nx_session_new(void);

void remmina_nx_session_free(RemminaNXSession *nx);

gboolean remmina_nx_session_has_error(RemminaNXSession *nx);

const gchar *remmina_nx_session_get_error(RemminaNXSession *nx);

void remmina_nx_session_clear_error(RemminaNXSession *nx);

void remmina_nx_session_set_encryption(RemminaNXSession *nx, gint encryption);

void remmina_nx_session_set_localport(RemminaNXSession *nx, gint localport);

void remmina_nx_session_set_log_callback(RemminaNXSession *nx, RemminaNXLogCallback log_callback);

gboolean remmina_nx_session_open(RemminaNXSession *nx, const gchar *server, guint port, const gchar *private_key_file, RemminaNXPassphraseCallback passphrase_func, gpointer userdata);

gboolean remmina_nx_session_login(RemminaNXSession *nx, const gchar *username, const gchar *password);

void remmina_nx_session_add_parameter(RemminaNXSession *nx, const gchar *name, const gchar *valuefmt, ...);

gboolean remmina_nx_session_list(RemminaNXSession *nx);

void remmina_nx_session_set_tree_view(RemminaNXSession *nx, GtkTreeView *tree);

gboolean remmina_nx_session_iter_first(RemminaNXSession *nx, GtkTreeIter *iter);

gboolean remmina_nx_session_iter_next(RemminaNXSession *nx, GtkTreeIter *iter);

gchar *remmina_nx_session_iter_get(RemminaNXSession *nx, GtkTreeIter *iter, gint column);

void remmina_nx_session_iter_set(RemminaNXSession *nx, GtkTreeIter *iter, gint column, const gchar *data);

gboolean remmina_nx_session_allow_start(RemminaNXSession *nx);

gboolean remmina_nx_session_start(RemminaNXSession *nx);

gboolean remmina_nx_session_attach(RemminaNXSession *nx);

gboolean remmina_nx_session_restore(RemminaNXSession *nx);

gboolean remmina_nx_session_terminate(RemminaNXSession *nx);

gboolean remmina_nx_session_tunnel_open(RemminaNXSession *nx);

gboolean remmina_nx_session_invoke_proxy(RemminaNXSession *nx, gint display, GChildWatchFunc exit_func, gpointer user_data);

void remmina_nx_session_bye(RemminaNXSession *nx);

G_END_DECLS