summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-02-16 17:12:24 -0500
committerRay Strode <rstrode@redhat.com>2015-02-16 23:36:03 -0500
commit43b2ca5b0351cc144a698c173926c3623da94dc7 (patch)
tree9e519be21ce340caa261850f31930d5e223465ff
parentcb20c7c0340a7ef54cfaf94577ac8d807c3e381c (diff)
downloadgdm-43b2ca5b0351cc144a698c173926c3623da94dc7.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.
-rw-r--r--daemon/gdm-session.c6
-rw-r--r--daemon/gdm-session.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 8a6dd676..bc2a6aaa 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -3608,3 +3608,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