Commit b8b8b4c2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

list_view_common: Allow the genlist to be queried

parent 9a4bd359
......@@ -131,6 +131,7 @@ typedef struct list_view
void (*pf_clear)(list_sys* p_sys);
const void* (*pf_get_item)(list_view_item* p_list_item);
void (*pf_set_item)(list_view_item* p_list_item, void* p_item);
Evas_Object* (*pf_get_list)(list_sys* p_sys);
} list_view;
#endif /* INTERFACE_H_ */
......@@ -57,6 +57,12 @@ list_view_destroy(list_sys* p_list)
free(p_list);
}
static Evas_Object*
list_view_get_genlist(list_sys* p_list)
{
return p_list->p_list;
}
void
list_view_common_setup(list_view* p_view, list_sys* p_list, interface* p_intf, view_sys_cb* p_view_cb, Evas_Object* p_parent)
{
......@@ -77,4 +83,5 @@ list_view_common_setup(list_view* p_view, list_sys* p_list, interface* p_intf, v
p_view->pf_show = &list_view_show;
p_view->pf_del = &list_view_destroy;
p_view->pf_clear = &list_view_clear;
p_view->pf_get_list = &list_view_get_genlist;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment