| 143 | } |
| 144 | |
| 145 | list_C_1_t *sendReceivedStruct(const list_C_1_t *received_list) |
| 146 | { |
| 147 | list_C_1_t *send_list = (list_C_1_t *)erpc_malloc(sizeof(list_C_1_t)); |
| 148 | send_list->elementsCount = received_list->elementsCount; |
| 149 | C *list_s = send_list->elements = (C *)erpc_malloc(send_list->elementsCount * sizeof(C)); |
| 150 | C *list_r = received_list->elements; |
| 151 | |
| 152 | for (uint32_t i = 0; i < send_list->elementsCount; ++i) |
| 153 | { |
| 154 | list_s->m = 2 * list_r->m; |
| 155 | list_s->n = 2 * list_r->n; |
| 156 | ++list_s; |
| 157 | ++list_r; |
| 158 | } |
| 159 | |
| 160 | return send_list; |
| 161 | } |
| 162 | |
| 163 | list_C_2_t *sendReceived2Struct(const list_C_2_t *received_list) |
| 164 | { |
no test coverage detected