]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/surfaceflinger-server.c
Launchpad automatic translations update.
[sojka/lightdm.git] / src / surfaceflinger-server.c
1 /*
2  * Copyright (C) 2013 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  * 
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #include <string.h>
13
14 #include "surfaceflinger-server.h"
15
16 G_DEFINE_TYPE (SurfaceflingerServer, surfaceflinger_server, DISPLAY_SERVER_TYPE);
17
18 SurfaceflingerServer *surfaceflinger_server_new (void)
19 {
20     return g_object_new (SURFACEFLINGER_SERVER_TYPE, NULL);  
21 }
22
23 static const gchar *
24 surfaceflinger_server_get_session_type (DisplayServer *server)
25 {
26     return "surfaceflinger";
27 }
28
29 static void
30 surfaceflinger_server_init (SurfaceflingerServer *server)
31 {
32     display_server_set_name (DISPLAY_SERVER (server), "sf");
33 }
34
35 static void
36 surfaceflinger_server_class_init (SurfaceflingerServerClass *klass)
37 {
38     DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass);
39
40     display_server_class->get_session_type = surfaceflinger_server_get_session_type;
41 }