diff options
Diffstat (limited to 'daemon/gdm-slave.h')
-rw-r--r-- | daemon/gdm-slave.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/daemon/gdm-slave.h b/daemon/gdm-slave.h index 79ef064c..ee3dcbc0 100644 --- a/daemon/gdm-slave.h +++ b/daemon/gdm-slave.h @@ -50,10 +50,25 @@ typedef struct gboolean (*start) (GdmSlave *slave); gboolean (*stop) (GdmSlave *slave); + gboolean (*open_session) (GdmSlave *slave, + char **address, + GError **error); + /* signals */ void (*stopped) (GdmSlave *slave); } GdmSlaveClass; +typedef enum +{ + GDM_SLAVE_ERROR_GENERIC, + GDM_SLAVE_ERROR_UNSUPPORTED, + GDM_SLAVE_ERROR_NOT_OPENED, + GDM_SLAVE_ERROR_WRONG_SESSION, +} GdmSlaveError; + +#define GDM_SLAVE_ERROR (gdm_slave_error_quark ()) + +GQuark gdm_slave_error_quark (void); GType gdm_slave_get_type (void); gboolean gdm_slave_start (GdmSlave *slave); gboolean gdm_slave_stop (GdmSlave *slave); @@ -84,10 +99,8 @@ gboolean gdm_slave_run_script (GdmSlave *slave, const char *dir, const char *username); void gdm_slave_stopped (GdmSlave *slave); - void gdm_slave_export_interface (GdmSlave *slave, GDBusInterfaceSkeleton *interface); - G_END_DECLS #endif /* __GDM_SLAVE_H */ |