Back to index

lightdm  1.3.2
Classes | Defines | Functions
session.h File Reference
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LightDMSession
struct  LightDMSessionClass

Defines

#define LIGHTDM_TYPE_SESSION   (lightdm_session_get_type())
#define LIGHTDM_SESSION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_SESSION, LightDMSession));
#define LIGHTDM_SESSION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_SESSION, LightDMSessionClass))
#define LIGHTDM_IS_SESSION(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_SESSION))
#define LIGHTDM_IS_SESSION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_SESSION))
#define LIGHTDM_SESSION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_SESSION, LightDMSessionClass))

Functions

GType lightdm_session_get_type (void)
GList * lightdm_get_sessions (void)
 lightdm_get_sessions:
const gchar * lightdm_session_get_key (LightDMSession *session)
 lightdm_session_get_key: : A LightDMSession
const gchar * lightdm_session_get_name (LightDMSession *session)
 lightdm_session_get_name: : A LightDMSession
const gchar * lightdm_session_get_comment (LightDMSession *session)
 lightdm_session_get_comment: : A LightDMSession

Class Documentation

struct LightDMSession

Definition at line 26 of file session.h.

Class Members
GObject parent_instance

Define Documentation

#define LIGHTDM_IS_SESSION (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_SESSION))

Definition at line 22 of file session.h.

#define LIGHTDM_IS_SESSION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_SESSION))

Definition at line 23 of file session.h.

#define LIGHTDM_SESSION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_SESSION, LightDMSession));

Definition at line 20 of file session.h.

#define LIGHTDM_SESSION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_SESSION, LightDMSessionClass))

Definition at line 21 of file session.h.

#define LIGHTDM_SESSION_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_SESSION, LightDMSessionClass))

Definition at line 24 of file session.h.

Definition at line 19 of file session.h.


Function Documentation

GList* lightdm_get_sessions ( void  )

lightdm_get_sessions:

Get the available sessions.

Return value: (element-type LightDMSession) (transfer none): A list of LightDMSession

Definition at line 205 of file session.c.

{
    update_sessions ();
    return sessions;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const gchar* lightdm_session_get_comment ( LightDMSession session)

lightdm_session_get_comment: : A LightDMSession

Get the comment for a session

Return value: The session comment

Definition at line 250 of file session.c.

{
    g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
    return GET_PRIVATE (session)->comment;
}

Here is the caller graph for this function:

const gchar* lightdm_session_get_key ( LightDMSession session)

lightdm_session_get_key: : A LightDMSession

Get the key for a session

Return value: The session key

Definition at line 220 of file session.c.

{
    g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
    return GET_PRIVATE (session)->key;
}

Here is the caller graph for this function:

const gchar* lightdm_session_get_name ( LightDMSession session)

lightdm_session_get_name: : A LightDMSession

Get the name for a session

Return value: The session name

Definition at line 235 of file session.c.

{
    g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL);
    return GET_PRIVATE (session)->name;
}

Here is the caller graph for this function:

GType lightdm_session_get_type ( void  )