Back to index

lightdm  1.3.2
xserver-remote.c File Reference
#include <config.h>
#include "xserver-remote.h"

Go to the source code of this file.


 G_DEFINE_TYPE (XServerRemote, xserver_remote, XSERVER_TYPE)
XServerRemotexserver_remote_new (const gchar *hostname, guint number, XAuthority *authority)
static void xserver_remote_init (XServerRemote *server)
static void xserver_remote_class_init (XServerRemoteClass *klass)

Function Documentation

G_DEFINE_TYPE ( XServerRemote  ,
xserver_remote  ,
static void xserver_remote_class_init ( XServerRemoteClass klass) [static]

Definition at line 41 of file xserver-remote.c.

static void xserver_remote_init ( XServerRemote server) [static]

Definition at line 36 of file xserver-remote.c.

XServerRemote* xserver_remote_new ( const gchar *  hostname,
guint  number,
XAuthority authority 

Definition at line 19 of file xserver-remote.c.

    XServerRemote *self = g_object_new (XSERVER_REMOTE_TYPE, NULL);
    gchar *name;

    xserver_set_hostname (XSERVER (self), hostname);
    xserver_set_display_number (XSERVER (self), number);
    xserver_set_authority (XSERVER (self), authority);

    name = g_strdup_printf ("x-%s-%d", hostname, number);
    display_server_set_name (DISPLAY_SERVER (self), name);
    g_free (name);

    return self;

Here is the call graph for this function:

Here is the caller graph for this function: