[134] | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
---|
| 2 | * |
---|
| 3 | * Copyright (C) 2006 Ray Strode <rstrode@redhat.com> |
---|
| 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, or (at your option) |
---|
| 8 | * 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., 59 Temple Place - Suite 330, Boston, MA |
---|
| 18 | * 02111-1307, USA. |
---|
| 19 | */ |
---|
| 20 | |
---|
| 21 | #ifndef __GDM_SESSION_DIRECT_H |
---|
| 22 | #define __GDM_SESSION_DIRECT_H |
---|
| 23 | |
---|
| 24 | #include <glib-object.h> |
---|
| 25 | #include "gdm-session.h" |
---|
| 26 | |
---|
| 27 | G_BEGIN_DECLS |
---|
| 28 | |
---|
| 29 | #define GDM_TYPE_SESSION_DIRECT (gdm_session_direct_get_type ()) |
---|
| 30 | #define GDM_SESSION_DIRECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDM_TYPE_SESSION_DIRECT, GdmSessionDirect)) |
---|
| 31 | #define GDM_SESSION_DIRECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDM_TYPE_SESSION_DIRECT, GdmSessionDirectClass)) |
---|
| 32 | #define GDM_IS_SESSION_DIRECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDM_TYPE_SESSION_DIRECT)) |
---|
| 33 | #define GDM_IS_SESSION_DIRECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDM_TYPE_SESSION_DIRECT)) |
---|
| 34 | #define GDM_SESSION_DIRECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GDM_TYPE_SESSION_DIRECT, GdmSessionDirectClass)) |
---|
| 35 | |
---|
| 36 | typedef struct _GdmSessionDirectPrivate GdmSessionDirectPrivate; |
---|
| 37 | |
---|
| 38 | typedef struct |
---|
| 39 | { |
---|
| 40 | GObject parent; |
---|
| 41 | GdmSessionDirectPrivate *priv; |
---|
| 42 | } GdmSessionDirect; |
---|
| 43 | |
---|
| 44 | typedef struct |
---|
| 45 | { |
---|
| 46 | GObjectClass parent_class; |
---|
| 47 | } GdmSessionDirectClass; |
---|
| 48 | |
---|
| 49 | GType gdm_session_direct_get_type (void); |
---|
| 50 | |
---|
| 51 | GdmSessionDirect * gdm_session_direct_new (const char *display_id, |
---|
| 52 | const char *display_name, |
---|
| 53 | const char *display_hostname, |
---|
| 54 | const char *display_device, |
---|
| 55 | const char *display_x11_authority_file, |
---|
| 56 | gboolean display_is_local) G_GNUC_MALLOC; |
---|
| 57 | |
---|
| 58 | char * gdm_session_direct_get_username (GdmSessionDirect *session_direct); |
---|
| 59 | |
---|
| 60 | /* Exported methods */ |
---|
| 61 | gboolean gdm_session_direct_restart (GdmSessionDirect *session_direct, |
---|
| 62 | GError **error); |
---|
| 63 | gboolean gdm_session_direct_stop (GdmSessionDirect *session_direct, |
---|
| 64 | GError **error); |
---|
| 65 | gboolean gdm_session_direct_detach (GdmSessionDirect *session_direct, |
---|
| 66 | GError **error); |
---|
| 67 | |
---|
| 68 | G_END_DECLS |
---|
| 69 | |
---|
| 70 | #endif /* GDM_SESSION_DIRECT_H */ |
---|