RetroArch/playlist.h

71 lines
1.9 KiB
C
Raw Normal View History

2013-04-27 18:15:59 -04:00
/* RetroArch - A frontend for libretro.
2013-12-31 19:50:59 -05:00
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2015-01-07 11:46:50 -05:00
* Copyright (C) 2011-2015 - Daniel De Matteis
* Copyright (C) 2013-2014 - Jason Fetters
2013-04-27 18:15:59 -04:00
*
* 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/>.
*/
2014-07-28 14:08:37 -04:00
#ifndef CONTENT_HISTORY_H__
#define CONTENT_HISTORY_H__
2013-04-27 18:15:59 -04:00
#include <stddef.h>
2013-04-27 20:01:25 -04:00
#ifdef __cplusplus
extern "C" {
#endif
2014-08-15 11:24:28 -04:00
typedef struct content_playlist content_playlist_t;
2013-04-27 18:15:59 -04:00
/**
* content_playlist_init:
*
* Creates and initializes a playlist.
*
* Returns: handle to new playlist if successful, otherwise NULL
**/
2014-08-15 11:24:28 -04:00
content_playlist_t *content_playlist_init(const char *path, size_t size);
2014-09-01 23:32:04 -04:00
/**
* content_playlist_free:
* @playlist : Playlist handle.
*
* Frees playlist handle.
*/
2014-08-15 11:32:38 -04:00
void content_playlist_free(content_playlist_t *playlist);
2013-04-27 18:15:59 -04:00
/**
* content_playlist_clear:
* @playlist : Playlist handle.
*
* Clears all playlist entries in playlist.
**/
2014-08-15 11:32:38 -04:00
void content_playlist_clear(content_playlist_t *playlist);
2014-08-15 11:32:38 -04:00
size_t content_playlist_size(content_playlist_t *playlist);
2013-04-27 18:15:59 -04:00
2014-08-15 11:32:38 -04:00
void content_playlist_get_index(content_playlist_t *playlist,
2013-04-27 18:15:59 -04:00
size_t index,
const char **path, const char **core_path,
const char **core_name);
2014-08-15 11:32:38 -04:00
void content_playlist_push(content_playlist_t *playlist,
2013-04-27 18:15:59 -04:00
const char *path, const char *core_path,
const char *core_name);
2013-04-27 20:01:25 -04:00
#ifdef __cplusplus
}
#endif
2013-04-27 18:15:59 -04:00
#endif