This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository libx2goclient. commit 77d3c7a799ce63d1b2d306b06bd92556aa7c07bf Author: Mihai Moldovan <ionic@ionic.de> Date: Wed May 27 09:58:43 2020 +0200 src/: add x2goclient-openssh-bugs.{c,h}. Simple GBoxed-type wrapper for an OpenSSH bug quirks struct, essentially copied from x2goclient-openssh-version.{c,h}. Needs actual content/bug quirk bits. --- src/x2goclient-openssh-bugs.c | 52 +++++++++++++++++++++++++++++++++++ src/x2goclient-openssh-bugs.h | 64 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/src/x2goclient-openssh-bugs.c b/src/x2goclient-openssh-bugs.c new file mode 100644 index 0000000..68ccf83 --- /dev/null +++ b/src/x2goclient-openssh-bugs.c @@ -0,0 +1,52 @@ +/* -*- Mode: C; c-set-style: linux indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 8 -*- */ + +/* x2goclient-openssh-bugs.c - Simple OpenSSH bug quirks struct and Glib Boxed wrapper implementation + + Copyright (C) 2019-2020 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. + */ + +#include <glib.h> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "x2goclient-openssh-bugs.h" + +X2GoClientOpenSSHBugs* x2goclient_openssh_bugs_new (void) { + return (g_slice_new0 (X2GoClientOpenSSHBugs)); +} + +void x2goclient_openssh_bugs_free (X2GoClientOpenSSHBugs *openssh_bugs) { + g_slice_free (X2GoClientOpenSSHBugs, openssh_bugs); +} + +static X2GoClientOpenSSHBugs* x2goclient_openssh_bugs_copy (X2GoClientOpenSSHBugs *src) { + X2GoClientOpenSSHBugs *dst = NULL; + + g_return_val_if_fail (src != NULL, dst); + + dst = x2goclient_openssh_bugs_new (); + *dst = *src; + + return (dst); +} + +G_DEFINE_BOXED_TYPE (X2GoClientOpenSSHBugs, x2goclient_openssh_bugs, &x2goclient_openssh_bugs_copy, &x2goclient_openssh_bugs_free) diff --git a/src/x2goclient-openssh-bugs.h b/src/x2goclient-openssh-bugs.h new file mode 100644 index 0000000..f08e484 --- /dev/null +++ b/src/x2goclient-openssh-bugs.h @@ -0,0 +1,64 @@ +/* -*- Mode: C; c-set-style: linux indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 8 -*- */ + +/* x2goclient-openssh-bugs.h - Simple OpenSSH bug quirks struct and Glib Boxed wrapper + + Copyright (C) 2019-2020 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_bugs_h +#define x2goclient_openssh_bugs_h + +#include <glib-object.h> + +G_BEGIN_DECLS + +/* + * Bugs in OpenSSH. + * + * Please document each entry. + * + * OpenSSH doesn't do that internally, which is a pain because bug semantics + * must be inferred from the code locations the constants are used in. We don't + * want this to happen as well. + */ +typedef struct X2GoClientOpenSSHBugs_ { +} X2GoClientOpenSSHBugs; + + +#define X2GOCLIENT_TYPE_OPENSSH_BUGS (x2goclient_openssh_bugs_get_type ()) + + +GType x2goclient_openssh_bugs_get_type (void) G_GNUC_CONST; + +X2GoClientOpenSSHBugs* x2goclient_openssh_bugs_new (void); +void x2goclient_openssh_bugs_free (X2GoClientOpenSSHBugs *openssh_bugs); + +/* + * Error handling helpers. + */ +#define X2GOCLIENT_OPENSSH_BUGS_ERROR g_quark_from_static_string ("x2goclient-openssh-bugs") + +enum { +}; + + +G_END_DECLS + +#endif /* x2goclient_openssh_bugs_h */ -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git