msgba/include/msgba/core_controller.h

32 lines
848 B
C

#ifndef MS_CORE_CONTROLLER
#define MS_CORE_CONTROLLER
#include <unistd.h>
#include <mgba/core/core.h>
#include <mgba/core/thread.h>
#include <msgba/client_connection_data.h>
struct msMultiplayerController;
struct msCoreController {
struct msMultiplayerController *multiplayer;
struct mCoreThread threadContext;
color_t *outputBuffer;
unsigned int stride;
};
struct msCoreController *
msCoreControllerLoadGame (const unsigned char *rom, size_t rom_len,
const unsigned char *state, size_t state_len,
struct msClientConnectionData *const data);
void
msCoreControllerDestroy(struct msCoreController **controller_ptr);
struct msCoreController *
msCoreControllerNew (struct mCore *core, struct msClientConnectionData *const data);
void
msCoreControllerThreadStart (struct msCoreController *const core_controller);
#endif