summaryrefslogtreecommitdiff
path: root/src/xserver-local.h
blob: 0d07e4b29d9b5eae8d9895a65621a7bcf2ca0bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
 * Copyright (C) 2010-2011 Robert Ancell.
 * Author: Robert Ancell <robert.ancell@canonical.com>
 * 
 * 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_LOCAL_H_
#define _XSERVER_LOCAL_H_

#include "xserver.h"

G_BEGIN_DECLS

#define XSERVER_LOCAL_TYPE    (xserver_local_get_type())
#define XSERVER_LOCAL(obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), XSERVER_LOCAL_TYPE, XServerLocal))
#define IS_XSERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XSERVER_LOCAL_TYPE))

typedef struct XServerLocalPrivate XServerLocalPrivate;

typedef struct
{
    XServer              parent_instance;
    XServerLocalPrivate *priv;
} XServerLocal;

typedef struct
{
    XServerClass parent_class;

    void (*ready)(XServerLocal *server);
} XServerLocalClass;

guint xserver_local_get_unused_display_number (void);

void xserver_local_release_display_number (guint display_number);

GType xserver_local_get_type (void);

XServerLocal *xserver_local_new (void);

void xserver_local_set_command (XServerLocal *server, const gchar *command);

void xserver_local_set_config (XServerLocal *server, const gchar *path);

void xserver_local_set_layout (XServerLocal *server, const gchar *layout);

void xserver_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp);

void xserver_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname);

const gchar *xserver_local_get_xdmcp_server (XServerLocal *server);

void xserver_local_set_xdmcp_port (XServerLocal *server, guint port);

guint xserver_local_get_xdmcp_port (XServerLocal *server);

void xserver_local_set_xdmcp_key (XServerLocal *server, const gchar *key);

gint xserver_local_get_vt (XServerLocal *server);

gchar *xserver_local_get_authority_file_path (XServerLocal *server);

G_END_DECLS

#endif /* _XSERVER_LOCAL_H_ */