4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
20 SECURITY_MANAGER_SUCCESS,
21 SECURITY_MANAGER_ERROR_INPUT_PARAM,
22 SECURITY_MANAGER_ERROR_MEMORY,
23 SECURITY_MANAGER_ERROR_REQ_NOT_COMPLETE,
24 SECURITY_MANAGER_ERROR_AUTHENTICATION_FAILED,
25 SECURITY_MANAGER_ERROR_ACCESS_DENIED
27 enum app_install_path_type {
28 SECURITY_MANAGER_PATH_PUBLIC_RO,
29 SECURITY_MANAGER_PATH_RO,
30 SECURITY_MANAGER_PATH_RW
32 typedef void app_inst_req;
34 #define security_manager_app_inst_req_free(r) \
35 (printf("security_manager_app_inst_req_free(%p)\n",r),(void)0)
37 #define security_manager_app_inst_req_new(pr) \
38 (*(pr)=(void*)(intptr_t)(++diese), printf("security_manager_app_inst_req_new(%p)\n",*pr), SECURITY_MANAGER_SUCCESS)
40 #define security_manager_app_inst_req_set_pkg_id(r,i) \
41 (printf("security_manager_app_inst_req_set_pkg_id(%p,\"%s\")\n",r,i), SECURITY_MANAGER_SUCCESS)
43 #define security_manager_app_inst_req_set_app_id(r,i) \
44 (printf("security_manager_app_inst_req_set_app_id(%p,\"%s\")\n",r,i), SECURITY_MANAGER_SUCCESS)
46 #define security_manager_app_inst_req_add_privilege(r,p) \
47 (printf("security_manager_app_inst_req_add_privilege(%p,\"%s\")\n",r,p), SECURITY_MANAGER_SUCCESS)
49 #define security_manager_app_inst_req_add_path(r,p,t) \
50 (printf("security_manager_app_inst_req_add_path(%p,\"%s\",%d)\n",r,p,t), SECURITY_MANAGER_SUCCESS)
52 #define security_manager_app_install(r) \
53 (printf("security_manager_app_install(%p)\n",r), SECURITY_MANAGER_SUCCESS)
55 #define security_manager_app_uninstall(r) \
56 (printf("security_manager_app_uninstall(%p)\n",r), SECURITY_MANAGER_SUCCESS)
58 #define security_manager_prepare_app(a) \
59 (printf("security_manager_prepare_app(%s)\n",a), SECURITY_MANAGER_SUCCESS)