[FEATURE] Implement kernel -> user connection
[platform/core/system/swap-manager.git] / daemon / us_interaction_msg.h
1 /*
2  *  SWAP device driver
3  *  modules/driver/us_interaction_msg.h
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  *
19  * Copyright (C) Samsung Electronics, 2014
20  *
21  * 2014  Alexander Aksenov <a.aksenov@samsung.com>: Driver user<-> kernel
22  *                                                  connect implement
23  *
24  */
25
26 #ifndef __US_INTERACTION_MSG_H__
27 #define __US_INTERACTION_MSG_H__
28
29 #define CN_SWAP_IDX     0x22    /* Should be unique throughout the system */
30 #define CN_SWAP_VAL     0x1     /* Just the same in kernel and user */
31 #define CN_DAEMON_GROUP 0x1     /* Listener group. Connector works a bit faster
32                                  * when using one */
33
34 enum us_interaction_k2u_msg_t {
35         US_INT_PAUSE_APPS = 1,      /* Make daemon pause apps */
36         US_INT_CONT_APPS = 2        /* Make daemon continue apps */
37 };
38
39 #endif /* __US_INTERACTION_MSG_H__ */