]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/x-server-remote.h
Make the display number a vfunc from the X server class
[sojka/lightdm.git] / src / x-server-remote.h
1 /*
2  * Copyright (C) 2010-2011 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #ifndef X_SERVER_REMOTE_H_
13 #define X_SERVER_REMOTE_H_
14
15 #include "x-server.h"
16
17 G_BEGIN_DECLS
18
19 #define X_SERVER_REMOTE_TYPE (x_server_remote_get_type())
20 #define X_SERVER_REMOTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_REMOTE_TYPE, XServerRemote))
21
22 typedef struct XServerRemotePrivate XServerRemotePrivate;
23
24 typedef struct
25 {
26     XServer               parent_instance;
27     XServerRemotePrivate *priv;
28 } XServerRemote;
29
30 typedef struct
31 {
32     XServerClass parent_class;
33 } XServerRemoteClass;
34
35 GType x_server_remote_get_type (void);
36
37 XServerRemote *x_server_remote_new (const gchar *hostname, guint number, XAuthority *authority);
38
39 G_END_DECLS
40
41 #endif /* X_SERVER_REMOTE_H_ */