RetroArch/menu/menu_entries.h

75 lines
2.2 KiB
C
Raw Normal View History

/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2015-01-07 16:46:50 +00:00
* Copyright (C) 2011-2015 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MENU_ENTRIES_H__
#define MENU_ENTRIES_H__
#include <stdlib.h>
2015-01-10 03:53:37 +00:00
#include "menu.h"
2014-10-21 17:23:28 +00:00
#include <file/file_list.h>
2015-03-20 23:49:55 +00:00
#include "../settings.h"
#ifdef HAVE_LIBRETRODB
#include "menu_database.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
int menu_entries_parse_list(file_list_t *list, file_list_t *menu_list,
const char *dir, const char *label, unsigned type,
2015-01-10 04:25:37 +00:00
unsigned default_type_plain, const char *exts,
rarch_setting_t *setting);
2015-02-27 01:44:10 +00:00
void menu_entries_cbs_init_bind_toggle(menu_file_list_cbs_t *cbs,
const char *path, const char *label, unsigned type, size_t idx,
const char *elem0, const char *elem1, const char *menu_label);
int menu_entries_deferred_push(file_list_t *list, file_list_t *menu_list);
2014-09-02 03:32:04 +00:00
/**
* menu_entries_init:
* @menu : Menu handle.
*
* Creates and initializes menu entries.
*
* Returns: true (1) if successful, otherwise false (0).
**/
2014-10-13 00:08:39 +00:00
bool menu_entries_init(menu_handle_t *menu);
int menu_entries_setting_set_flags(rarch_setting_t *setting);
2014-10-15 19:38:30 +00:00
2015-01-25 05:30:51 +00:00
int menu_entries_push_list(menu_handle_t *menu,
2014-11-14 20:56:21 +00:00
file_list_t *list,
const char *path, const char *label,
2015-01-25 05:30:51 +00:00
unsigned type, unsigned setting_flags);
2014-11-14 20:56:21 +00:00
int menu_entries_push_horizontal_menu_list(menu_handle_t *menu,
file_list_t *list,
const char *path, const char *label,
unsigned menu_type);
#ifdef HAVE_LIBRETRODB
int menu_entries_push_query(libretrodb_t *db,
libretrodb_cursor_t *cur, file_list_t *list);
#endif
#ifdef __cplusplus
}
#endif
#endif