# HG changeset patch # User Olaf Wintermann # Date 1780679062 -7200 # Node ID d5500e601996b7c741ba6eb44179603d4ba4ca96 # Parent b79469a55540a8035d883d90205c28106f1b21ad add wrapper functions for typed obj access diff -r b79469a55540 -r d5500e601996 ui/common/wrapper.c --- a/ui/common/wrapper.c Fri Jun 05 18:02:54 2026 +0200 +++ b/ui/common/wrapper.c Fri Jun 05 19:04:22 2026 +0200 @@ -250,6 +250,17 @@ } +/* ---------------------------- UiTypedObj ---------------------------- */ + +void* ui_typed_obj_get_ptr(UiTypedObj *obj) { + return obj->ptr; +} + +uint64_t ui_typed_obj_get_type(UiTypedObj *obj) { + return obj->type; +} + + /* ------------------------- SubListItem (public) ------------------------- */ void ui_sublist_item_set_icon(UiSubListItem *item, const char *icon) { diff -r b79469a55540 -r d5500e601996 ui/common/wrapper.h --- a/ui/common/wrapper.h Fri Jun 05 18:02:54 2026 +0200 +++ b/ui/common/wrapper.h Fri Jun 05 19:04:22 2026 +0200 @@ -84,6 +84,9 @@ UIEXPORT int ui_event_get_int(UiEvent *event); UIEXPORT int ui_event_get_set(UiEvent *event); +UIEXPORT void* ui_typed_obj_get_ptr(UiTypedObj *obj); +UIEXPORT uint64_t ui_typed_obj_get_type(UiTypedObj *obj); + UIEXPORT int ui_list_selection_get_count(UiListSelection *sel); UIEXPORT int* ui_list_selection_get_rows(UiListSelection *sel); UIEXPORT void ui_list_set_selected_indices(UiList *list, int *indices, int num);