]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/greeter-protocol.h
0ca57abc8b44bd62db819c6d5a220b26a810d7c9
[sojka/lightdm.git] / src / greeter-protocol.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 _GREETER_PROTOCOL_H_
13 #define _GREETER_PROTOCOL_H_
14
15 typedef enum
16 {
17     /* Messages from the greeter to the server */
18     GREETER_MESSAGE_CONNECT                 = 1,
19     GREETER_MESSAGE_START_AUTHENTICATION    = 2,
20     GREETER_MESSAGE_CONTINUE_AUTHENTICATION = 3,
21     GREETER_MESSAGE_LOGIN                   = 4,
22     GREETER_MESSAGE_CANCEL_AUTHENTICATION   = 5,
23     GREETER_MESSAGE_GET_USER_DEFAULTS       = 6,
24     GREETER_MESSAGE_LOGIN_AS_GUEST          = 7,
25
26     /* Messages from the server to the greeter */
27     GREETER_MESSAGE_CONNECTED               = 101,
28     GREETER_MESSAGE_QUIT                    = 102,
29     GREETER_MESSAGE_PROMPT_AUTHENTICATION   = 103,
30     GREETER_MESSAGE_END_AUTHENTICATION      = 104,
31     GREETER_MESSAGE_USER_DEFAULTS           = 106
32 } GreeterMessage;
33
34 #endif /* _GREETER_PROTOCOL_H_ */