diff --git a/menu/menu.c b/menu/menu.c index 3baa35f752..06d0849f1f 100644 --- a/menu/menu.c +++ b/menu/menu.c @@ -200,6 +200,12 @@ void *menu_init(const void *data) return menu; } +/** + * menu_free_list: + * @data : Menu handle. + * + * Frees menu lists. + **/ void menu_free_list(void *data) { menu_handle_t *menu = (menu_handle_t*)data; @@ -213,9 +219,19 @@ void menu_free_list(void *data) menu->list_settings = NULL; } +/** + * menu_init_list: + * @data : Menu handle. + * + * Initialize menu lists. + * Will be performed after menu_init(). + * + * Returns: true (1) if successful, otherwise false (0). + **/ bool menu_init_list(void *data) { menu_handle_t *menu = (menu_handle_t*)data; + if (!menu) return false; diff --git a/menu/menu.h b/menu/menu.h index 54311e027b..8fdf11f0c0 100644 --- a/menu/menu.h +++ b/menu/menu.h @@ -161,8 +161,23 @@ typedef enum **/ void *menu_init(const void *data); +/** + * menu_free_list: + * @data : Menu handle. + * + * Frees menu lists. + **/ void menu_free_list(void *data); +/** + * menu_init_list: + * @data : Menu handle. + * + * Initialize menu lists. + * Will be performed after menu_init(). + * + * Returns: true (1) if successful, otherwise false (0). + **/ bool menu_init_list(void *data); /**