Back to index

lightdm  1.3.2
Functions
xdmcp-session.c File Reference
#include "xdmcp-session.h"
#include "xdmcp-session-private.h"

Go to the source code of this file.

Functions

 G_DEFINE_TYPE (XDMCPSession, xdmcp_session, G_TYPE_OBJECT)
XDMCPSessionxdmcp_session_new (guint16 id)
guint16 xdmcp_session_get_id (XDMCPSession *session)
const gchar * xdmcp_session_get_manufacturer_display_id (XDMCPSession *session)
GInetAddress * xdmcp_session_get_address (XDMCPSession *session)
XAuthorityxdmcp_session_get_authority (XDMCPSession *session)
guint16 xdmcp_session_get_display_number (XDMCPSession *session)
const gchar * xdmcp_session_get_display_class (XDMCPSession *session)
static void xdmcp_session_init (XDMCPSession *session)
static void xdmcp_session_finalize (GObject *object)
static void xdmcp_session_class_init (XDMCPSessionClass *klass)

Function Documentation

G_DEFINE_TYPE ( XDMCPSession  ,
xdmcp_session  ,
G_TYPE_OBJECT   
)
static void xdmcp_session_class_init ( XDMCPSessionClass klass) [static]

Definition at line 95 of file xdmcp-session.c.

{
    GObjectClass *object_class = G_OBJECT_CLASS (klass);

    object_class->finalize = xdmcp_session_finalize;  

    g_type_class_add_private (klass, sizeof (XDMCPSessionPrivate));
}

Here is the call graph for this function:

static void xdmcp_session_finalize ( GObject *  object) [static]

Definition at line 78 of file xdmcp-session.c.

{
    XDMCPSession *self;

    self = XDMCP_SESSION (object);
  
    g_free (self->priv->manufacturer_display_id);
    if (self->priv->address)
        g_object_unref (self->priv->address);
    if (self->priv->authority)
        g_object_unref (self->priv->authority);
    g_free (self->priv->display_class);

    G_OBJECT_CLASS (xdmcp_session_parent_class)->finalize (object);
}

Here is the caller graph for this function:

GInetAddress* xdmcp_session_get_address ( XDMCPSession session)

Definition at line 42 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, NULL);
    return session->priv->address;
}

Here is the caller graph for this function:

Definition at line 49 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, NULL);
    return session->priv->authority;
}

Here is the caller graph for this function:

const gchar* xdmcp_session_get_display_class ( XDMCPSession session)

Definition at line 63 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, NULL);
    return session->priv->display_class;
}

Definition at line 56 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, 0);
    return session->priv->display_number;
}

Here is the caller graph for this function:

guint16 xdmcp_session_get_id ( XDMCPSession session)

Definition at line 28 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, 0);
    return session->priv->id;
}

Here is the caller graph for this function:

Definition at line 35 of file xdmcp-session.c.

{
    g_return_val_if_fail (session != NULL, NULL);
    return session->priv->manufacturer_display_id;
}
static void xdmcp_session_init ( XDMCPSession session) [static]

Definition at line 70 of file xdmcp-session.c.

{
    session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, XDMCP_SESSION_TYPE, XDMCPSessionPrivate);
    session->priv->manufacturer_display_id = g_strdup ("");
    session->priv->display_class = g_strdup ("");
}
XDMCPSession* xdmcp_session_new ( guint16  id)

Definition at line 18 of file xdmcp-session.c.

{
    XDMCPSession *self = g_object_new (XDMCP_SESSION_TYPE, NULL);

    self->priv->id = id;

    return self;
}

Here is the caller graph for this function: