chiark / gitweb /
login: add 'mir' to the list of session types
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 9 Apr 2014 19:22:48 +0000 (21:22 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 9 Apr 2014 19:22:48 +0000 (21:22 +0200)
Add Mir to the list of session types. This is implemented for LightDM
in lp:~robert-ancell/lightdm/xdg-session-desktop [1].

[1] https://code.launchpad.net/~robert-ancell/lightdm/xdg-session-desktop/+merge/214108

(david: adjusted commit-header and fixed whitespace issues)

man/pam_systemd.xml
man/sd_session_is_active.xml
src/login/logind-session.c
src/login/logind-session.h
src/systemd/sd-login.h

index 3022cdb6f5fbbb2be047965466afb5956b064c72..f973899b2fafe253d16fb27c29cb901ae701375b 100644 (file)
                                 variable takes precedence. One of
                                 <literal>unspecified</literal>,
                                 <literal>tty</literal>,
-                                <literal>x11</literal> or
-                                <literal>wayland</literal>. See
+                                <literal>x11</literal>,
+                                <literal>wayland</literal> or
+                                <literal>mir</literal>. See
                                 <citerefentry><refentrytitle>sd_session_get_type</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                                 for details about the session type.</para></listitem>
                         </varlistentry>
index ddb2bee5e1a5a823514ad0f20446026d867e7a0b..31a611996e3b4b6bbb5a5404e1d0a04607b8e05b 100644 (file)
                 be used to determine the type of the session
                 identified by the specified session identifier. The
                 returned string is one of <literal>x11</literal>,
-                <literal>wayland</literal>, <literal>tty</literal> or
-                <literal>unspecified</literal> and needs to be freed
-                with the libc
+                <literal>wayland</literal>, <literal>tty</literal>,
+                <literal>mir</literal> or <literal>unspecified</literal> and
+                needs to be freed with the libc
                 <citerefentry><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>
                 call after use.</para>
 
index 4ca6b5d805aa436cf954fd29c7468e091e926eba..b4fd349f00cb7e4468d44227c18197adfee641d3 100644 (file)
@@ -1117,6 +1117,7 @@ static const char* const session_type_table[_SESSION_TYPE_MAX] = {
         [SESSION_TTY] = "tty",
         [SESSION_X11] = "x11",
         [SESSION_WAYLAND] = "wayland",
+        [SESSION_MIR] = "mir",
 };
 
 DEFINE_STRING_TABLE_LOOKUP(session_type, SessionType);
index c9af5ebe0d58a96b84cd6ba4e21d16950a885086..7ecc9f0d4f1df8d025f497b2290e0c3d8648e94c 100644 (file)
@@ -55,6 +55,7 @@ typedef enum SessionType {
         SESSION_TTY,
         SESSION_X11,
         SESSION_WAYLAND,
+        SESSION_MIR,
         _SESSION_TYPE_MAX,
         _SESSION_TYPE_INVALID = -1
 } SessionType;
index a4ca2311744403f68c0d2a47bf78fc0cc5517dde..776733ad1ddd0358240e787c794309f22a8e4788 100644 (file)
@@ -138,7 +138,7 @@ int sd_session_get_seat(const char *session, char **seat);
 /* Determine the (PAM) service name this session was registered by. */
 int sd_session_get_service(const char *session, char **service);
 
-/* Determine the type of this session, i.e. one of "tty", "x11" or "unspecified". */
+/* Determine the type of this session, i.e. one of "tty", "x11", "wayland", "mir" or "unspecified". */
 int sd_session_get_type(const char *session, char **type);
 
 /* Determine the class of this session, i.e. one of "user", "greeter" or "lock-screen". */