summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-worker-job.h
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-12-23 19:19:56 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-12-25 12:46:11 +0100
commitf41a24a33df0dec79731e7154eea5ba9dffdce30 (patch)
treee78feb2af40fb8fc92c2478e4ed475edcce099b2 /daemon/gdm-session-worker-job.h
parente5ff49fb1fbcd363f4080afdbe8d2afdb0d9ad6a (diff)
downloadgdm-f41a24a33df0dec79731e7154eea5ba9dffdce30.tar.gz
session-worker-job: use G_DECLARE_FINAL_TYPE
Diffstat (limited to 'daemon/gdm-session-worker-job.h')
-rw-r--r--daemon/gdm-session-worker-job.h29
1 files changed, 2 insertions, 27 deletions
diff --git a/daemon/gdm-session-worker-job.h b/daemon/gdm-session-worker-job.h
index 8494ff4c..e9b9c8d6 100644
--- a/daemon/gdm-session-worker-job.h
+++ b/daemon/gdm-session-worker-job.h
@@ -26,34 +26,9 @@
G_BEGIN_DECLS
-#define GDM_TYPE_SESSION_WORKER_JOB (gdm_session_worker_job_get_type ())
-#define GDM_SESSION_WORKER_JOB(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_SESSION_WORKER_JOB, GdmSessionWorkerJob))
-#define GDM_SESSION_WORKER_JOB_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_SESSION_WORKER_JOB, GdmSessionWorkerJobClass))
-#define GDM_IS_SESSION_WORKER_JOB(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_SESSION_WORKER_JOB))
-#define GDM_IS_SESSION_WORKER_JOB_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_SESSION_WORKER_JOB))
-#define GDM_SESSION_WORKER_JOB_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_SESSION_WORKER_JOB, GdmSessionWorkerJobClass))
+#define GDM_TYPE_SESSION_WORKER_JOB (gdm_session_worker_job_get_type ())
+G_DECLARE_FINAL_TYPE (GdmSessionWorkerJob, gdm_session_worker_job, GDM, SESSION_WORKER_JOB, GObject)
-typedef struct GdmSessionWorkerJobPrivate GdmSessionWorkerJobPrivate;
-
-typedef struct
-{
- GObject parent;
- GdmSessionWorkerJobPrivate *priv;
-} GdmSessionWorkerJob;
-
-typedef struct
-{
- GObjectClass parent_class;
-
- void (* started) (GdmSessionWorkerJob *session_worker_job);
- void (* exited) (GdmSessionWorkerJob *session_worker_job,
- int exit_code);
-
- void (* died) (GdmSessionWorkerJob *session_worker_job,
- int signal_number);
-} GdmSessionWorkerJobClass;
-
-GType gdm_session_worker_job_get_type (void);
GdmSessionWorkerJob * gdm_session_worker_job_new (void);
void gdm_session_worker_job_set_server_address (GdmSessionWorkerJob *session_worker_job,
const char *server_address);