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

gitlab.com/Remmina/remmina-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/nx/nx_session.h')
-rw-r--r--plugins/nx/nx_session.h104
1 files changed, 104 insertions, 0 deletions
diff --git a/plugins/nx/nx_session.h b/plugins/nx/nx_session.h
new file mode 100644
index 0000000..9f80919
--- /dev/null
+++ b/plugins/nx/nx_session.h
@@ -0,0 +1,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