| 161 | } |
| 162 | |
| 163 | list_C_2_t *sendReceived2Struct(const list_C_2_t *received_list) |
| 164 | { |
| 165 | list_C_2_t *send_list; |
| 166 | send_list = (list_C_2_t *)erpc_malloc(sizeof(list_C_2_t)); |
| 167 | list_C_1_t *list_int32_1_t_r = received_list->elements; |
| 168 | send_list->elementsCount = received_list->elementsCount; |
| 169 | send_list->elements = (list_C_1_t *)erpc_malloc(send_list->elementsCount * sizeof(list_C_1_t)); |
| 170 | list_C_1_t *list_int32_1_t_s = send_list->elements; |
| 171 | for (uint32_t i = 0; i < send_list->elementsCount; ++i) |
| 172 | { |
| 173 | C *list_s, *list_r; |
| 174 | list_r = list_int32_1_t_r->elements; |
| 175 | list_int32_1_t_s->elementsCount = list_int32_1_t_r->elementsCount; |
| 176 | list_int32_1_t_s->elements = (C *)erpc_malloc(list_int32_1_t_s->elementsCount * sizeof(C)); |
| 177 | list_s = list_int32_1_t_s->elements; |
| 178 | for (uint32_t j = 0; j < list_int32_1_t_s->elementsCount; ++j) |
| 179 | { |
| 180 | list_s->m = 2 * list_r->m; |
| 181 | list_s->n = 2 * list_r->n; |
| 182 | ++list_r; |
| 183 | ++list_s; |
| 184 | } |
| 185 | erpc_free(list_int32_1_t_r->elements); |
| 186 | ++list_int32_1_t_r; |
| 187 | ++list_int32_1_t_s; |
| 188 | } |
| 189 | erpc_free(received_list->elements); |
| 190 | erpc_free((void *)received_list); |
| 191 | |
| 192 | return send_list; |
| 193 | } |
| 194 | |
| 195 | list_string_1_t *sendReceivedString(const list_string_1_t *received_list) |
| 196 | { |
no test coverage detected