diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-07-18 17:36:44 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2012-08-01 12:14:18 -0300 |
commit | 2672f6a1f43d054c0aab34b623f0f0e6edd8ed5f (patch) | |
tree | af964ed59f02f34420c464b2812819b349e2d54f /daemon/gdm-session-worker.h | |
parent | ae725b063b007f75b265c82cfa0275f16233aee7 (diff) | |
download | gdm-2672f6a1f43d054c0aab34b623f0f0e6edd8ed5f.tar.gz |
daemon: Replace old method/signal-based API with async method calls
Before, the session worker and session communicated by a series of signals
and methods... but backwards. The session worker would listen for a series
of signals sent out by the session, and respond back by calling methods on
it. This requires a lot of annoying, silly manual labor when trying to add
another method to the API.
So, reverse the API so that the worker manager calls async methods on the
worker itself.
https://bugzilla.gnome.org/show_bug.cgi?id=678057
Diffstat (limited to 'daemon/gdm-session-worker.h')
-rw-r--r-- | daemon/gdm-session-worker.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/daemon/gdm-session-worker.h b/daemon/gdm-session-worker.h index da5ec3ff..71805a00 100644 --- a/daemon/gdm-session-worker.h +++ b/daemon/gdm-session-worker.h @@ -23,6 +23,9 @@ #include <glib-object.h> +#include "gdm-session-worker-glue.h" +#include "gdm-session-worker-common.h" + G_BEGIN_DECLS #define GDM_TYPE_SESSION_WORKER (gdm_session_worker_get_type ()) @@ -32,38 +35,20 @@ G_BEGIN_DECLS #define GDM_IS_SESSION_WORKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDM_TYPE_SESSION_WORKER)) #define GDM_SESSION_WORKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GDM_TYPE_SESSION_WORKER, GdmSessionWorkerClass)) -#define GDM_SESSION_WORKER_ERROR (gdm_session_worker_error_quark ()) - -typedef enum _GdmSessionWorkerError { - GDM_SESSION_WORKER_ERROR_GENERIC = 0, - GDM_SESSION_WORKER_ERROR_WITH_SESSION_COMMAND, - GDM_SESSION_WORKER_ERROR_FORKING, - GDM_SESSION_WORKER_ERROR_OPENING_MESSAGE_PIPE, - GDM_SESSION_WORKER_ERROR_COMMUNICATING, - GDM_SESSION_WORKER_ERROR_WORKER_DIED, - GDM_SESSION_WORKER_ERROR_SERVICE_UNAVAILABLE, - GDM_SESSION_WORKER_ERROR_AUTHENTICATING, - GDM_SESSION_WORKER_ERROR_AUTHORIZING, - GDM_SESSION_WORKER_ERROR_OPENING_LOG_FILE, - GDM_SESSION_WORKER_ERROR_OPENING_SESSION, - GDM_SESSION_WORKER_ERROR_GIVING_CREDENTIALS -} GdmSessionWorkerError; - typedef struct GdmSessionWorkerPrivate GdmSessionWorkerPrivate; typedef struct { - GObject parent; + GdmDBusWorkerSkeleton parent; GdmSessionWorkerPrivate *priv; } GdmSessionWorker; typedef struct { - GObjectClass parent_class; + GdmDBusWorkerSkeletonClass parent_class; } GdmSessionWorkerClass; GType gdm_session_worker_get_type (void); -GQuark gdm_session_worker_error_quark (void); GdmSessionWorker * gdm_session_worker_new (const char *server_address, gboolean is_for_reauth) G_GNUC_MALLOC; |