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-17 13:41:09 -0500
commite27a60b8b6ba5cc6e6503e8f25d09ef3a7c28cfb (patch)
tree7901e232e1fa9fb69acb71bc53cec952d98af470
parent1ce8a8a2338db029762f7eedbfd88ef0a748d11b (diff)
downloadgdm-e27a60b8b6ba5cc6e6503e8f25d09ef3a7c28cfb.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 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