1 /* gdm-linux-session-auditor.h - Object for linux auditing of session login/logout 2 * 3 * Copyright (C) 2004, 2008 Sun Microsystems, Inc. 4 * Copyright (C) 2005, 2008 Red Hat, Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 * 02110-1301, USA. 20 * 21 * Written by: Brian A. Cameron <Brian.Cameron@sun.com> 22 * Gary Winiger <Gary.Winiger@sun.com> 23 * Ray Strode <rstrode@redhat.com> 24 * Steve Grubb <sgrubb@redhat.com> 25 */ 26 #ifndef GDM_SESSION_LINUX_AUDITOR_H 27 #define GDM_SESSION_LINUX_AUDITOR_H 28 29 #include <glib.h> 30 #include <glib-object.h> 31 32 #include "gdm-session-auditor.h" 33 34 G_BEGIN_DECLS 35 #define GDM_TYPE_SESSION_LINUX_AUDITOR (gdm_session_linux_auditor_get_type ()) 36 #define GDM_SESSION_LINUX_AUDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDM_TYPE_SESSION_LINUX_AUDITOR, GdmSessionLinuxAuditor)) 37 #define GDM_SESSION_LINUX_AUDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDM_TYPE_SESSION_LINUX_AUDITOR, GdmSessionLinuxAuditorClass)) 38 #define GDM_IS_SESSION_LINUX_AUDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDM_TYPE_SESSION_LINUX_AUDITOR)) 39 #define GDM_IS_SESSION_LINUX_AUDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDM_TYPE_SESSION_LINUX_AUDITOR)) 40 #define GDM_SESSION_LINUX_AUDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GDM_TYPE_SESSION_LINUX_AUDITOR, GdmSessionLinuxAuditorClass)) 41 #define GDM_SESSION_LINUX_AUDITOR_ERROR (gdm_session_linux_auditor_error_quark ()) 42 typedef struct _GdmSessionLinuxAuditor GdmSessionLinuxAuditor; 43 typedef struct _GdmSessionLinuxAuditorClass GdmSessionLinuxAuditorClass; 44 typedef struct _GdmSessionLinuxAuditorPrivate GdmSessionLinuxAuditorPrivate; 45 46 struct _GdmSessionLinuxAuditor 47 { 48 GdmSessionAuditor parent; 49 50 /*< private > */ 51 GdmSessionLinuxAuditorPrivate *priv; 52 }; 53 54 struct _GdmSessionLinuxAuditorClass 55 { 56 GdmSessionAuditorClass parent_class; 57 }; 58 59 GType gdm_session_linux_auditor_get_type (void); 60 GdmSessionAuditor *gdm_session_linux_auditor_new (const char *hostname, 61 const char *display_device); 62 G_END_DECLS 63 #endif /* GDM_SESSION_LINUX_AUDITOR_H */ 64