mirror of
https://github.com/libretro/RetroArch
synced 2025-03-23 19:21:03 +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" {
|
||||
#endif
|
||||
|
||||
typedef int (*transfer_cb_t )(void *data, size_t len);
|
||||
|
||||
enum runloop_data_type
|
||||
{
|
||||
DATA_TYPE_NONE = 0,
|
||||
@ -48,71 +46,6 @@ enum runloop_data_type
|
||||
#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. */
|
||||
|
||||
typedef struct runloop
|
||||
|
@ -17,10 +17,75 @@
|
||||
#include "runloop.h"
|
||||
#include "general.h"
|
||||
#include "input/input_overlay.h"
|
||||
|
||||
typedef int (*transfer_cb_t )(void *data, size_t len);
|
||||
|
||||
#ifdef HAVE_NETWORKING
|
||||
#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
|
||||
|
||||
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;
|
||||
|
||||
#ifdef HAVE_NETWORKING
|
||||
|
Loading…
x
Reference in New Issue
Block a user