2015-05-05 15:36:58 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* 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 COMMON_TASKS_H
|
|
|
|
#define COMMON_TASKS_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <boolean.h>
|
2015-07-08 20:14:31 +00:00
|
|
|
|
|
|
|
#include <queues/message_queue.h>
|
|
|
|
|
2015-05-05 15:36:58 +00:00
|
|
|
#include "../runloop_data.h"
|
|
|
|
|
2015-09-16 20:39:47 +00:00
|
|
|
#define MAX_TOKEN_LEN 255
|
|
|
|
|
2015-05-05 15:36:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-07-08 18:04:16 +00:00
|
|
|
void rarch_main_data_nbio_uninit(void);
|
|
|
|
|
|
|
|
void rarch_main_data_nbio_init(void);
|
|
|
|
|
|
|
|
void rarch_main_data_nbio_init_msg_queue(void);
|
|
|
|
|
|
|
|
msg_queue_t *rarch_main_data_nbio_get_msg_queue_ptr(void);
|
|
|
|
|
|
|
|
msg_queue_t *rarch_main_data_nbio_image_get_msg_queue_ptr(void);
|
|
|
|
|
2015-07-08 18:10:18 +00:00
|
|
|
void *rarch_main_data_nbio_get_handle(void);
|
|
|
|
|
|
|
|
void *rarch_main_data_nbio_image_get_handle(void);
|
|
|
|
|
2015-05-05 15:36:58 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
|
|
|
/**
|
|
|
|
* rarch_main_data_http_iterate_transfer:
|
|
|
|
*
|
|
|
|
* Resumes HTTP transfer update.
|
|
|
|
*
|
|
|
|
* Returns: 0 when finished, -1 when we should continue
|
|
|
|
* with the transfer on the next frame.
|
|
|
|
**/
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_http_iterate(bool is_thread);
|
2015-07-08 19:18:34 +00:00
|
|
|
|
|
|
|
msg_queue_t *rarch_main_data_http_get_msg_queue_ptr(void);
|
|
|
|
|
|
|
|
void rarch_main_data_http_init_msg_queue(void);
|
2015-07-08 19:35:24 +00:00
|
|
|
|
|
|
|
void *rarch_main_data_http_get_handle(void);
|
|
|
|
|
|
|
|
void *rarch_main_data_http_conn_get_handle(void);
|
|
|
|
|
2015-07-08 19:38:22 +00:00
|
|
|
void rarch_main_data_http_uninit(void);
|
|
|
|
|
2015-07-08 19:35:24 +00:00
|
|
|
void rarch_main_data_http_init(void);
|
2015-05-05 15:36:58 +00:00
|
|
|
#endif
|
2015-05-05 15:58:37 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_RPNG
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_nbio_image_iterate(bool is_thread);
|
|
|
|
void rarch_main_data_nbio_image_upload_iterate(bool is_thread);
|
2015-05-05 15:58:37 +00:00
|
|
|
#endif
|
|
|
|
|
2015-05-05 16:05:59 +00:00
|
|
|
#ifdef HAVE_LIBRETRODB
|
|
|
|
#ifdef HAVE_MENU
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_db_iterate(bool is_thread);
|
2015-07-09 00:31:46 +00:00
|
|
|
|
|
|
|
bool rarch_main_data_db_pending_scan_finished(void);
|
2015-05-05 16:05:59 +00:00
|
|
|
#endif
|
2015-07-08 19:48:58 +00:00
|
|
|
|
|
|
|
void rarch_main_data_db_init_msg_queue(void);
|
|
|
|
|
|
|
|
msg_queue_t *rarch_main_data_db_get_msg_queue_ptr(void);
|
2015-07-08 20:03:23 +00:00
|
|
|
|
|
|
|
void rarch_main_data_db_uninit(void);
|
|
|
|
|
|
|
|
void rarch_main_data_db_init(void);
|
|
|
|
|
|
|
|
bool rarch_main_data_db_is_active(void);
|
2015-05-05 16:05:59 +00:00
|
|
|
#endif
|
|
|
|
|
2015-05-05 16:16:09 +00:00
|
|
|
#ifdef HAVE_OVERLAY
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_overlay_image_upload_iterate(bool is_thread);
|
2015-05-05 16:16:09 +00:00
|
|
|
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_overlay_iterate(bool is_thread);
|
2015-07-08 20:42:45 +00:00
|
|
|
|
|
|
|
void rarch_main_data_overlay_thread_uninit(void);
|
|
|
|
|
|
|
|
void rarch_main_data_overlay_thread_init(void);
|
2015-05-05 16:16:09 +00:00
|
|
|
#endif
|
|
|
|
|
2015-07-08 21:01:11 +00:00
|
|
|
void rarch_main_data_nbio_iterate(bool is_thread);
|
2015-05-05 15:36:58 +00:00
|
|
|
|
2015-06-02 16:28:51 +00:00
|
|
|
void data_runloop_osd_msg(const char *s, size_t len);
|
2015-05-05 15:36:58 +00:00
|
|
|
|
2015-09-16 20:39:47 +00:00
|
|
|
int find_first_data_track(const char* cue_path,
|
|
|
|
int32_t* offset, char* track_path, size_t max_len);
|
|
|
|
|
|
|
|
int detect_system(const char* track_path, int32_t offset,
|
|
|
|
const char** system_name);
|
|
|
|
|
|
|
|
int detect_ps1_game(const char *track_path, char *game_id);
|
|
|
|
|
2015-09-26 22:12:17 +00:00
|
|
|
int detect_psp_game(const char *track_path, char *game_id);
|
|
|
|
|
2015-05-05 15:36:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|