[SDL] apply new symbol for dynamic APIs 46/73046/2 sample
authorWonsik, Jung <sidein@samsung.com>
Mon, 6 Jun 2016 03:24:48 +0000 (12:24 +0900)
committerWonsik, Jung <sidein@samsung.com>
Tue, 7 Jun 2016 01:57:12 +0000 (10:57 +0900)
For SDL_main, apply new symbol for dynamic APIs

Change-Id: Idfab815d8868f00cf0fae5fa7607dfbf16a25e26

include/SDL_main.h
src/core/tizen/SDL_tizen.h
src/dynapi/SDL_dynapi_overrides.h
src/dynapi/SDL_dynapi_procs.h
src/main/tizen/SDL_tizen_main.c

index 5036af5..91c5b7f 100644 (file)
@@ -156,6 +156,12 @@ extern DECLSPEC int SDLCALL SDL_WinRTRunApp(int (*mainFunction)(int, char **), v
 
 #endif /* __WINRT__ */
 
+#ifdef __TIZEN__
+
+extern DECLSPEC int SDLCALL SDL_tizen_app_init(int argc, char *argv[]);
+
+#endif /* __TIZEN__ */
+
 
 #ifdef __cplusplus
 }
index 674749a..908b310 100644 (file)
@@ -26,7 +26,6 @@
 #define _SDL_tizen_h
 
 #if __TIZEN__
-int  SDL_tizen_app_init(int argc, char *argv[]);
 void SDL_tizen_app_exit(void);
 #endif
 
index c9ebfff..9fadf11 100644 (file)
 #define SDL_JoystickCurrentPowerLevel SDL_JoystickCurrentPowerLevel_REAL
 #define SDL_GameControllerFromInstanceID SDL_GameControllerFromInstanceID_REAL
 #define SDL_JoystickFromInstanceID SDL_JoystickFromInstanceID_REAL
+#define SDL_tizen_app_init SDL_tizen_app_init_REAL
index 3f11a25..1efd814 100644 (file)
@@ -631,3 +631,6 @@ SDL_DYNAPI_PROC(int,SDL_GetDisplayDPI,(int a, float *b, float *c, float *d),(a,b
 SDL_DYNAPI_PROC(SDL_JoystickPowerLevel,SDL_JoystickCurrentPowerLevel,(SDL_Joystick *a),(a),return)
 SDL_DYNAPI_PROC(SDL_GameController*,SDL_GameControllerFromInstanceID,(SDL_JoystickID a),(a),return)
 SDL_DYNAPI_PROC(SDL_Joystick*,SDL_JoystickFromInstanceID,(SDL_JoystickID a),(a),return)
+#ifdef __TIZEN__
+SDL_DYNAPI_PROC(int,SDL_tizen_app_init,(int a, char *b[]),(a,b),return)
+#endif
index 32b514d..8c8157b 100644 (file)
@@ -4,15 +4,16 @@
 #include "SDL_config.h"
 
 #ifdef __TIZEN__
-
-#include "SDL_main.h"
 #include <stdlib.h>
 #include <stdio.h>
-#include "../../core/tizen/SDL_tizen.h"
+#include "SDL.h"
+#include "SDL_main.h"
+//#include "../../core/tizen/SDL_tizen.h"
 
 #ifdef main
 #undef main
 #endif
+
 int main(int argc, char *argv[])
 {
     printf("Start MAIN!!!!!!\n");