Back to index

lightdm  1.3.2
Classes | Enumerations | Functions | Variables
display-server.c File Reference
#include <config.h>
#include "display-server.h"

Go to the source code of this file.

Classes

struct  DisplayServerPrivate

Enumerations

enum  { READY, STOPPED, LAST_SIGNAL }

Functions

 G_DEFINE_TYPE (DisplayServer, display_server, G_TYPE_OBJECT)
void display_server_set_name (DisplayServer *server, const gchar *name)
const gchar * display_server_get_name (DisplayServer *server)
void display_server_set_start_local_sessions (DisplayServer *server, gboolean start_local_sessions)
gboolean display_server_get_start_local_sessions (DisplayServer *server)
gboolean display_server_start (DisplayServer *server)
static gboolean display_server_real_start (DisplayServer *server)
void display_server_stop (DisplayServer *server)
gboolean display_server_get_is_stopped (DisplayServer *server)
static void display_server_real_stop (DisplayServer *server)
static gboolean display_server_real_get_is_stopped (DisplayServer *server)
static void display_server_init (DisplayServer *server)
static void display_server_class_init (DisplayServerClass *klass)

Variables

static guint signals [LAST_SIGNAL] = { 0 }

Class Documentation

struct DisplayServerPrivate

Definition at line 23 of file display-server.c.

Class Members
gchar * name
gboolean start_local_sessions

Enumeration Type Documentation

anonymous enum
Enumerator:
READY 
STOPPED 
LAST_SIGNAL 

Definition at line 16 of file display-server.c.


Function Documentation

static void display_server_class_init ( DisplayServerClass klass) [static]

Definition at line 111 of file display-server.c.

{
    klass->start = display_server_real_start;
    klass->stop = display_server_real_stop;
    klass->get_is_stopped = display_server_real_get_is_stopped;

    g_type_class_add_private (klass, sizeof (DisplayServerPrivate));

    signals[READY] =
        g_signal_new ("ready",
                      G_TYPE_FROM_CLASS (klass),
                      G_SIGNAL_RUN_LAST,
                      G_STRUCT_OFFSET (DisplayServerClass, ready),
                      NULL, NULL,
                      g_cclosure_marshal_VOID__VOID,
                      G_TYPE_NONE, 0);
    signals[STOPPED] =
        g_signal_new ("stopped",
                      G_TYPE_FROM_CLASS (klass),
                      G_SIGNAL_RUN_LAST,
                      G_STRUCT_OFFSET (DisplayServerClass, stopped),
                      NULL, NULL,
                      g_cclosure_marshal_VOID__VOID,
                      G_TYPE_NONE, 0);
}

Here is the call graph for this function:

Definition at line 85 of file display-server.c.

{
    g_return_val_if_fail (server != NULL, TRUE);
    return DISPLAY_SERVER_GET_CLASS (server)->get_is_stopped (server);
}

Here is the caller graph for this function:

const gchar* display_server_get_name ( DisplayServer server)

Definition at line 43 of file display-server.c.

{
    g_return_val_if_fail (server != NULL, NULL);
    return server->priv->name;
}

Here is the caller graph for this function:

Definition at line 57 of file display-server.c.

{
    g_return_val_if_fail (server != NULL, FALSE);
    return server->priv->start_local_sessions;
}

Here is the caller graph for this function:

static void display_server_init ( DisplayServer server) [static]

Definition at line 104 of file display-server.c.

{
    server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, DISPLAY_SERVER_TYPE, DisplayServerPrivate);
    server->priv->start_local_sessions = TRUE;
}
static gboolean display_server_real_get_is_stopped ( DisplayServer server) [static]

Definition at line 98 of file display-server.c.

{
    return TRUE;
}

Here is the caller graph for this function:

static gboolean display_server_real_start ( DisplayServer server) [static]

Definition at line 71 of file display-server.c.

{
    g_signal_emit (server, signals[READY], 0);
    return TRUE;
}

Here is the caller graph for this function:

static void display_server_real_stop ( DisplayServer server) [static]

Definition at line 92 of file display-server.c.

{
    g_signal_emit (server, signals[STOPPED], 0);
}

Here is the caller graph for this function:

void display_server_set_name ( DisplayServer server,
const gchar *  name 
)

Definition at line 35 of file display-server.c.

{
    g_return_if_fail (server != NULL);
    g_free (server->priv->name);
    server->priv->name = g_strdup (name);
}

Here is the caller graph for this function:

void display_server_set_start_local_sessions ( DisplayServer server,
gboolean  start_local_sessions 
)

Definition at line 50 of file display-server.c.

{
    g_return_if_fail (server != NULL);
    server->priv->start_local_sessions = start_local_sessions;
}

Here is the caller graph for this function:

gboolean display_server_start ( DisplayServer server)

Definition at line 64 of file display-server.c.

{
    g_return_val_if_fail (server != NULL, FALSE);
    return DISPLAY_SERVER_GET_CLASS (server)->start (server);
}

Here is the caller graph for this function:

void display_server_stop ( DisplayServer server)

Definition at line 78 of file display-server.c.

{
    g_return_if_fail (server != NULL);
    DISPLAY_SERVER_GET_CLASS (server)->stop (server);
}

Here is the caller graph for this function:

G_DEFINE_TYPE ( DisplayServer  ,
display_server  ,
G_TYPE_OBJECT   
)

Variable Documentation

guint signals[LAST_SIGNAL] = { 0 } [static]

Definition at line 21 of file display-server.c.