| 4045 | } |
| 4046 | |
| 4047 | hb_buffer_t* hb_buffer_list_clear(hb_buffer_list_t *list) |
| 4048 | { |
| 4049 | if (list == NULL) |
| 4050 | { |
| 4051 | return NULL; |
| 4052 | } |
| 4053 | hb_buffer_t *head = list->head; |
| 4054 | list->head = list->tail = NULL; |
| 4055 | list->count = 0; |
| 4056 | list->size = 0; |
| 4057 | return head; |
| 4058 | } |
| 4059 | |
| 4060 | void hb_buffer_list_close(hb_buffer_list_t *list) |
| 4061 | { |
no outgoing calls
no test coverage detected