4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
8 * Cherepanov Vitaliy <v.cherepanov@samsung.com>
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
23 * - Samsung RnD Institute Russia
32 #define APP_INFO_TYPE_MIN 0x0001
33 #define APP_INFO_TYPE_MAX 0x0003
35 #define CONF_SYSTRACE_PERIOD_MIN 10
36 #define CONF_SYSTRACE_PERIOD_MAX 1000
38 #define CONF_DATA_MSG_PERIOD_MIN 1
39 #define CONF_DATA_MSG_PERIOD_MAX 100
41 #define US_APP_COUNT_MIN 0
42 #define US_APP_COUNT_MAX MAX_TARGET_COUNT
44 #define US_APP_INST_FUNC_MIN 0
45 #define US_APP_INST_FUNC_MAX 50000
47 #define US_FUNC_ARGS "bcdxpfw"
48 #define US_FUNC_RETURN "vnbcdxpfw"
50 #define US_APP_INST_LIB_MIN 0
51 #define US_APP_INST_LIB_MAX 100
53 int check_app_type(uint32_t app_type);
54 int check_app_id(uint32_t app_type, char *app_id);
55 int check_exec_path(char *path);
56 int check_conf_features(uint64_t feature0, uint64_t feature1);
57 int check_conf_systrace_period(uint32_t system_trace_period);
58 int check_conf_datamsg_period(uint32_t data_message_period);
59 int check_us_app_count(uint32_t app_count);
60 int check_us_app_inst_func_count(uint32_t func_count);
61 int check_us_inst_func_args(char *args);
62 int check_lib_inst_count(uint32_t lib_count);
63 int check_conf(struct conf_t *conf);
64 int check_us_inst_func_ret_type(char ret_type);