/* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef _XSERVER_H_ #define _XSERVER_H_ #include #include "display-server.h" #include "xauthority.h" G_BEGIN_DECLS #define XSERVER_TYPE (xserver_get_type()) #define XSERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XSERVER_TYPE, XServer)) #define XSERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XSERVER_TYPE, XServerClass)) #define XSERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XSERVER_TYPE, XServerClass)) #define IS_XSERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XSERVER_TYPE)) typedef struct XServerPrivate XServerPrivate; typedef struct { DisplayServer parent_instance; XServerPrivate *priv; } XServer; typedef struct { DisplayServerClass parent_class; } XServerClass; GType xserver_get_type (void); void xserver_set_hostname (XServer *server, const gchar *hostname); gchar *xserver_get_hostname (XServer *server); void xserver_set_display_number (XServer *server, guint number); guint xserver_get_display_number (XServer *server); const gchar *xserver_get_address (XServer *server); const gchar *xserver_get_authentication_name (XServer *server); const guint8 *xserver_get_authentication_data (XServer *server); gsize xserver_get_authentication_data_length (XServer *server); void xserver_set_authority (XServer *server, XAuthority *authority); XAuthority *xserver_get_authority (XServer *server); G_END_DECLS #endif /* _XSERVER_H_ */