~lightdm-team/lightdm/1.4

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
/*
 * 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 _GREETER_PROTOCOL_H_
#define _GREETER_PROTOCOL_H_

typedef enum
{
    /* Messages from the greeter to the server */
    GREETER_MESSAGE_CONNECT                 = 1,
    GREETER_MESSAGE_LOGIN                   = 2,
    GREETER_MESSAGE_LOGIN_AS_GUEST          = 3,
    GREETER_MESSAGE_CONTINUE_AUTHENTICATION = 4,
    GREETER_MESSAGE_START_SESSION           = 5,
    GREETER_MESSAGE_CANCEL_AUTHENTICATION   = 6,
    GREETER_MESSAGE_GET_USER_DEFAULTS       = 7,

    /* Messages from the server to the greeter */
    GREETER_MESSAGE_CONNECTED               = 101,
    GREETER_MESSAGE_QUIT                    = 102,
    GREETER_MESSAGE_PROMPT_AUTHENTICATION   = 103,
    GREETER_MESSAGE_END_AUTHENTICATION      = 104,
    GREETER_MESSAGE_USER_DEFAULTS           = 106
} GreeterMessage;

#endif /* _GREETER_PROTOCOL_H_ */