This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository libx2goclient.
commit 5d80a109baa1bed55772d02a212ed7a30d218b7d Author: Mihai Moldovan <io...@ionic.de> Date: Thu Mar 26 14:46:08 2020 +0100 src/: add x2goclient-openssh-version.{c,h}. Simple GBoxed-type wrapper for an OpenSSH version struct. Needs actual version fetching and updating code. --- src/x2goclient-openssh-version.c | 48 ++++++++++++++++++++++++++++++++++++++ src/x2goclient-openssh-version.h | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/src/x2goclient-openssh-version.c b/src/x2goclient-openssh-version.c new file mode 100644 index 0000000..3ea53db --- /dev/null +++ b/src/x2goclient-openssh-version.c @@ -0,0 +1,48 @@ +/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +/* x2goclient-openssh-version.c - Simple OpenSSH Glib Boxed wrapper implementation + + Copyright (C) 2019 Mike Gabriel + Copyright (C) 2019-2020 Mihai Moldovan + All rights reserved. + + The libx2goclient library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The libx2goclient library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Mate Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "x2goclient-openssh-version.h" + +X2GoClientOpenSSHVersion* x2goclient_openssh_version_new (void) { + return (g_slice_new0 (X2GoClientOpenSSHVersion)); +} + +void x2goclient_openssh_version_free (X2GoClientOpenSSHVersion *openssh_version) { + g_free (openssh_version); +} + +static X2GoClientOpenSSHVersion* x2goclient_openssh_version_copy (X2GoClientOpenSSHVersion *src) { + g_return_val_if_fail (src != NULL, NULL); + + X2GoClientOpenSSHVersion *dst = x2goclient_openssh_version_new (); + *dst = *src; + + return (dst); +} + +G_DEFINE_BOXED_TYPE (X2GoClientOpenSSHVersion, x2goclient_openssh_version, &x2goclient_openssh_version_copy, &x2goclient_openssh_version_free) diff --git a/src/x2goclient-openssh-version.h b/src/x2goclient-openssh-version.h new file mode 100644 index 0000000..af6aebe --- /dev/null +++ b/src/x2goclient-openssh-version.h @@ -0,0 +1,50 @@ +/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +/* x2goclient-openssh-version.h - Simple OpenSSH version struct and Glib Boxed wrapper + + Copyright (C) 2019 Mike Gabriel + Copyright (C) 2019-2020 Mihai Moldovan + All rights reserved. + + The libx2goclient library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The libx2goclient library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Mate Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301, USA. + */ + +#ifndef x2goclient_openssh_version_h +#define x2goclient_openssh_version_h + +#include <glib-object.h> + +G_BEGIN_DECLS + +typedef struct X2GoClientOpenSSHVersion_ { + guint32 major; + guint32 minor; + guint32 patch; + gchar addon[256]; +} X2GoClientOpenSSHVersion; + + +#define X2GOCLIENT_TYPE_OPENSSH_VERSION (x2goclient_openssh_version_get_type ()) + + +GType x2goclient_openssh_version_get_type (void) G_GNUC_CONST; + +X2GoClientOpenSSHVersion* x2goclient_openssh_version_new (void); +void x2goclient_openssh_version_free (X2GoClientOpenSSHVersion *openssh_version); + +G_END_DECLS + +#endif /* x2goclient_openssh_version_h */ -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits