1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- 2 * 3 * Copyright (C) 2008 Red Hat, Inc. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 */ 19 20 #ifndef __GDM_CHOOSER_HOST__ 21 #define __GDM_CHOOSER_HOST__ 22 23 #include <glib-object.h> 24 #include "gdm-address.h" 25 26 G_BEGIN_DECLS 27 28 #define GDM_TYPE_CHOOSER_HOST (gdm_chooser_host_get_type ()) 29 #define GDM_CHOOSER_HOST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_CHOOSER_HOST, GdmChooserHost)) 30 #define GDM_CHOOSER_HOST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_CHOOSER_HOST, GdmChooserHostClass)) 31 #define GDM_IS_CHOOSER_HOST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_CHOOSER_HOST)) 32 #define GDM_IS_CHOOSER_HOST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_CHOOSER_HOST)) 33 #define GDM_CHOOSER_HOST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_CHOOSER_HOST, GdmChooserHostClass)) 34 35 typedef enum { 36 GDM_CHOOSER_HOST_KIND_XDMCP = 1 << 0, 37 } GdmChooserHostKind; 38 39 #define GDM_CHOOSER_HOST_KIND_MASK_ALL (GDM_CHOOSER_HOST_KIND_XDMCP) 40 41 typedef struct GdmChooserHostPrivate GdmChooserHostPrivate; 42 43 typedef struct 44 { 45 GObject parent; 46 GdmChooserHostPrivate *priv; 47 } GdmChooserHost; 48 49 typedef struct 50 { 51 GObjectClass parent_class; 52 } GdmChooserHostClass; 53 54 GType gdm_chooser_host_get_type (void) G_GNUC_CONST; 55 56 G_CONST_RETURN char *gdm_chooser_host_get_description (GdmChooserHost *chooser_host); 57 GdmAddress * gdm_chooser_host_get_address (GdmChooserHost *chooser_host); 58 gboolean gdm_chooser_host_get_willing (GdmChooserHost *chooser_host); 59 GdmChooserHostKind gdm_chooser_host_get_kind (GdmChooserHost *chooser_host); 60 61 G_END_DECLS 62 63 #endif 64