mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Move internal struct definition to runloop_data.c
This commit is contained in:
parent
d191886b6c
commit
8fd08bb6fe
67
runloop.h
67
runloop.h
@ -35,8 +35,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef int (*transfer_cb_t )(void *data, size_t len);
|
|
||||||
|
|
||||||
enum runloop_data_type
|
enum runloop_data_type
|
||||||
{
|
{
|
||||||
DATA_TYPE_NONE = 0,
|
DATA_TYPE_NONE = 0,
|
||||||
@ -48,71 +46,6 @@ enum runloop_data_type
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct nbio_image_handle
|
|
||||||
{
|
|
||||||
#ifndef IS_SALAMANDER
|
|
||||||
struct texture_image ti;
|
|
||||||
#endif
|
|
||||||
bool is_blocking;
|
|
||||||
bool is_blocking_on_processing;
|
|
||||||
bool is_finished;
|
|
||||||
bool is_finished_with_processing;
|
|
||||||
transfer_cb_t cb;
|
|
||||||
struct rpng_t *handle;
|
|
||||||
unsigned processing_pos_increment;
|
|
||||||
unsigned pos_increment;
|
|
||||||
uint64_t frame_count;
|
|
||||||
uint64_t processing_frame_count;
|
|
||||||
int processing_final_state;
|
|
||||||
msg_queue_t *msg_queue;
|
|
||||||
} nbio_image_handle_t;
|
|
||||||
|
|
||||||
typedef struct nbio_handle
|
|
||||||
{
|
|
||||||
nbio_image_handle_t image;
|
|
||||||
bool is_blocking;
|
|
||||||
bool is_finished;
|
|
||||||
transfer_cb_t cb;
|
|
||||||
struct nbio_t *handle;
|
|
||||||
unsigned pos_increment;
|
|
||||||
uint64_t frame_count;
|
|
||||||
msg_queue_t *msg_queue;
|
|
||||||
} nbio_handle_t;
|
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
|
||||||
typedef struct http_handle
|
|
||||||
{
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
struct http_connection_t *handle;
|
|
||||||
transfer_cb_t cb;
|
|
||||||
char elem1[PATH_MAX_LENGTH];
|
|
||||||
} connection;
|
|
||||||
msg_queue_t *msg_queue;
|
|
||||||
struct http_t *handle;
|
|
||||||
transfer_cb_t cb;
|
|
||||||
} http_handle_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* All data runloop-related globals go here. */
|
|
||||||
|
|
||||||
typedef struct data_runloop
|
|
||||||
{
|
|
||||||
#ifdef HAVE_NETWORKING
|
|
||||||
http_handle_t http;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifdef HAVE_LIBRETRODB
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
} db;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
nbio_handle_t nbio;
|
|
||||||
} data_runloop_t;
|
|
||||||
|
|
||||||
/* All libretro runloop-related globals go here. */
|
/* All libretro runloop-related globals go here. */
|
||||||
|
|
||||||
typedef struct runloop
|
typedef struct runloop
|
||||||
|
@ -17,10 +17,75 @@
|
|||||||
#include "runloop.h"
|
#include "runloop.h"
|
||||||
#include "general.h"
|
#include "general.h"
|
||||||
#include "input/input_overlay.h"
|
#include "input/input_overlay.h"
|
||||||
|
|
||||||
|
typedef int (*transfer_cb_t )(void *data, size_t len);
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
#include "net_http.h"
|
#include "net_http.h"
|
||||||
|
|
||||||
|
typedef struct http_handle
|
||||||
|
{
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
struct http_connection_t *handle;
|
||||||
|
transfer_cb_t cb;
|
||||||
|
char elem1[PATH_MAX_LENGTH];
|
||||||
|
} connection;
|
||||||
|
msg_queue_t *msg_queue;
|
||||||
|
struct http_t *handle;
|
||||||
|
transfer_cb_t cb;
|
||||||
|
} http_handle_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef struct nbio_image_handle
|
||||||
|
{
|
||||||
|
#ifndef IS_SALAMANDER
|
||||||
|
struct texture_image ti;
|
||||||
|
#endif
|
||||||
|
bool is_blocking;
|
||||||
|
bool is_blocking_on_processing;
|
||||||
|
bool is_finished;
|
||||||
|
bool is_finished_with_processing;
|
||||||
|
transfer_cb_t cb;
|
||||||
|
struct rpng_t *handle;
|
||||||
|
unsigned processing_pos_increment;
|
||||||
|
unsigned pos_increment;
|
||||||
|
uint64_t frame_count;
|
||||||
|
uint64_t processing_frame_count;
|
||||||
|
int processing_final_state;
|
||||||
|
msg_queue_t *msg_queue;
|
||||||
|
} nbio_image_handle_t;
|
||||||
|
|
||||||
|
typedef struct nbio_handle
|
||||||
|
{
|
||||||
|
nbio_image_handle_t image;
|
||||||
|
bool is_blocking;
|
||||||
|
bool is_finished;
|
||||||
|
transfer_cb_t cb;
|
||||||
|
struct nbio_t *handle;
|
||||||
|
unsigned pos_increment;
|
||||||
|
uint64_t frame_count;
|
||||||
|
msg_queue_t *msg_queue;
|
||||||
|
} nbio_handle_t;
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct data_runloop
|
||||||
|
{
|
||||||
|
#ifdef HAVE_NETWORKING
|
||||||
|
http_handle_t http;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#ifdef HAVE_LIBRETRODB
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
} db;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
nbio_handle_t nbio;
|
||||||
|
} data_runloop_t;
|
||||||
|
|
||||||
struct data_runloop g_data_runloop;
|
struct data_runloop g_data_runloop;
|
||||||
|
|
||||||
#ifdef HAVE_NETWORKING
|
#ifdef HAVE_NETWORKING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user