Back to index

lightdm  1.3.2
Functions
seat-xremote.c File Reference
#include <string.h>
#include "seat-xremote.h"
#include "configuration.h"
#include "xserver-remote.h"
#include "xsession.h"

Go to the source code of this file.

Functions

 G_DEFINE_TYPE (SeatXRemote, seat_xremote, SEAT_TYPE)
static void seat_xremote_setup (Seat *seat)
static DisplayServerseat_xremote_create_display_server (Seat *seat)
static Sessionseat_xremote_create_session (Seat *seat, Display *display)
static void seat_xremote_run_script (Seat *seat, Display *display, Process *script)
static void seat_xremote_display_removed (Seat *seat, Display *display)
static void seat_xremote_init (SeatXRemote *seat)
static void seat_xremote_class_init (SeatXRemoteClass *klass)

Function Documentation

G_DEFINE_TYPE ( SeatXRemote  ,
seat_xremote  ,
SEAT_TYPE   
)
static void seat_xremote_class_init ( SeatXRemoteClass klass) [static]

Definition at line 86 of file seat-xremote.c.

Here is the call graph for this function:

Definition at line 29 of file seat-xremote.c.

{
    XServerRemote *xserver;
    const gchar *hostname;
    gint number;

    hostname = seat_get_string_property (seat, "xserver-hostname");
    if (!hostname)
        hostname = "localhost";
    number = seat_get_integer_property (seat, "xserver-display-number");

    g_debug ("Starting remote X display %s:%d", hostname, number);

    xserver = xserver_remote_new (hostname, number, NULL);

    return DISPLAY_SERVER (xserver);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Session* seat_xremote_create_session ( Seat seat,
Display display 
) [static]

Definition at line 48 of file seat-xremote.c.

{
    XServerRemote *xserver;
    XSession *session;

    xserver = XSERVER_REMOTE (display_get_display_server (display));

    session = xsession_new (XSERVER (xserver));
    session_set_remote_host_name (SESSION (session), xserver_get_hostname (XSERVER (xserver)));

    return SESSION (session);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void seat_xremote_display_removed ( Seat seat,
Display display 
) [static]

Definition at line 74 of file seat-xremote.c.

{
    /* Can't restart the display, so remove this seat */
    seat_stop (seat);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void seat_xremote_init ( SeatXRemote seat) [static]

Definition at line 81 of file seat-xremote.c.

{
}
static void seat_xremote_run_script ( Seat seat,
Display display,
Process script 
) [static]

Definition at line 62 of file seat-xremote.c.

{
    XServerRemote *xserver;

    xserver = XSERVER_REMOTE (display_get_display_server (display));
    process_set_env (script, "DISPLAY", xserver_get_address (XSERVER (xserver)));  
    process_set_env (script, "REMOTE_HOST", xserver_get_hostname (XSERVER (xserver)));

    SEAT_CLASS (seat_xremote_parent_class)->run_script (seat, display, script);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void seat_xremote_setup ( Seat seat) [static]

Definition at line 22 of file seat-xremote.c.

{
    seat_set_can_switch (seat, FALSE);
    SEAT_CLASS (seat_xremote_parent_class)->setup (seat);
}

Here is the call graph for this function:

Here is the caller graph for this function: