Lines Matching defs:session
14 #include "lightdm/session.h"
50 LightDMSession *session;
66 g_warning ("Ignoring session without name");
88 session = g_object_new (LIGHTDM_TYPE_SESSION, NULL);
89 priv = GET_PRIVATE (session);
104 return session;
140 g_warning ("Failed to load session file %s: %s:", path, error->message);
146 LightDMSession *session;
149 session = load_session (key_file, key);
150 if (session)
152 g_debug ("Loaded session %s (%s, %s)", path, GET_PRIVATE (session)->name, GET_PRIVATE (session)->comment);
153 sessions = g_list_insert_sorted (sessions, session, compare_session);
156 g_debug ("Ignoring session %s", path);
185 /* Use session directory from configuration */
253 * @session: A #LightDMSession
255 * Get the key for a session
257 * Return value: The session key
260 lightdm_session_get_key (LightDMSession *session)
262 g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
263 return GET_PRIVATE (session)->key;
268 * @session: A #LightDMSession
270 * Get the name for a session
272 * Return value: The session name
275 lightdm_session_get_name (LightDMSession *session)
277 g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
278 return GET_PRIVATE (session)->name;
283 * @session: A #LightDMSession
285 * Get the comment for a session
287 * Return value: The session comment
290 lightdm_session_get_comment (LightDMSession *session)
292 g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
293 return GET_PRIVATE (session)->comment;
297 lightdm_session_init (LightDMSession *session)