Back to index

lightdm  1.3.2
xdmcp-session.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010-2011 Robert Ancell.
00003  * Author: Robert Ancell <robert.ancell@canonical.com>
00004  * 
00005  * This program is free software: you can redistribute it and/or modify it under
00006  * the terms of the GNU General Public License as published by the Free Software
00007  * Foundation, either version 3 of the License, or (at your option) any later
00008  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
00009  * license.
00010  */
00011 
00012 #ifndef _XDMCP_SESSION_H_
00013 #define _XDMCP_SESSION_H_
00014 
00015 #include <glib-object.h>
00016 #include <gio/gio.h>
00017 
00018 #include "xauthority.h"
00019 
00020 G_BEGIN_DECLS
00021 
00022 #define XDMCP_SESSION_TYPE (xdmcp_session_get_type())
00023 #define XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SESSION_TYPE, XDMCPSession));
00024 
00025 typedef struct XDMCPSessionPrivate XDMCPSessionPrivate;
00026 
00027 typedef struct
00028 {
00029     GObject         parent_instance;
00030     XDMCPSessionPrivate *priv;
00031 } XDMCPSession;
00032 
00033 typedef struct
00034 {
00035     GObjectClass parent_class;
00036 } XDMCPSessionClass;
00037 
00038 GType xdmcp_session_get_type (void);
00039 
00040 XDMCPSession *xdmcp_session_new (guint16 id);
00041 
00042 guint16 xdmcp_session_get_id (XDMCPSession *session);
00043 
00044 const gchar *xdmcp_session_get_manufacturer_display_id (XDMCPSession *session);
00045 
00046 GInetAddress *xdmcp_session_get_address (XDMCPSession *session);
00047 
00048 XAuthority *xdmcp_session_get_authority (XDMCPSession *session);
00049 
00050 guint16 xdmcp_session_get_display_number (XDMCPSession *session);
00051 
00052 const gchar *xdmcp_session_get_display_class (XDMCPSession *session);
00053 
00054 G_END_DECLS
00055 
00056 #endif /* _XDMCP_SESSION_H_ */