88 } |
88 } |
89 } |
89 } |
90 |
90 |
91 /* --------------------------- UiList --------------------------- */ |
91 /* --------------------------- UiList --------------------------- */ |
92 |
92 |
93 UiList* ui_list_new(void) { |
93 UiList* ui_list_new(UiContext *ctx, char *name) { |
94 UiList *list = malloc(sizeof(UiList)); |
94 UiList *list = malloc(sizeof(UiList)); |
95 list->first = ui_list_first; |
95 list->first = ui_list_first; |
96 list->next = ui_list_next; |
96 list->next = ui_list_next; |
97 list->get = ui_list_get; |
97 list->get = ui_list_get; |
98 list->count = ui_list_count; |
98 list->count = ui_list_count; |
203 ucx_list_free(cols); |
207 ucx_list_free(cols); |
204 |
208 |
205 return info; |
209 return info; |
206 } |
210 } |
207 |
211 |
208 void ui_model_info_free(UiContext *ctx, UiModel *mi) { |
212 void ui_model_free(UiContext *ctx, UiModel *mi) { |
209 ucx_mempool_free(ctx->mempool, mi->types); |
213 ucx_mempool_free(ctx->mempool, mi->types); |
210 ucx_mempool_free(ctx->mempool, mi->titles); |
214 ucx_mempool_free(ctx->mempool, mi->titles); |
211 ucx_mempool_free(ctx->mempool, mi); |
215 ucx_mempool_free(ctx->mempool, mi); |
212 } |
216 } |
213 |
217 |