Back to index

lightdm  1.3.2
Classes | Defines | Typedefs | Functions
xsession.h File Reference
#include "session.h"
#include "xserver.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  XSession
struct  XSessionClass


#define XSESSION_TYPE   (xsession_get_type())


typedef struct XSessionPrivate


GType xsession_get_type (void)
XSessionxsession_new (XServer *xserver)

Class Documentation

struct XSession

Definition at line 25 of file xsession.h.

Collaboration diagram for XSession:
Class Members
Session parent_instance
XSessionPrivate * priv
struct XSessionClass

Definition at line 31 of file xsession.h.

Collaboration diagram for XSessionClass:
Class Members
SessionClass parent_class

Define Documentation

#define XSESSION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), XSESSION_TYPE, XSession))

Definition at line 21 of file xsession.h.

#define XSESSION_TYPE   (xsession_get_type())

Definition at line 20 of file xsession.h.

Typedef Documentation

typedef struct XSessionPrivate

Definition at line 23 of file xsession.h.

Function Documentation

GType xsession_get_type ( void  )
XSession* xsession_new ( XServer xserver)

Definition at line 30 of file xsession.c.

    XSession *session;
    XAuthority *authority;

    session = g_object_new (XSESSION_TYPE, NULL);
    session->priv->xserver = g_object_ref (xserver);

    session_set_env (SESSION (session), "DISPLAY", xserver_get_address (xserver));
    session_set_tty (SESSION (session), xserver_get_address (xserver));
    session_set_xdisplay (SESSION (session), xserver_get_address (xserver));
    authority = xserver_get_authority (xserver);
    if (authority)
        session_set_xauthority (SESSION (session), authority, config_get_boolean (config_get_instance (), "LightDM", "user-authority-in-system-dir"));
    session_set_log_file (SESSION (session), ".xsession-errors");

    return session;

Here is the call graph for this function:

Here is the caller graph for this function: