[X2Go-Commits] [libx2goclient] 03/04: src/x2goclient-network-ssh.{c, h}: implement x2goclient_network_options_ssh_to_array () as a stub to add custom OpenSSH client options.

git-admin at x2go.org git-admin at x2go.org
Mon Jan 13 23:58:50 CET 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository libx2goclient.

commit 022677128af693ac05a3bb35a220a3310546076f
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Jan 13 23:06:03 2020 +0100

    src/x2goclient-network-ssh.{c,h}: implement x2goclient_network_options_ssh_to_array () as a stub to add custom OpenSSH client options.
---
 src/x2goclient-network-ssh.c | 8 ++++++++
 src/x2goclient-network-ssh.h | 5 +++++
 2 files changed, 13 insertions(+)

diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index 3b26cfd..fb3406d 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -64,6 +64,14 @@ static void x2goclient_network_options_ssh_class_init (X2GoClientNetworkOptionsS
 static void x2goclient_network_options_ssh_init (X2GoClientNetworkOptionsSSH *self) {
 }
 
+GPtrArray* x2goclient_network_options_ssh_to_array (X2GoClientNetworkOptionsSSH *self) {
+  GPtrArray *ret = g_ptr_array_new_with_free_func (&x2goclient_clear_strings);
+
+  /* Implement actual options fetching here. */
+
+  return (ret);
+}
+
 
 /*
  * Custom sockaddr structure used to represent socket endpoints based on a FQDN
diff --git a/src/x2goclient-network-ssh.h b/src/x2goclient-network-ssh.h
index dcb83f8..636cb79 100644
--- a/src/x2goclient-network-ssh.h
+++ b/src/x2goclient-network-ssh.h
@@ -26,6 +26,7 @@
 #define x2goclient_network_ssh_h
 
 #include <glib-object.h>
+#include <gmodule.h>
 
 #include "x2goclient-network.h"
 
@@ -36,6 +37,10 @@ G_DECLARE_FINAL_TYPE (X2GoClientNetworkOptionsSSH, x2goclient_network_options_ss
 
 X2GoClientNetworkOptionsSSH* x2goclient_network_options_ssh_new (void);
 
+
+GPtrArray* x2goclient_network_options_ssh_to_array (X2GoClientNetworkOptionsSSH *self);
+
+
 #define X2GOCLIENT_TYPE_NETWORK_SSH (x2goclient_network_ssh_get_type ())
 G_DECLARE_FINAL_TYPE (X2GoClientNetworkSSH, x2goclient_network_ssh, X2GOCLIENT, NETWORK_SSH, X2GoClientNetwork)
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git


More information about the x2go-commits mailing list