Tizen 2.4.0 rev3 SDK Public Release
[kernel/swap-modules.git] / nsp / nsp.h
1 #ifndef _NSP_H
2 #define _NSP_H
3
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, 2015
20  *
21  * 2015         Vyacheslav Cherkashin <v.cherkashin@samsung.com>
22  *
23  */
24
25
26 enum offset_t {
27         OS_CREATE,
28         OS_RESET
29 };
30
31 enum nsp_stat {
32         NS_OFF,
33         NS_ON
34 };
35
36 struct appcore_info_data {
37         const char *path;
38         unsigned long ac_efl_main;
39         unsigned long do_app;
40         unsigned long ac_init;
41         unsigned long elm_run;
42 };
43
44 int nsp_init(void);
45 void nsp_exit(void);
46
47 int nsp_set_lpad_info(const char *path, unsigned long dlopen,
48                       unsigned long dlsym);
49 int nsp_set_appcore_info(struct appcore_info_data *info);
50
51 int nsp_set_stat(enum nsp_stat st);
52 enum nsp_stat nsp_get_stat(void);
53
54 int nsp_add(const char *app_path, unsigned long main_addr);
55 int nsp_rm(const char *app_path);
56 int nsp_rm_all(void);
57
58
59 #endif /* _NSP_H */