]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/x-server-xmir.h
Fix warning about display server parent
[sojka/lightdm.git] / src / x-server-xmir.h
1 /*
2  * Copyright (C) 2010-2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it under
5  * the terms of the GNU General Public License as published by the Free Software
6  * Foundation, either version 3 of the License, or (at your option) any later
7  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
8  * license.
9  */
10
11 #ifndef X_SERVER_XMIR_H_
12 #define X_SERVER_XMIR_H_
13
14 #include "x-server-local.h"
15 #include "unity-system-compositor.h"
16
17 G_BEGIN_DECLS
18
19 #define X_SERVER_XMIR_TYPE    (x_server_xmir_get_type())
20 #define X_SERVER_XMIR(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_XMIR_TYPE, XServerXmir))
21 #define IS_X_SERVER_XMIR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_XMIR_TYPE))
22
23 typedef struct XServerXmirPrivate XServerXmirPrivate;
24
25 typedef struct
26 {
27     XServerLocal        parent_instance;
28     XServerXmirPrivate *priv;
29 } XServerXmir;
30
31 typedef struct
32 {
33     XServerLocalClass parent_class;
34 } XServerXmirClass;
35
36 GType x_server_xmir_get_type (void);
37
38 XServerXmir *x_server_xmir_new (UnitySystemCompositor *compositor);
39
40 void x_server_xmir_set_mir_id (XServerXmir *server, const gchar *id);
41
42 const gchar *x_server_xmir_get_mir_id (XServerXmir *server);
43
44 void x_server_xmir_set_mir_socket (XServerXmir *server, const gchar *socket);
45
46 const gchar *x_server_xmir_get_authority_file_path (XServerXmir *server);
47
48 G_END_DECLS
49
50 #endif /* X_SERVER_XMIR_H_ */