summaryrefslogtreecommitdiff
path: root/include/compsession.h
blob: a08a91633941b044c28bd8e2bfa1848481809ee9 (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
#ifndef _COMPSESSION_H
#define _COMPSESSION_H

#define SN_API_NOT_YET_FROZEN
#include <libsn/sn.h>

namespace CompSession {

    enum Event {
	EventSaveYourself = 0,
	EventSaveComplete,
	EventDie,
	EventShutdownCancelled
    };

    enum ClientIdType {
	ClientId = 0,
	PrevClientId
    };

    void initSession (char *smPrevClientId);

    void closeSession (void);

    char *getSessionClientId (ClientIdType type);
};

#endif