All: Added exports for qt

This commit is contained in:
Arves100 2019-06-23 03:35:23 +02:00 committed by endrift
parent 9f5adf2dcc
commit 0a06f4dad0
8 changed files with 12 additions and 8 deletions

View File

@ -7,6 +7,7 @@
#define M_LOG_H
#include <mgba-util/common.h>
#include <mgba-util/dllexports.h>
CXX_GUARD_START
@ -65,7 +66,7 @@ void mLog(int category, enum mLogLevel level, const char* format, ...);
_mLOG_CAT_ ## CATEGORY = mLogGenerateCategory(NAME, ID); \
}
mLOG_DECLARE_CATEGORY(STATUS)
MGBA_EXPORT mLOG_DECLARE_CATEGORY(STATUS)
CXX_GUARD_END

View File

@ -7,6 +7,7 @@
#define GBA_INTERFACE_H
#include <mgba-util/common.h>
#include <mgba-util/dllexports.h>
CXX_GUARD_START
@ -39,7 +40,7 @@ struct GBAAudio;
struct GBASIO;
struct GBAVideoRenderer;
extern const int GBA_LUX_LEVELS[10];
extern MGBA_EXPORT const int GBA_LUX_LEVELS[10];
enum {
mPERIPH_GBA_LUMINANCE = 0x1000,

View File

@ -7,6 +7,7 @@
#define GB_IO_H
#include <mgba-util/common.h>
#include <mgba-util/dllexports.h>
CXX_GUARD_START
@ -108,7 +109,7 @@ enum GBIORegisters {
REG_MAX = 0x100
};
extern const char* const GBIORegisterNames[];
extern MGBA_EXPORT const char* const GBIORegisterNames[];
struct GB;
void GBIOInit(struct GB* gb);

View File

@ -161,7 +161,7 @@ enum GBAIORegisters {
mLOG_DECLARE_CATEGORY(GBA_IO);
extern const char* const GBAIORegisterNames[];
extern MGBA_EXPORT const char* const GBAIORegisterNames[];
struct GBA;
void GBAIOInit(struct GBA* gba);

View File

@ -7,6 +7,7 @@
#define GBA_VIDEO_H
#include <mgba-util/common.h>
#include <mgba-util/dllexports.h>
CXX_GUARD_START
@ -228,7 +229,7 @@ struct GBASerializedState;
void GBAVideoSerialize(const struct GBAVideo* video, struct GBASerializedState* state);
void GBAVideoDeserialize(struct GBAVideo* video, const struct GBASerializedState* state);
extern const int GBAVideoObjSizes[16][2];
extern MGBA_EXPORT const int GBAVideoObjSizes[16][2];
CXX_GUARD_END

View File

@ -11,7 +11,7 @@
mLOG_DEFINE_CATEGORY(GB_IO, "GB I/O", "gb.io");
const char* const GBIORegisterNames[] = {
MGBA_EXPORT const char* const GBIORegisterNames[] = {
[REG_JOYP] = "JOYP",
[REG_SB] = "SB",
[REG_SC] = "SC",

View File

@ -13,7 +13,7 @@
mLOG_DEFINE_CATEGORY(GBA_HW, "GBA Pak Hardware", "gba.hardware");
const int GBA_LUX_LEVELS[10] = { 5, 11, 18, 27, 42, 62, 84, 109, 139, 183 };
MGBA_EXPORT const int GBA_LUX_LEVELS[10] = { 5, 11, 18, 27, 42, 62, 84, 109, 139, 183 };
static void _readPins(struct GBACartridgeHardware* hw);
static void _outputPins(struct GBACartridgeHardware* hw, unsigned pins);

View File

@ -33,7 +33,7 @@ static void GBAVideoDummyRendererPutPixels(struct GBAVideoRenderer* renderer, si
static void _startHblank(struct mTiming*, void* context, uint32_t cyclesLate);
static void _startHdraw(struct mTiming*, void* context, uint32_t cyclesLate);
const int GBAVideoObjSizes[16][2] = {
MGBA_EXPORT const int GBAVideoObjSizes[16][2] = {
{ 8, 8 },
{ 16, 16 },
{ 32, 32 },