diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2018-12-23 18:21:14 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2018-12-25 12:46:06 +0100 |
commit | 3d3cc6ab194741bdce7b1ad86023db9098c266e6 (patch) | |
tree | b08b1d3d674d5b4f7332ea11cc27b9b9ea8f3ad2 /daemon/gdm-session-auditor.h | |
parent | 012404a7f5085439b3f0f5495af1ad186070db1b (diff) | |
download | gdm-3d3cc6ab194741bdce7b1ad86023db9098c266e6.tar.gz |
session-auditor: use G_DECLARE_DERIVABLE_TYPE
Diffstat (limited to 'daemon/gdm-session-auditor.h')
-rw-r--r-- | daemon/gdm-session-auditor.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/daemon/gdm-session-auditor.h b/daemon/gdm-session-auditor.h index 1ebf390f..dde00f68 100644 --- a/daemon/gdm-session-auditor.h +++ b/daemon/gdm-session-auditor.h @@ -30,24 +30,9 @@ #include <glib-object.h> G_BEGIN_DECLS -#define GDM_TYPE_SESSION_AUDITOR (gdm_session_auditor_get_type ()) -#define GDM_SESSION_AUDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDM_TYPE_SESSION_AUDITOR, GdmSessionAuditor)) -#define GDM_SESSION_AUDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDM_TYPE_SESSION_AUDITOR, GdmSessionAuditorClass)) -#define GDM_IS_SESSION_AUDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDM_TYPE_SESSION_AUDITOR)) -#define GDM_IS_SESSION_AUDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDM_TYPE_SESSION_AUDITOR)) -#define GDM_SESSION_AUDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GDM_TYPE_SESSION_AUDITOR, GdmSessionAuditorClass)) -#define GDM_SESSION_AUDITOR_ERROR (gdm_session_auditor_error_quark ()) -typedef struct _GdmSessionAuditor GdmSessionAuditor; -typedef struct _GdmSessionAuditorClass GdmSessionAuditorClass; -typedef struct _GdmSessionAuditorPrivate GdmSessionAuditorPrivate; - -struct _GdmSessionAuditor -{ - GObject parent; - /*< private > */ - GdmSessionAuditorPrivate *priv; -}; +#define GDM_TYPE_SESSION_AUDITOR (gdm_session_auditor_get_type ()) +G_DECLARE_DERIVABLE_TYPE (GdmSessionAuditor, gdm_session_auditor, GDM, SESSION_AUDITOR, GObject) struct _GdmSessionAuditorClass { @@ -63,7 +48,6 @@ struct _GdmSessionAuditorClass void (* report_logout) (GdmSessionAuditor *auditor); }; -GType gdm_session_auditor_get_type (void); GdmSessionAuditor *gdm_session_auditor_new (const char *hostname, const char *display_device); void gdm_session_auditor_set_username (GdmSessionAuditor *auditor, |