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
31 #include <sys/types.h>
32 #include "da_protocol.h"
38 uint32_t size; //for message generate
39 struct us_func_inst_plane_t *func;
46 uint32_t size; //for message generate
47 struct us_lib_inst_t *lib;
49 struct probe_list_t *list;
56 uint32_t size; //for message generate
57 struct app_info_t *app;
59 struct probe_list_t *list;
67 uint32_t size; //for message generate
70 struct probe_list_t *list;
73 typedef int (cmp_data_f) (struct data_list_t *el_1, struct data_list_t *el_2);
74 typedef char *(*pack_head_t) (char *to, void *data);
76 extern int msg_swap_inst_remove(struct msg_buf_t *data, struct user_space_inst_t *us_inst,
77 struct msg_t **msg, enum ErrorCode *err);
78 extern int msg_swap_inst_add(struct msg_buf_t *data, struct user_space_inst_t *us_inst,
79 struct msg_t **msg, enum ErrorCode *err);
80 extern int msg_start(struct msg_buf_t *data, struct user_space_inst_t *us_inst,
81 struct msg_t **msg, enum ErrorCode *err);
83 struct probe_list_t *new_probe(void);
84 struct lib_list_t *new_lib(void);
85 struct app_list_t *new_app(void);
86 int probe_list_append(struct data_list_t *to, struct probe_list_t *from);
87 int data_list_append(struct data_list_t **to, struct data_list_t *from);
88 void free_data_list(struct data_list_t **data);
90 struct app_info_t *app_info_get_first(struct app_list_t **app_list);
91 struct app_info_t *app_info_get_next(struct app_list_t **app_list);
93 struct target; // move
94 void send_maps_inst_msg_to(struct target *t);
96 #endif /* __DA_INST_H__*/