2 * Copyright (C) 2013 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
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
14 #include "surfaceflinger-server.h"
16 G_DEFINE_TYPE (SurfaceflingerServer, surfaceflinger_server, DISPLAY_SERVER_TYPE);
18 SurfaceflingerServer *surfaceflinger_server_new (void)
20 return g_object_new (SURFACEFLINGER_SERVER_TYPE, NULL);
24 surfaceflinger_server_get_session_type (DisplayServer *server)
26 return "surfaceflinger";
30 surfaceflinger_server_init (SurfaceflingerServer *server)
32 display_server_set_name (DISPLAY_SERVER (server), "sf");
36 surfaceflinger_server_class_init (SurfaceflingerServerClass *klass)
38 DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass);
40 display_server_class->get_session_type = surfaceflinger_server_get_session_type;