diff options
author | Ray Strode <rstrode@redhat.com> | 2015-02-16 17:12:24 -0500 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-02-18 17:34:13 -0500 |
commit | 01920832ac257feb634cb8bbc5ee3b6e29e545b0 (patch) | |
tree | 34ba6b7c201abca06a59abf22e39a80f5fed29be | |
parent | 317cae72408a06af09acb74dfc3c3554be87ed29 (diff) | |
download | gdm-01920832ac257feb634cb8bbc5ee3b6e29e545b0.tar.gz |
session: add session pid getter
We're going to move wtmp recording to GdmManager,
and for that we'll need the pid of the session.
https://bugzilla.gnome.org/show_bug.cgi?id=744764
-rw-r--r-- | daemon/gdm-session.c | 6 | ||||
-rw-r--r-- | daemon/gdm-session.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c index 55f67096..3a125a98 100644 --- a/daemon/gdm-session.c +++ b/daemon/gdm-session.c @@ -3603,3 +3603,9 @@ gdm_session_display_mode_to_string (GdmSessionDisplayMode mode) g_warning ("Unknown GdmSessionDisplayMode %d", mode); return ""; } + +GPid +gdm_session_get_pid (GdmSession *session) +{ + return session->priv->session_pid; +} diff --git a/daemon/gdm-session.h b/daemon/gdm-session.h index 86862b47..c339f3f6 100644 --- a/daemon/gdm-session.h +++ b/daemon/gdm-session.h @@ -182,6 +182,7 @@ void gdm_session_set_timed_login_details (GdmSession *session, int delay); gboolean gdm_session_client_is_connected (GdmSession *session); gboolean gdm_session_is_running (GdmSession *session); +GPid gdm_session_get_pid (GdmSession *session); G_END_DECLS |