Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8094 → Rev 8096

/source/voidwrap/include/voidwrap.h
24,22 → 24,20
 
// #define VWDEBUG
 
// Callback types
typedef void (*VW_CALLBACK_NOPARAM)(void);
typedef void (*VW_CALLBACK_INT32)(int32_t);
typedef void (*VW_CALLBACK_CHARPTR)(char const *);
 
// Callback setup function types
typedef void (*VW_SETCALLBACK_NOPARAM)(VW_CALLBACK_NOPARAM);
typedef void (*VW_SETCALLBACK_INT32)(VW_CALLBACK_INT32);
typedef void (*VW_SETCALLBACK_CHARPTR)(VW_CALLBACK_CHARPTR);
 
// Function types
typedef void (*VW_VOID)(void);
typedef void (*VW_VOID_INT32)(int32_t);
typedef void (*VW_VOID_CONSTCHARPTR)(char const *);
typedef void (*VW_VOID_CONSTCHARPTR_INT32)(char const *, int32_t);
typedef bool (*VW_BOOL)(void);
#ifdef VWSCREENSHOT
typedef bool (*VW_BOOL_SCREENSHOT)(char * filepath, int32_t width, int32_t height);
#endif
typedef void (*VW_VOID)(void);
typedef int32_t (*VW_INT32)(void);
 
// Callback setup function types
typedef void (*VW_SETCALLBACK_VOID)(VW_VOID);
typedef void (*VW_SETCALLBACK_VOID_INT32)(VW_VOID_INT32);
typedef void (*VW_SETCALLBACK_VOID_CONSTCHARPTR)(VW_VOID_CONSTCHARPTR);
 
#endif
/source/voidwrap/include/voidwrap_steam.h
13,15 → 13,18
VOIDWRAP_API void Voidwrap_Steam_Shutdown(void);
VOIDWRAP_API void Voidwrap_Steam_RunCallbacks(void);
 
VOIDWRAP_API void Voidwrap_Steam_UnlockAchievement(char const * id);
VOIDWRAP_API void Voidwrap_Steam_SetStat(char const * id, int32_t value);
 
#ifdef VWDEBUG
VOIDWRAP_API void Voidwrap_Steam_SetCallback_PrintDebug(VW_CALLBACK_CHARPTR function);
VOIDWRAP_API void Voidwrap_Steam_SetCallback_PrintDebug(VW_VOID_CONSTCHARPTR function);
#endif
 
#ifdef VWSCREENSHOT
VOIDWRAP_API bool Voidwrap_Steam_SendScreenshot(char * filepath, int32_t width, int32_t height);
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotRequested(VW_CALLBACK_NOPARAM function);
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotRequested(VW_VOID function);
#if 0
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotReady(VW_CALLBACK_INT32 function);
VOIDWRAP_API void Voidwrap_Steam_SetCallback_ScreenshotReady(VW_VOID_INT32 function);
#endif
#endif
 
39,15 → 42,18
static VW_VOID Voidwrap_Steam_Shutdown;
static VW_VOID Voidwrap_Steam_RunCallbacks;
 
static VW_VOID_CONSTCHARPTR Voidwrap_Steam_UnlockAchievement;
static VW_VOID_CONSTCHARPTR_INT32 Voidwrap_Steam_SetStat;
 
#ifdef VWDEBUG
static VW_SETCALLBACK_CHARPTR Voidwrap_Steam_SetCallback_PrintDebug;
static VW_SETCALLBACK_VOID_CONSTCHARPTR Voidwrap_Steam_SetCallback_PrintDebug;
#endif
 
#ifdef VWSCREENSHOT
static VW_BOOL_SCREENSHOT Voidwrap_Steam_SendScreenshot;
static VW_SETCALLBACK_NOPARAM Voidwrap_Steam_SetCallback_ScreenshotRequested;
static VW_SETCALLBACK_VOID Voidwrap_Steam_SetCallback_ScreenshotRequested;
#if 0
static VW_SETCALLBACK_INT32 Voidwrap_Steam_SetCallback_ScreenshotReady;
static VW_SETCALLBACK_VOID_INT32 Voidwrap_Steam_SetCallback_ScreenshotReady;
#endif
#endif