[gdm/wip/wayland-at-login-screen: 41/70] session: add session pid getter
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/wayland-at-login-screen: 41/70] session: add session pid getter
- Date: Wed, 18 Feb 2015 06:26:56 +0000 (UTC)
commit e27a60b8b6ba5cc6e6503e8f25d09ef3a7c28cfb
Author: Ray Strode <rstrode redhat com>
Date: Mon Feb 16 17:12:24 2015 -0500
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.
daemon/gdm-session.c | 6 ++++++
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 55f6709..3a125a9 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 86862b4..c339f3f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]