]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Drop the surfaceflinger seat type. This was a temporary solution while Ubuntu Phone...
authorRobert Ancell <robert.ancell@canonical.com>
Thu, 21 Aug 2014 21:36:03 +0000 (09:36 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Thu, 21 Aug 2014 21:36:03 +0000 (09:36 +1200)
src/Makefile.am
src/display-manager.c
src/seat-surfaceflinger.c [deleted file]
src/seat-surfaceflinger.h [deleted file]
src/surfaceflinger-server.c [deleted file]
src/surfaceflinger-server.h [deleted file]
tests/Makefile.am
tests/data/sessions/surfaceflinger.desktop [deleted file]
tests/scripts/surfaceflinger-autologin.conf [deleted file]
tests/test-surfaceflinger-autologin [deleted file]

index da16d630d824db0a379b12c986331f32bb9eac68..fc6f7f25d581588a126dfd2bb4e9c63a5f3ec793 100644 (file)
@@ -27,8 +27,6 @@ lightdm_SOURCES = \
        process.h \
        seat.c \
        seat.h \
-       seat-surfaceflinger.c \
-       seat-surfaceflinger.h \
        seat-unity.c \
        seat-unity.h \
        seat-xdmcp-session.c \
@@ -47,8 +45,6 @@ lightdm_SOURCES = \
        session-config.h \
        shared-data-manager.c \
        shared-data-manager.h \
-       surfaceflinger-server.c \
-       surfaceflinger-server.h \
        unity-system-compositor.c \
        unity-system-compositor.h \
        vnc-server.c \
index 0e160b8073c1b15408f5853e481b6b405d87f367..f8c8d2dfa61679e4cfac8a3c1bc19764ddd466c7 100644 (file)
@@ -20,7 +20,6 @@
 #include "seat-xlocal.h"
 #include "seat-xremote.h"
 #include "seat-unity.h"
-#include "seat-surfaceflinger.h"
 #include "plymouth.h"
 
 enum {
@@ -150,7 +149,6 @@ display_manager_init (DisplayManager *manager)
     seat_register_module ("xlocal", SEAT_XLOCAL_TYPE);
     seat_register_module ("xremote", SEAT_XREMOTE_TYPE);
     seat_register_module ("unity", SEAT_UNITY_TYPE);
-    seat_register_module ("surfaceflinger", SEAT_SURFACEFLINGER_TYPE);
 }
 
 static void
diff --git a/src/seat-surfaceflinger.c b/src/seat-surfaceflinger.c
deleted file mode 100644 (file)
index 3d7b643..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (C) 2013 Robert Ancell.
- * Author: Robert Ancell <robert.ancell@canonical.com>
- *
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
- * license.
- */
-
-#include <string.h>
-
-#include "seat-surfaceflinger.h"
-#include "surfaceflinger-server.h"
-#include "vt.h"
-
-G_DEFINE_TYPE (SeatSurfaceflinger, seat_surfaceflinger, SEAT_TYPE);
-
-static void
-seat_surfaceflinger_setup (Seat *seat)
-{
-    seat_set_supports_multi_session (seat, FALSE);
-    SEAT_CLASS (seat_surfaceflinger_parent_class)->setup (seat);
-}
-
-static DisplayServer *
-seat_surfaceflinger_create_display_server (Seat *seat, Session *session)
-{
-    const gchar *session_type;
-
-    session_type = session_get_session_type (session);
-
-    /* Allow mir types too, because Mir sessions usually support surfaceflinger
-       as an alternate mode, since Mir is frequently used on phones. */
-    if (strcmp (session_type, "surfaceflinger") == 0 || strcmp (session_type, "mir") == 0)
-        return DISPLAY_SERVER (surfaceflinger_server_new ());
-    else
-    {
-        l_warning (seat, "Can't create unsupported display server '%s'", session_type);
-        return NULL;
-    }
-}
-
-static Greeter *
-seat_surfaceflinger_create_greeter_session (Seat *seat)
-{
-    Greeter *greeter_session;
-
-    greeter_session = SEAT_CLASS (seat_surfaceflinger_parent_class)->create_greeter_session (seat);
-    session_set_env (SESSION (greeter_session), "XDG_SEAT", seat_get_name (seat));
-
-    /* Fake the VT */
-    session_set_env (SESSION (greeter_session), "XDG_VTNR", vt_can_multi_seat () ? "1" : "0");
-
-    return greeter_session;
-}
-
-static Session *
-seat_surfaceflinger_create_session (Seat *seat)
-{
-    Session *session;
-
-    session = SEAT_CLASS (seat_surfaceflinger_parent_class)->create_session (seat);
-    session_set_env (session, "XDG_SEAT", seat_get_name (seat));
-
-    /* Fake the VT */
-    session_set_env (session, "XDG_VTNR", vt_can_multi_seat () ? "1" : "0");
-
-    return session;
-}
-
-static void
-seat_surfaceflinger_init (SeatSurfaceflinger *seat)
-{
-}
-
-static void
-seat_surfaceflinger_class_init (SeatSurfaceflingerClass *klass)
-{
-    SeatClass *seat_class = SEAT_CLASS (klass);
-
-    seat_class->setup = seat_surfaceflinger_setup;
-    seat_class->create_display_server = seat_surfaceflinger_create_display_server;
-    seat_class->create_greeter_session = seat_surfaceflinger_create_greeter_session;
-    seat_class->create_session = seat_surfaceflinger_create_session;
-}
diff --git a/src/seat-surfaceflinger.h b/src/seat-surfaceflinger.h
deleted file mode 100644 (file)
index c182d32..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2013 Robert Ancell.
- * Author: Robert Ancell <robert.ancell@canonical.com>
- *
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
- * license.
- */
-
-#ifndef _SEAT_SURFACEFLINGER_H_
-#define _SEAT_SURFACEFLINGER_H_
-
-#include <glib-object.h>
-#include "seat.h"
-
-G_BEGIN_DECLS
-
-#define SEAT_SURFACEFLINGER_TYPE (seat_surfaceflinger_get_type())
-#define SEAT_SURFACEFLINGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_SURFACEFLINGER_TYPE, SeatSurfaceflinger))
-
-typedef struct SeatSurfaceflingerPrivate SeatSurfaceflingerPrivate;
-
-typedef struct
-{
-    Seat              parent_instance;
-    SeatSurfaceflingerPrivate *priv;
-} SeatSurfaceflinger;
-
-typedef struct
-{
-    SeatClass parent_class;
-} SeatSurfaceflingerClass;
-
-GType seat_surfaceflinger_get_type (void);
-
-G_END_DECLS
-
-#endif /* _SEAT_SURFACEFLINGER_H_ */
diff --git a/src/surfaceflinger-server.c b/src/surfaceflinger-server.c
deleted file mode 100644 (file)
index 4efe44b..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2013 Robert Ancell.
- * Author: Robert Ancell <robert.ancell@canonical.com>
- * 
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
- * license.
- */
-
-#include <string.h>
-
-#include "surfaceflinger-server.h"
-
-G_DEFINE_TYPE (SurfaceflingerServer, surfaceflinger_server, DISPLAY_SERVER_TYPE);
-
-SurfaceflingerServer *surfaceflinger_server_new (void)
-{
-    return g_object_new (SURFACEFLINGER_SERVER_TYPE, NULL);  
-}
-
-static const gchar *
-surfaceflinger_server_get_session_type (DisplayServer *server)
-{
-    return "surfaceflinger";
-}
-
-static void
-surfaceflinger_server_init (SurfaceflingerServer *server)
-{
-    display_server_set_name (DISPLAY_SERVER (server), "sf");
-}
-
-static void
-surfaceflinger_server_class_init (SurfaceflingerServerClass *klass)
-{
-    DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass);
-
-    display_server_class->get_session_type = surfaceflinger_server_get_session_type;
-}
diff --git a/src/surfaceflinger-server.h b/src/surfaceflinger-server.h
deleted file mode 100644 (file)
index c68d2bf..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2013 Robert Ancell.
- * Author: Robert Ancell <robert.ancell@canonical.com>
- * 
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 3 of the License, or (at your option) any later
- * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
- * license.
- */
-
-#ifndef SURFACEFLINGER_SERVER_H_
-#define SURFACEFLINGER_SERVER_H_
-
-#include <glib-object.h>
-#include "display-server.h"
-
-G_BEGIN_DECLS
-
-#define SURFACEFLINGER_SERVER_TYPE (surfaceflinger_server_get_type())
-#define SURFACEFLINGER_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SURFACEFLINGER_SERVER_TYPE, SurfaceflingerServer))
-#define SURFACEFLINGER_SERVER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), SURFACEFLINGER_SERVER_TYPE, SurfaceflingerServerClass))
-#define SURFACEFLINGER_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SURFACEFLINGER_SERVER_TYPE, SurfaceflingerServerClass))
-#define IS_SURFACEFLINGER_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SURFACEFLINGER_SERVER_TYPE))
-
-typedef struct SurfaceflingerServerPrivate SurfaceflingerServerPrivate;
-
-typedef struct
-{
-    DisplayServer     parent_instance;
-    SurfaceflingerServerPrivate *priv;
-} SurfaceflingerServer;
-
-typedef struct
-{
-    DisplayServerClass parent_class;
-} SurfaceflingerServerClass;
-
-GType surfaceflinger_server_get_type (void);
-
-SurfaceflingerServer *surfaceflinger_server_new (void);
-
-const gchar *surfaceflinger_server_get_id (SurfaceflingerServer *server);
-
-G_END_DECLS
-
-#endif /* SURFACEFLINGER_SERVER_H_ */
index d09d5df2b4f5d03a2d92734e9b029ed05bf9ed4e..b6bf516003c67743bfa01839b45c998eff49c9dc 100644 (file)
@@ -207,8 +207,7 @@ TESTS = \
        test-unity-mir-session-x-greeter \
        test-unity-mir-switch \
        test-unity-mir-switch-to-user-resettable \
-       test-unity-xdg-seat \
-       test-surfaceflinger-autologin
+       test-unity-xdg-seat
 
 #      test-session-exit-error
 #      test-greeter-no-exit
@@ -340,7 +339,6 @@ EXTRA_DIST = \
        data/sessions/mir.desktop \
        data/sessions/mir-container.desktop \
        data/sessions/named.desktop \
-       data/sessions/surfaceflinger.desktop \
        scripts/0-additional.conf \
        scripts/1-additional.conf \
        scripts/additional-config.conf \
@@ -477,7 +475,6 @@ EXTRA_DIST = \
        scripts/session-stderr.conf \
        scripts/session-stderr-multi-write.conf \
        scripts/session-stderr-backup.conf \
-       scripts/surfaceflinger-autologin.conf \
        scripts/switch-to-greeter.conf \
        scripts/switch-to-greeter-disabled.conf \
        scripts/switch-to-greeter-new-session.conf \
diff --git a/tests/data/sessions/surfaceflinger.desktop b/tests/data/sessions/surfaceflinger.desktop
deleted file mode 100644 (file)
index f9984ce..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Desktop Entry]
-Name=Test Session
-Comment=LightDM test Surfaceflinger session
-Exec=test-session
-X-LightDM-Session-Type=surfaceflinger
diff --git a/tests/scripts/surfaceflinger-autologin.conf b/tests/scripts/surfaceflinger-autologin.conf
deleted file mode 100644 (file)
index fad7e3b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Check can automatically log into a Surfaceflinger session
-#
-
-[SeatDefaults]
-type=surfaceflinger
-autologin-user=have-password1
-user-session=surfaceflinger
-
-#?*START-DAEMON
-#?RUNNER DAEMON-START
-
-# Session starts (test session doesn't know it's in surfaceflinger)
-#?SESSION-UNKNOWN START XDG_SEAT=seat0 XDG_VTNR=1 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_DESKTOP=surfaceflinger USER=have-password1
-#?LOGIN1 ACTIVATE-SESSION SESSION=c0
-
-# Cleanup
-#?*STOP-DAEMON
-#?SESSION-UNKNOWN TERMINATE SIGNAL=15
-#?RUNNER DAEMON-EXIT STATUS=0
diff --git a/tests/test-surfaceflinger-autologin b/tests/test-surfaceflinger-autologin
deleted file mode 100755 (executable)
index d668d02..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-./src/dbus-env ./src/test-runner surfaceflinger-autologin test-gobject-greeter