]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/greeter-socket.h
Load all users only when really needed
[sojka/lightdm.git] / src / greeter-socket.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 GREETER_SOCKET_H_
12 #define GREETER_SOCKET_H_
13
14 #include <glib-object.h>
15
16 #include "greeter.h"
17
18 G_BEGIN_DECLS
19
20 #define GREETER_SOCKET_TYPE           (greeter_socket_get_type())
21 #define GREETER_SOCKET(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SOCKET_TYPE, GreeterSocket))
22 #define GREETER_SOCKET_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SOCKET_TYPE, GreeterSocketClass))
23 #define GREETER_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SOCKET_TYPE, GreeterSocketClass))
24 #define IS_GREETER_SOCKET(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SOCKET_TYPE))
25
26 #define GREETER_SOCKET_SIGNAL_CREATE_GREETER "create-greeter"
27
28 typedef struct GreeterSocketPrivate GreeterSocketPrivate;
29
30 typedef struct
31 {
32     GObject               parent_instance;
33     GreeterSocketPrivate *priv;
34 } GreeterSocket;
35
36 typedef struct
37 {
38     GObjectClass parent_class;
39     Greeter *(*create_greeter)(GreeterSocket *socket);
40 } GreeterSocketClass;
41
42 GType greeter_socket_get_type (void);
43
44 GreeterSocket *greeter_socket_new (const gchar *path);
45
46 gboolean greeter_socket_start (GreeterSocket *socket, GError **error);
47
48 G_END_DECLS
49
50 #endif /* GREETER_SOCKET_H_ */