4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
8 * Cherepanov Vitaliy <v.cherepanov@samsung.com>
9 * Nikita Kalyazin <n.kalyazin@samsung.com>
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
15 * http://www.apache.org/licenses/LICENSE-2.0
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
24 * - Samsung RnD Institute Russia
31 int fill_data_msg_head (struct msg_data_t *data, uint32_t msgid,
32 uint32_t seq, uint32_t len);
33 //allocate memory, need free!!!
34 struct msg_data_t *gen_message_terminate(uint32_t id);
36 //allocatr memory, need free!!!
37 struct msg_data_t *gen_message_event(
38 struct input_event *events,
39 uint32_t events_count,
43 struct msg_data_t *gen_message_error(const char * err_msg);
45 struct msg_data_t *gen_message_event(
46 struct input_event *events,
47 uint32_t events_count,
50 int reset_data_msg(struct msg_data_t *data);
53 int print_sys_info(struct system_info_t * sys_info);
54 #endif //#ifndef _DA_DATA_H_