[X2Go-Commits] [libx2goclient] 35/132: src/x2goclient-network-ssh.c: move (dis-)connect pointer types around.

git-admin at x2go.org git-admin at x2go.org
Fri Dec 3 15:26:30 CET 2021


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

x2go pushed a commit to branch master
in repository libx2goclient.

commit 1dffde5ca34c0abcfc222cf676f2f3c1f83696e0
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Mar 20 06:46:15 2021 +0100

    src/x2goclient-network-ssh.c: move (dis-)connect pointer types around.
    
    No actual code change.
---
 src/x2goclient-network-ssh.c | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index b057124..5fe7d02 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -79,18 +79,6 @@ struct _X2GoClientNetworkOptionsSSH {
 
 G_DEFINE_TYPE (X2GoClientNetworkOptionsSSH, x2goclient_network_options_ssh, X2GOCLIENT_TYPE_NETWORK_OPTIONS);
 
-
-/*
- * This is a bit unsafe and odd, but we need a function pointer (proto)type
- * for later use.
- *
- * It probably makes sense to keep it as generic as possible, though, to
- * improve maintainability.
- */
-typedef gboolean (*parent_connect_type) (void * const self, void * const gerr);
-typedef gboolean (*parent_disconnect_type) (void * const self, void * const gerr);
-
-
 static void x2goclient_network_options_ssh_class_init (X2GoClientNetworkOptionsSSHClass * const klass) {
 }
 
@@ -190,6 +178,16 @@ typedef struct sockaddr_ho_ {
  * An example of a more abstract implementation is #X2GoClientNetwork.
 */
 
+/*
+ * This is a bit unsafe and odd, but we need a function pointer (proto)type
+ * for later use.
+ *
+ * It probably makes sense to keep it as generic as possible, though, to
+ * improve maintainability.
+ */
+typedef gboolean (*parent_connect_type) (void * const self, void * const gerr);
+typedef gboolean (*parent_disconnect_type) (void * const self, void * const gerr);
+
 /**
  * X2GoClientNetworkSSH:
  *

--
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