--- a/ui/ui/tree.h Sat Oct 18 09:43:05 2025 +0200 +++ b/ui/ui/tree.h Sat Oct 18 10:17:59 2025 +0200 @@ -319,6 +319,18 @@ UIEXPORT void ui_sublist_item_set_eventdata(UiSubListItem *item, void *eventdata); + +/* + * Only relevant for some language bindings + */ +typedef void(*ui_sourcelist_update_func)(void); + +/* + * The sourcelist update callback is called after any source list + * sublist update is completed + */ +UIEXPORT void ui_sourcelist_set_update_callback(ui_sourcelist_update_func cb); + #ifdef __cplusplus } #endif