From d524c8e88f558b9f2aebff39b6fbe77eab51e081 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:43:08 +0200 Subject: Adding upstream version 43.0. Signed-off-by: Daniel Baumann --- daemon/gdm-xdmcp-chooser-display.h | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 daemon/gdm-xdmcp-chooser-display.h (limited to 'daemon/gdm-xdmcp-chooser-display.h') diff --git a/daemon/gdm-xdmcp-chooser-display.h b/daemon/gdm-xdmcp-chooser-display.h new file mode 100644 index 0000000..7890afa --- /dev/null +++ b/daemon/gdm-xdmcp-chooser-display.h @@ -0,0 +1,66 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * Copyright (C) 2008 William Jon McCann + * + * 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. + * + */ + + +#ifndef __GDM_XDMCP_CHOOSER_DISPLAY_H +#define __GDM_XDMCP_CHOOSER_DISPLAY_H + +#include +#include +#include + +#include "gdm-xdmcp-display.h" +#include "gdm-address.h" + +G_BEGIN_DECLS + +#define GDM_TYPE_XDMCP_CHOOSER_DISPLAY (gdm_xdmcp_chooser_display_get_type ()) +#define GDM_XDMCP_CHOOSER_DISPLAY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_XDMCP_CHOOSER_DISPLAY, GdmXdmcpChooserDisplay)) +#define GDM_XDMCP_CHOOSER_DISPLAY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_XDMCP_CHOOSER_DISPLAY, GdmXdmcpChooserDisplayClass)) +#define GDM_IS_XDMCP_CHOOSER_DISPLAY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_XDMCP_CHOOSER_DISPLAY)) +#define GDM_IS_XDMCP_CHOOSER_DISPLAY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_XDMCP_CHOOSER_DISPLAY)) +#define GDM_XDMCP_CHOOSER_DISPLAY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_XDMCP_CHOOSER_DISPLAY, GdmXdmcpChooserDisplayClass)) + +typedef struct GdmXdmcpChooserDisplayPrivate GdmXdmcpChooserDisplayPrivate; + +typedef struct +{ + GdmXdmcpDisplay parent; +} GdmXdmcpChooserDisplay; + +typedef struct +{ + GdmXdmcpDisplayClass parent_class; + + void (* hostname_selected) (GdmXdmcpChooserDisplay *display, + const char *hostname); +} GdmXdmcpChooserDisplayClass; + +GType gdm_xdmcp_chooser_display_get_type (void); + + +GdmDisplay * gdm_xdmcp_chooser_display_new (const char *hostname, + int number, + GdmAddress *addr, + gint32 serial_number); + +G_END_DECLS + +#endif /* __GDM_XDMCP_CHOOSER_DISPLAY_H */ -- cgit v1.2.3