Commit 375d4a5a authored by Ray Strode's avatar Ray Strode Committed by Jasper St. Pierre

daemon: add new gdm_session_is_running method

GdmSession emits when a session is started or stopped, but doesn't
let a caller query if a session is on-going.

This commit adds API for that.
parent e13e0d8b
......@@ -2567,6 +2567,12 @@ gdm_session_request_timed_login (GdmSession *self,
}
}
gboolean
gdm_session_is_running (GdmSession *self)
{
return self->priv->session_pid > 0;
}
gboolean
gdm_session_client_is_connected (GdmSession *self)
{
......
......@@ -160,6 +160,7 @@ void gdm_session_request_timed_login (GdmSession *session,
const char *username,
int delay);
gboolean gdm_session_client_is_connected (GdmSession *session);
gboolean gdm_session_is_running (GdmSession *session);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment