Back to index

lightdm  1.3.2
display-server.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  * 
00005  * This program is free software: you can redistribute it and/or modify it under
00006  * the terms of the GNU General Public License as published by the Free Software
00007  * Foundation, either version 3 of the License, or (at your option) any later
00008  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _DISPLAY_SERVER_H_
00013 #define _DISPLAY_SERVER_H_
00014 
00015 #include <glib-object.h>
00016 
00017 G_BEGIN_DECLS
00018 
00019 #define DISPLAY_SERVER_TYPE (display_server_get_type())
00020 #define DISPLAY_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_SERVER_TYPE, DisplayServer))
00021 #define DISPLAY_SERVER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), DISPLAY_SERVER_TYPE, DisplayServerClass))
00022 #define DISPLAY_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DISPLAY_SERVER_TYPE, DisplayServerClass))
00023 
00024 typedef struct DisplayServerPrivate DisplayServerPrivate;
00025 
00026 typedef struct
00027 {
00028     GObject               parent_instance;
00029     DisplayServerPrivate *priv;
00030 } DisplayServer;
00031 
00032 typedef struct
00033 {
00034     GObjectClass parent_class;
00035 
00036     void (*ready)(DisplayServer *server);
00037     void (*stopped)(DisplayServer *server);
00038 
00039     gboolean (*start)(DisplayServer *server);
00040     void (*stop)(DisplayServer *server);
00041     gboolean (*get_is_stopped)(DisplayServer *server);
00042 } DisplayServerClass;
00043 
00044 GType display_server_get_type (void);
00045 
00046 void display_server_set_name (DisplayServer *server, const gchar *name);
00047 
00048 const gchar *display_server_get_name (DisplayServer *server);
00049 
00050 void display_server_set_start_local_sessions (DisplayServer *server, gboolean start_local_sessions);
00051 
00052 gboolean display_server_get_start_local_sessions (DisplayServer *server);
00053 
00054 gboolean display_server_start (DisplayServer *server);
00055 
00056 void display_server_stop (DisplayServer *server);
00057 
00058 gboolean display_server_get_is_stopped (DisplayServer *server);
00059 
00060 G_END_DECLS
00061 
00062 #endif /* _DISPLAY_SERVER_H_ */