[FEATURE] Osp: total remove 47/22347/3
authorAlexander Aksenov <a.aksenov@samsung.com>
Mon, 2 Jun 2014 08:22:29 +0000 (12:22 +0400)
committerAlexander Aksenov <a.aksenov@samsung.com>
Mon, 2 Jun 2014 13:50:22 +0000 (17:50 +0400)
Change-Id: Ib83add40060870775d666c959f2da35318d7cdca
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
21 files changed:
Makefile
helper/appfw-tizen.cpp [deleted file]
helper/dahelper.c
include/dahelper.h
probe_event/gesture.cpp
probe_event/orientation.c
probe_graphics/da_egl_tizen.cpp
probe_graphics/da_gles20.h
probe_socket/da_socket.h
probe_tizenapi/tizen_constructor.cpp [deleted file]
probe_tizenapi/tizen_controls.cpp [deleted file]
probe_tizenapi/tizen_file.cpp [deleted file]
probe_tizenapi/tizen_http.cpp [deleted file]
probe_tizenapi/tizen_lifecycle.cpp [deleted file]
probe_tizenapi/tizen_socket.cpp [deleted file]
probe_tizenapi/tizen_sync.cpp [deleted file]
probe_tizenapi/tizen_thread.cpp [deleted file]
probe_ui/tizen_capture.cpp [deleted file]
probe_ui/tizen_display.cpp [deleted file]
probe_ui/tizen_frameani.cpp [deleted file]
probe_ui/tizen_scenemanager.cpp [deleted file]

index f8f4a56..f8277f5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,6 @@ INCLUDE_CPPFLAGS =                            \
                -I/usr/include/elementary-1     \
                -I/usr/include/ethumb-1         \
                -I/usr/include/evas-1           \
-               -I/usr/include/osp              \
                -I/usr/include/pixman-1         \
                -I/usr/include/system           \
                -I/usr/include/vconf            \
@@ -39,12 +38,11 @@ WARN_CFLAGS =                               \
                -Wpacked                \
                -Winline                \
                -Wno-psabi              \
-               -isystem /usr/include/osp
 
 ## Since linking unneeded libraries bloats output of ldd(1), this variable
 ## holds search paths and common libraries.
 
-LDFLAGS = -shared -L/usr/lib/osp       \
+LDFLAGS = -shared      \
        -lX11                           \
        -lXext                          \
        -lcapi-appfw-application        \
@@ -97,6 +95,8 @@ CAPI_SRCS =   $(COMMON_SRCS)                  \
 
 TIZEN_SRCS =   $(COMMON_SRCS)                          \
                ./helper/addr-tizen.c                   \
+               ./helper/common_probe_init.cpp  \
+               ./probe_memory/libdanew.cpp
 
 ASM_SRC = ./helper/da_call_original.S
 
diff --git a/helper/appfw-tizen.cpp b/helper/appfw-tizen.cpp
deleted file mode 100644 (file)
index 306c3d4..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include <app.h>
-#include <FApp.h>
-#include "dahelper.h"
-using namespace Tizen::App;
-
-#define UNKNOWN_USER_EVENT     5873
-
-#ifdef __cplusplus
-extern "C"{
-#endif
-
-void application_exit()
-{
-       App* self = App::GetInstance();
-       if(self != NULL)
-       {
-               PRINTMSG("EXIT self");
-               self->Terminate();
-               // send unknown user event to main thread
-               // because this cause that main thread execute terminating routine without block
-               self->SendUserEvent(UNKNOWN_USER_EVENT, NULL);
-       }
-       else
-       {
-               PRINTMSG("EXIT self - efl_exit >");
-               app_efl_exit();
-               if (app_efl_main_flg == 0) {
-                       PRINTMSG("no app_efl_main detected, terminate by exit(0)");
-                       //sleep for flush message to manager
-                       sleep(1);
-                       exit(0);
-               }
-               PRINTMSG("EXIT self - efl_exit <");
-       }
-}
-
-#ifdef __cplusplus
-}
-#endif
-
index 20a1f10..4e70d51 100755 (executable)
@@ -41,16 +41,12 @@ const char *lib_string[NUM_ORIGINAL_LIBRARY] = {
        "libc.so.6",                            //0
        "libpthread.so.0",                      //1
        "libelementary.so",                     //2
-       "libosp-uifw.so",                       //3
-       "libosp-appfw.so",                      //4
-       "libosp-web.so",                        //5
-       "libecore_input_evas.so.1",             //6
-       "libdaemon.so.0",                       //7
-       "libcapi-appfw-application.so.0",       //8
-       "libGLESv2.so",                         //9
-       "libEGL.so",                            //10
-       "libosp-net.so",                        //11
-       SELF_LIB_NAME                           //12
+       "libecore_input_evas.so.1",             //3
+       "libdaemon.so.0",                       //4
+       "libcapi-appfw-application.so.0",       //5
+       "libGLESv2.so",                         //6
+       "libEGL.so",                            //7
+       SELF_LIB_NAME                           //8
 };
 void *lib_handle[NUM_ORIGINAL_LIBRARY];
 
index 1947845..feceba5 100755 (executable)
@@ -138,23 +138,19 @@ extern int app_efl_main_flg;
                }                                                                                                               \
        } while(0)
 
-#define        NUM_ORIGINAL_LIBRARY    13
+#define        NUM_ORIGINAL_LIBRARY    9
 
 typedef enum
 {
        LIBC = 0,
        LIBPTHREAD = 1,
        LIBELEMENTARY = 2,
-       LIBOSP_UIFW = 3,
-       LIBOSP_APPFW = 4,
-       LIBOSP_WEB = 5,
-       LIBECORE_INPUT_EVAS = 6,
-       LIBDAEMON = 7,
-       LIBCAPI_APPFW_APPLICATION = 8,
-       LIBGLES20 = 9,
-       LIBEGL = 10,
-       LIBOSP_NET = 11,
-       LIBSELF = 12
+       LIBECORE_INPUT_EVAS = 3,
+       LIBDAEMON = 4,
+       LIBCAPI_APPFW_APPLICATION = 5,
+       LIBGLES20 = 6,
+       LIBEGL = 7,
+       LIBSELF = 8
 } ORIGINAL_LIBRARY;
 
 extern const char *lib_string[NUM_ORIGINAL_LIBRARY];
index f7666ac..72820bd 100755 (executable)
@@ -475,208 +475,3 @@ GestureEventListener& GestureEventListener::GetInstance()
 {
        return rInstance;
 }
-
-
-namespace Tizen { namespace Ui {
-
-result TouchFlickGestureDetector::AddFlickGestureEventListener(ITouchFlickGestureEventListener& listener)
-{
-       typedef result (TouchFlickGestureDetector::*methodType)(ITouchFlickGestureEventListener& listener);
-       static methodType addflickgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui25TouchFlickGestureDetector28AddFlickGestureEventListenerERNS0_31ITouchFlickGestureEventListenerE,
-                       LIBOSP_UIFW, addflickgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addflickgestureeventlistenerp)(static_cast<ITouchFlickGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addflickgestureeventlistenerp)(listener);
-}
-
-result TouchLongPressGestureDetector::AddLongPressGestureEventListener(ITouchLongPressGestureEventListener& listener)
-{
-       typedef result (TouchLongPressGestureDetector::*methodType)(ITouchLongPressGestureEventListener& listener);
-       static methodType addlongpressgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui29TouchLongPressGestureDetector32AddLongPressGestureEventListenerERNS0_35ITouchLongPressGestureEventListenerE,
-                       LIBOSP_UIFW, addlongpressgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addlongpressgestureeventlistenerp)(static_cast<ITouchLongPressGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addlongpressgestureeventlistenerp)(listener);
-}
-
-result TouchPanningGestureDetector::AddPanningGestureEventListener(ITouchPanningGestureEventListener& listener)
-{
-       typedef result (TouchPanningGestureDetector::*methodType)(ITouchPanningGestureEventListener& listener);
-       static methodType addpanninggestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui27TouchPanningGestureDetector30AddPanningGestureEventListenerERNS0_33ITouchPanningGestureEventListenerE,
-                       LIBOSP_UIFW, addpanninggestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addpanninggestureeventlistenerp)(static_cast<ITouchPanningGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addpanninggestureeventlistenerp)(listener);
-}
-
-result TouchPinchGestureDetector::AddPinchGestureEventListener(ITouchPinchGestureEventListener& listener)
-{
-       typedef result (TouchPinchGestureDetector::*methodType)(ITouchPinchGestureEventListener& listener);
-       static methodType addpinchgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui25TouchPinchGestureDetector28AddPinchGestureEventListenerERNS0_31ITouchPinchGestureEventListenerE,
-                       LIBOSP_UIFW, addpinchgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addpinchgestureeventlistenerp)(static_cast<ITouchPinchGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addpinchgestureeventlistenerp)(listener);
-}
-
-result TouchRotationGestureDetector::AddRotationGestureEventListener(ITouchRotationGestureEventListener& listener)
-{
-       typedef result (TouchRotationGestureDetector::*methodType)(ITouchRotationGestureEventListener& listener);
-       static methodType addrotationgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui28TouchRotationGestureDetector31AddRotationGestureEventListenerERNS0_34ITouchRotationGestureEventListenerE,
-                       LIBOSP_UIFW, addrotationgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addrotationgestureeventlistenerp)(static_cast<ITouchRotationGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addrotationgestureeventlistenerp)(listener);
-}
-
-result TouchTapGestureDetector::AddTapGestureEventListener(ITouchTapGestureEventListener& listener)
-{
-       typedef result (TouchTapGestureDetector::*methodType)(ITouchTapGestureEventListener& listener);
-       static methodType addtapgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui23TouchTapGestureDetector26AddTapGestureEventListenerERNS0_29ITouchTapGestureEventListenerE,
-                       LIBOSP_UIFW, addtapgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addtapgestureeventlistenerp)(static_cast<ITouchTapGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addtapgestureeventlistenerp)(listener);
-}
-
-result TouchGestureDetector::AddGestureEventListener(ITouchGestureEventListener& listener)
-{
-       typedef result (TouchGestureDetector::*methodType)(ITouchGestureEventListener& listener);
-       static methodType addgestureeventlistenerp;
-       result iret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui20TouchGestureDetector23AddGestureEventListenerERNS0_26ITouchGestureEventListenerE,
-                       LIBOSP_UIFW, addgestureeventlistenerp);
-
-       probeBlockStart();
-       GestureEventListener& mylistener = GestureEventListener::GetInstance();
-       if(add_detector_hash(static_cast<void*>(this), static_cast<void*>(&mylistener)) <= 0)
-       {
-               iret = (this->*addgestureeventlistenerp)(static_cast<ITouchGestureEventListener&>(mylistener));
-               if(likely(iret == E_SUCCESS))
-               {
-                       // do nothing
-               }
-               else
-               {
-                       del_detector_hash(static_cast<void*>(this));
-               }
-       }
-       probeBlockEnd();
-
-       return (this->*addgestureeventlistenerp)(listener);
-}
-
-
-} }    // end of namespace
-
-
-
index 3dfe953..1508407 100644 (file)
 #include "daprobe.h"
 #include "dahelper.h"
 
-static int init_orient = 0;
 
 Ecore_Event_Handler *register_orientation_event_listener();
 void unregister_orientation_event_listener(Ecore_Event_Handler **handler);
 
 Ecore_Event_Handler *handler = NULL;
 
-EAPI int ecore_x_init(const char *name)
-{
-       static int (*ecore_x_initp)(const char *name);
-       int res;
-
-       probeBlockStart();
-       GET_REAL_FUNC(ecore_x_init, LIBOSP_UIFW);
-
-       probeBlockEnd();
-       res = ecore_x_initp(name);
-
-       if ((init_orient == 0) && (res == 1)) {
-               handler = register_orientation_event_listener();
-               init_orient = 1;
-       }
-       return res;
-}
-
-EAPI int ecore_x_shutdown(void)
-{
-       static int (*ecore_x_shutdownp)(void);
-       int res;
-
-       probeBlockStart();
-       GET_REAL_FUNC(ecore_x_shutdown, LIBOSP_UIFW);
-
-       probeBlockEnd();
-       res = ecore_x_shutdownp();
-
-       if ((init_orient == 1) && (res == 0)) {
-               unregister_orientation_event_listener(&handler);
-               init_orient = 0;
-       }
-
-       return res;
-}
 
 Eina_Bool _da_onclientmessagereceived(void __unused *pData, int __unused type,
                                      void *pEvent)
index d21fd5c..368f38b 100644 (file)
@@ -609,17 +609,3 @@ EGLAPI __eglGetProcAddress_t eglGetProcAddress(const char *procname)
        return ret;
 }
 
-EGLBoolean eglUpdateBufferOSP(EGLDisplay dpy, EGLSurface surface)
-{
-       typedef EGLBoolean (*methodType)(EGLDisplay dpy, EGLSurface surface);
-       /* probe prepare */
-       BEFORE_EGL(eglUpdateBufferOSP);
-       /* call original function */
-       EGLBoolean ret = eglUpdateBufferOSPp(dpy, surface);
-       /* get error code */
-       EGL_GET_ERROR();
-       /* pack and send */
-       AFTER('d', ret, APITYPE_CONTEXT, "",
-             "pp", voidp_to_uint64(dpy), voidp_to_uint64(surface));
-       return ret;
-}
index a789e22..d378d1c 100644 (file)
        if(!FUNCNAME##p)                                                \
                init_probe_egl(#FUNCNAME, (void **)&FUNCNAME##p, LIBEGL)
 
-#define BEFORE_EGL_TIZEN(FUNCNAME)                                     \
-       DECLARE_VARIABLE_STANDARD_NORET;                                \
-       GLenum error = EGL_SUCCESS;                                     \
-       static methodType FUNCNAME##p = 0;                              \
-       int32_t vAPI_ID = FUNCID(FUNCNAME);                             \
-       uint64_t start_nsec = 0;                                        \
-       PRE_PROBEBLOCK();                                               \
-       if(blockresult != 0)                                            \
-               start_nsec = get_current_nsec();                        \
-       if(!FUNCNAME##p)                                                \
-               init_probe_egl(FUNCSTR(FUNCNAME), (void **)&FUNCNAME##p, LIBOSP_UIFW)
-
 #define EGL_GET_ERROR()                                                        \
        if (blockresult != 0) {                                         \
                error = eglGetError();                                  \
        }
 
-#define BEFORE_OSP_UIFW(FUNCNAME)                                      \
-       DECLARE_VARIABLE_STANDARD_NORET;                        \
-       GLenum error = GL_NO_ERROR;                             \
-       static methodType FUNCNAME ## p = 0;                    \
-       void* tmpPtr = 0;                                       \
-       int32_t vAPI_ID = API_ID_ ## FUNCNAME;                  \
-       uint64_t start_nsec = 0;                                        \
-       PRE_PROBEBLOCK();                                               \
-       if(blockresult != 0)                                            \
-               start_nsec = get_current_nsec();                        \
-       if(!FUNCNAME##p) {                                              \
-               probeBlockStart();                                      \
-               INIT_LIB(LIBOSP_UIFW, RTLD_LAZY);                       \
-               tmpPtr = dlsym(lib_handle[LIBOSP_UIFW], #FUNCNAME);     \
-               if (tmpPtr == NULL || dlerror() != NULL) {              \
-                       perror("dlsym failed : " #FUNCNAME);            \
-                       exit(0);                                        \
-               }                                                       \
-               memcpy(&FUNCNAME##p, &tmpPtr, sizeof(tmpPtr));          \
-               probeBlockEnd();                                        \
-       }
-
 #define AFTER(RET_TYPE, RET_VAL, APITYPE, CONTEXT_VAL, INPUTFORMAT, ...)       \
        POST_PACK_PROBEBLOCK_BEGIN();                                           \
        PREPARE_LOCAL_BUF();                                                    \
index 3f6817b..12f1072 100644 (file)
                PACK_COMMON_BEGIN(MSG_PROBE_NETWORK, vAPI_ID, INPUTFORMAT, __VA_ARGS__);\
                PACK_COMMON_END(RTYPE, RETVALUE, errno, blockresult)
 
-#define BEFORE_ORIGINAL_TIZEN_NET(FUNCNAME, FUNCTIONPOINTER)   \
-               DECLARE_VARIABLE_STANDARD_OSP_NET(FUNCNAME);                                                            \
-               GET_REAL_FUNC_TIZEN(FUNCNAME, LIBOSP_NET,FUNCTIONPOINTER); \
-               PRE_PROBEBLOCK()
-
-#define DECLARE_VARIABLE_STANDARD_OSP_NET(FUNCNAME)            \
-               probeInfo_t probeInfo;                          \
-               info_t info;                                    \
-               int blockresult;                                \
-               bool bfiltering = true;                         \
-               int olderrno = 0, newerrno = 0;                 \
-               int32_t __attribute__((unused)) vAPI_ID = API_ID_ ## FUNCNAME /* FUNCID FIXME bad way*/; \
-               INIT_INFO
-
 #define POST_PROBEBLOCK_MIDDLE_TIZEN_SOCK(OBJECTPTR, FDVALUE, APITYPE, TOTAL_INFO )                            \
        do {                                                                    \
                BUF_PTR = pack_int64(BUF_PTR, (uintptr_t)OBJECTPTR);            \
        } while (0)
 
 
-//TIZEN
-#define CALL_ORIGINAL_TIZEN_NET(FUNCNAME, FUNCTIONPOINTER)     \
-               GET_REAL_FUNC_TIZEN(FUNCNAME, LIBOSP_NET,FUNCTIONPOINTER)
-
 
 //Tizen Common Function
 #define AFTER_ORIGINAL_TIZEN_SOCK(APINAME, RTYPE, RVAL, OBJECTPTR, FDVALUE, APITYPE, TOTAL_INFO, INPUTFORMAT, ...)     \
diff --git a/probe_tizenapi/tizen_constructor.cpp b/probe_tizenapi/tizen_constructor.cpp
deleted file mode 100755 (executable)
index 83b9537..0000000
+++ /dev/null
@@ -1,1164 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "daprobe.h"
-#include "dahelper.h"
-#include "dacollection.h"
-#include "tizen_probe.h"
-
-namespace Tizen { namespace Ui {
-
-class Control
-{
-       Control(void);
-       ~Control(void);
-};
-
-class CustomControlBase
-{
-       CustomControlBase(void);
-};
-
-class Container
-{
-       Container(void);
-};
-
-class Window
-{
-       Window(void);
-};
-
-Control::Control(void)
-{
-       typedef void (Control::*methodType)(void);
-       static methodType control_controlp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui7ControlC2Ev, LIBOSP_UIFW, control_controlp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Control");
-       probeBlockEnd();
-
-       (this->*control_controlp)();
-}
-
-Control::~Control(void)
-{
-       typedef void (Control::*methodType)(void);
-       static methodType control__controlvoidp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui7ControlD2Ev, LIBOSP_UIFW, control__controlvoidp);
-
-       probeBlockStart();
-       del_uiobject_hash(static_cast<void*>(this));
-       probeBlockEnd();
-
-       (this->*control__controlvoidp)();
-}
-
-CustomControlBase::CustomControlBase(void)
-{
-       typedef void (CustomControlBase::*methodType)(void);
-       static methodType customcontrolbase_customcontrolbasep;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui17CustomControlBaseC2Ev, LIBOSP_UIFW, customcontrolbase_customcontrolbasep);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "CustomControlBase");
-       probeBlockEnd();
-
-       (this->*customcontrolbase_customcontrolbasep)();
-}
-
-Container::Container(void)
-{
-       typedef void (Container::*methodType)(void);
-       static methodType container_containerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui9ContainerC2Ev, LIBOSP_UIFW, container_containerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Container");
-       probeBlockEnd();
-
-       (this->*container_containerp)();
-}
-
-Window::Window(void)
-{
-       typedef void (Window::*methodType)(void);
-       static methodType window_windowp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui6WindowC2Ev, LIBOSP_UIFW, window_windowp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Window");
-       probeBlockEnd();
-
-       (this->*window_windowp)();
-}
-
-namespace Controls {
-
-class Animation
-{
-       Animation(void);
-};
-
-class Button
-{
-       Button(void);
-};
-
-class CheckButton
-{
-       CheckButton(void);
-};
-
-class ColorPicker
-{
-       ColorPicker(void);
-};
-
-class CustomList
-{
-       CustomList(void);
-};
-
-class EditArea
-{
-       EditArea(void);
-};
-
-class EditDate
-{
-       EditDate(void);
-};
-
-class EditField
-{
-       EditField(void);
-};
-
-class EditTime
-{
-       EditTime(void);
-};
-
-class ExpandableEditArea
-{
-       ExpandableEditArea(void);
-};
-
-class ExpandableList
-{
-       ExpandableList(void);
-};
-
-class Footer
-{
-       Footer(void);
-};
-
-class Gallery
-{
-       Gallery(void);
-};
-
-class GroupedList
-{
-       GroupedList(void);
-};
-
-class GroupedListView
-{
-       GroupedListView(void);
-};
-
-class Header
-{
-       Header(void);
-};
-
-class IconList
-{
-       IconList(void);
-};
-
-class IconListView
-{
-       IconListView(void);
-};
-
-class Label
-{
-       Label(void);
-};
-
-class List
-{
-       List(void);
-};
-
-class ListView
-{
-       ListView(void);
-};
-
-class Progress
-{
-       Progress(void);
-};
-
-class RadioGroup
-{
-       RadioGroup(void);
-};
-
-class SearchBar
-{
-       SearchBar(void);
-};
-
-class SlidableGroupedList
-{
-       SlidableGroupedList(void);
-};
-
-class SlidableList
-{
-       SlidableList(void);
-};
-
-class Slider
-{
-       Slider(void);
-};
-
-class SplitPanel
-{
-       SplitPanel(void);
-};
-
-class Tab
-{
-       Tab(void);
-};
-
-class TabBar
-{
-       TabBar(void);
-};
-
-class TextBox
-{
-       TextBox(void);
-};
-
-class Form
-{
-       Form(void);
-};
-
-class GroupedTableView
-{
-       GroupedTableView(void);
-};
-
-class Panel
-{
-       Panel(void);
-};
-
-class OverlayPanel
-{
-       OverlayPanel(void);
-};
-
-class ScrollPanel
-{
-       ScrollPanel(void);
-};
-
-class SectionTableView
-{
-       SectionTableView(void);
-};
-
-class TableView
-{
-       TableView(void);
-};
-
-class TableViewItemBase
-{
-       TableViewItemBase(void);
-};
-
-class TableViewContextItem
-{
-       TableViewContextItem(void);
-};
-
-class TableViewGroupItem
-{
-       TableViewGroupItem(void);
-};
-
-class TableViewItem
-{
-       TableViewItem(void);
-};
-
-class TableViewSimpleGroupItem
-{
-       TableViewSimpleGroupItem(void);
-};
-
-class TableViewSimpleItem
-{
-       TableViewSimpleItem(void);
-};
-
-class ContextMenu
-{
-       ContextMenu(void);
-};
-
-class DatePicker
-{
-       DatePicker(void);
-};
-
-class DateTimePicker
-{
-       DateTimePicker(void);
-};
-
-class Frame
-{
-       Frame(void);
-};
-
-class Keypad
-{
-       Keypad(void);
-};
-
-class MessageBox
-{
-       MessageBox(void);
-};
-
-class OptionMenu
-{
-       OptionMenu(void);
-};
-
-class Popup
-{
-       Popup(void);
-};
-
-class TimePicker
-{
-       TimePicker(void);
-};
-
-Animation::Animation(void)
-{
-       typedef void (Animation::*methodType)(void);
-       static methodType animation_animationp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls9AnimationC2Ev, LIBOSP_UIFW, animation_animationp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Animation");
-       probeBlockEnd();
-
-       (this->*animation_animationp)();
-}
-
-Button::Button(void)
-{
-       typedef void (Button::*methodType)(void);
-       static methodType button_buttonp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6ButtonC2Ev, LIBOSP_UIFW, button_buttonp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Button");
-       probeBlockEnd();
-
-       (this->*button_buttonp)();
-}
-
-CheckButton::CheckButton(void)
-{
-       typedef void (CheckButton::*methodType)(void);
-       static methodType checkbutton_checkbuttonp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls11CheckButtonC2Ev, LIBOSP_UIFW, checkbutton_checkbuttonp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "CheckButton");
-       probeBlockEnd();
-
-       (this->*checkbutton_checkbuttonp)();
-}
-
-ColorPicker::ColorPicker(void)
-{
-       typedef void (ColorPicker::*methodType)(void);
-       static methodType colorpicker_colorpickerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls11ColorPickerC2Ev, LIBOSP_UIFW, colorpicker_colorpickerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ColorPicker");
-       probeBlockEnd();
-
-       (this->*colorpicker_colorpickerp)();
-}
-
-CustomList::CustomList(void)
-{
-       typedef void (CustomList::*methodType)(void);
-       static methodType customlist_customlistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10CustomListC2Ev, LIBOSP_UIFW, customlist_customlistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "CustomList");
-       probeBlockEnd();
-
-       (this->*customlist_customlistp)();
-}
-
-EditArea::EditArea(void)
-{
-       typedef void (EditArea::*methodType)(void);
-       static methodType editarea_editareap;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8EditAreaC2Ev, LIBOSP_UIFW, editarea_editareap);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "EditArea");
-       probeBlockEnd();
-
-       (this->*editarea_editareap)();
-}
-
-EditDate::EditDate(void)
-{
-       typedef void (EditDate::*methodType)(void);
-       static methodType editdate_editdatep;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8EditDateC2Ev, LIBOSP_UIFW, editdate_editdatep);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "EditDate");
-       probeBlockEnd();
-
-       (this->*editdate_editdatep)();
-}
-
-EditField::EditField(void)
-{
-       typedef void (EditField::*methodType)(void);
-       static methodType editfield_editfieldp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls9EditFieldC2Ev, LIBOSP_UIFW, editfield_editfieldp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "EditField");
-       probeBlockEnd();
-
-       (this->*editfield_editfieldp)();
-}
-
-EditTime::EditTime(void)
-{
-       typedef void (EditTime::*methodType)(void);
-       static methodType edittime_edittimep;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8EditTimeC2Ev, LIBOSP_UIFW, edittime_edittimep);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "EditTime");
-       probeBlockEnd();
-
-       (this->*edittime_edittimep)();
-}
-
-ExpandableEditArea::ExpandableEditArea(void)
-{
-       typedef void (ExpandableEditArea::*methodType)(void);
-       static methodType expandableeditarea_expandableeditareap;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls18ExpandableEditAreaC2Ev, LIBOSP_UIFW, expandableeditarea_expandableeditareap);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ExpandableEditArea");
-       probeBlockEnd();
-
-       (this->*expandableeditarea_expandableeditareap)();
-}
-
-ExpandableList::ExpandableList(void)
-{
-       typedef void (ExpandableList::*methodType)(void);
-       static methodType expandablelist_expandablelistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls14ExpandableListC2Ev, LIBOSP_UIFW, expandablelist_expandablelistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ExpandableList");
-       probeBlockEnd();
-
-       (this->*expandablelist_expandablelistp)();
-}
-
-Footer::Footer(void)
-{
-       typedef void (Footer::*methodType)(void);
-       static methodType footer_footerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6FooterC2Ev, LIBOSP_UIFW, footer_footerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Footer");
-       probeBlockEnd();
-
-       (this->*footer_footerp)();
-}
-
-Gallery::Gallery(void)
-{
-       typedef void (Gallery::*methodType)(void);
-       static methodType gallery_galleryp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls7GalleryC2Ev, LIBOSP_UIFW, gallery_galleryp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Gallery");
-       probeBlockEnd();
-
-       (this->*gallery_galleryp)();
-}
-
-GroupedList::GroupedList(void)
-{
-       typedef void (GroupedList::*methodType)(void);
-       static methodType groupedlist_groupedlistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls11GroupedListC2Ev, LIBOSP_UIFW, groupedlist_groupedlistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "GroupedList");
-       probeBlockEnd();
-
-       (this->*groupedlist_groupedlistp)();
-}
-
-GroupedListView::GroupedListView(void)
-{
-       typedef void (GroupedListView::*methodType)(void);
-       static methodType groupedlistview_groupedlistviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls15GroupedListViewC2Ev, LIBOSP_UIFW, groupedlistview_groupedlistviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "GroupedListView");
-       probeBlockEnd();
-
-       (this->*groupedlistview_groupedlistviewp)();
-}
-
-Header::Header(void)
-{
-       typedef void (Header::*methodType)(void);
-       static methodType header_headerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6HeaderC2Ev, LIBOSP_UIFW, header_headerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Header");
-       probeBlockEnd();
-
-       (this->*header_headerp)();
-}
-
-IconList::IconList(void)
-{
-       typedef void (IconList::*methodType)(void);
-       static methodType iconlist_iconlistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8IconListC2Ev, LIBOSP_UIFW, iconlist_iconlistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "IconList");
-       probeBlockEnd();
-
-       (this->*iconlist_iconlistp)();
-}
-
-IconListView::IconListView(void)
-{
-       typedef void (IconListView::*methodType)(void);
-       static methodType iconlistview_iconlistviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls12IconListViewC2Ev, LIBOSP_UIFW, iconlistview_iconlistviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "IconListView");
-       probeBlockEnd();
-
-       (this->*iconlistview_iconlistviewp)();
-}
-
-Label::Label(void)
-{
-       typedef void (Label::*methodType)(void);
-       static methodType label_labelp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5LabelC2Ev, LIBOSP_UIFW, label_labelp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Label");
-       probeBlockEnd();
-
-       (this->*label_labelp)();
-}
-
-List::List(void)
-{
-       typedef void (List::*methodType)(void);
-       static methodType list_listp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls4ListC2Ev, LIBOSP_UIFW, list_listp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "List");
-       probeBlockEnd();
-
-       (this->*list_listp)();
-}
-
-ListView::ListView(void)
-{
-       typedef void (ListView::*methodType)(void);
-       static methodType listview_listviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8ListViewC2Ev, LIBOSP_UIFW, listview_listviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ListView");
-       probeBlockEnd();
-
-       (this->*listview_listviewp)();
-}
-
-Progress::Progress(void)
-{
-       typedef void (Progress::*methodType)(void);
-       static methodType progress_progressp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls8ProgressC2Ev, LIBOSP_UIFW, progress_progressp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Progress");
-       probeBlockEnd();
-
-       (this->*progress_progressp)();
-}
-
-RadioGroup::RadioGroup(void)
-{
-       typedef void (RadioGroup::*methodType)(void);
-       static methodType radiogroup_radiogroupp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10RadioGroupC2Ev, LIBOSP_UIFW, radiogroup_radiogroupp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "RadioGroup");
-       probeBlockEnd();
-
-       (this->*radiogroup_radiogroupp)();
-}
-
-SearchBar::SearchBar(void)
-{
-       typedef void (SearchBar::*methodType)(void);
-       static methodType searchbar_searchbarp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls9SearchBarC2Ev, LIBOSP_UIFW, searchbar_searchbarp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "SearchBar");
-       probeBlockEnd();
-
-       (this->*searchbar_searchbarp)();
-}
-
-SlidableGroupedList::SlidableGroupedList(void)
-{
-       typedef void (SlidableGroupedList::*methodType)(void);
-       static methodType slidablegroupedlist_slidablegroupedlistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls19SlidableGroupedListC2Ev, LIBOSP_UIFW, slidablegroupedlist_slidablegroupedlistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "SlidableGroupedList");
-       probeBlockEnd();
-
-       (this->*slidablegroupedlist_slidablegroupedlistp)();
-}
-
-SlidableList::SlidableList(void)
-{
-       typedef void (SlidableList::*methodType)(void);
-       static methodType slidablelist_slidablelistp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls12SlidableListC2Ev, LIBOSP_UIFW, slidablelist_slidablelistp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "SlidableList");
-       probeBlockEnd();
-
-       (this->*slidablelist_slidablelistp)();
-}
-
-Slider::Slider(void)
-{
-       typedef void (Slider::*methodType)(void);
-       static methodType slider_sliderp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6SliderC2Ev, LIBOSP_UIFW, slider_sliderp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Slider");
-       probeBlockEnd();
-
-       (this->*slider_sliderp)();
-}
-
-SplitPanel::SplitPanel(void)
-{
-       typedef void (SplitPanel::*methodType)(void);
-       static methodType splitpanel_splitpanelp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10SplitPanelC2Ev, LIBOSP_UIFW, splitpanel_splitpanelp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "SplitPanel");
-       probeBlockEnd();
-
-       (this->*splitpanel_splitpanelp)();
-}
-
-Tab::Tab(void)
-{
-       typedef void (Tab::*methodType)(void);
-       static methodType tab_tabp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls3TabC2Ev, LIBOSP_UIFW, tab_tabp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Tab");
-       probeBlockEnd();
-
-       (this->*tab_tabp)();
-}
-
-TabBar::TabBar(void)
-{
-       typedef void (TabBar::*methodType)(void);
-       static methodType tabbar_tabbarp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6TabBarC2Ev, LIBOSP_UIFW, tabbar_tabbarp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TabBar");
-       probeBlockEnd();
-
-       (this->*tabbar_tabbarp)();
-}
-
-TextBox::TextBox(void)
-{
-       typedef void (TextBox::*methodType)(void);
-       static methodType textbox_textboxp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls7TextBoxC2Ev, LIBOSP_UIFW, textbox_textboxp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TextBox");
-       probeBlockEnd();
-
-       (this->*textbox_textboxp)();
-}
-
-Form::Form(void)
-{
-       typedef void (Form::*methodType)(void);
-       static methodType form_formp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls4FormC2Ev, LIBOSP_UIFW, form_formp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Form");
-       probeBlockEnd();
-
-       (this->*form_formp)();
-}
-
-GroupedTableView::GroupedTableView(void)
-{
-       typedef void (GroupedTableView::*methodType)(void);
-       static methodType groupedtableview_groupedtableviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls16GroupedTableViewC2Ev, LIBOSP_UIFW, groupedtableview_groupedtableviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "GroupedTableView");
-       probeBlockEnd();
-
-       (this->*groupedtableview_groupedtableviewp)();
-}
-
-Panel::Panel(void)
-{
-       typedef void (Panel::*methodType)(void);
-       static methodType panel_panelp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5PanelC2Ev, LIBOSP_UIFW, panel_panelp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Panel");
-       probeBlockEnd();
-
-       (this->*panel_panelp)();
-}
-
-OverlayPanel::OverlayPanel(void)
-{
-       typedef void (OverlayPanel::*methodType)(void);
-       static methodType overlaypanel_overlaypanelp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls12OverlayPanelC2Ev, LIBOSP_UIFW, overlaypanel_overlaypanelp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "OverlayPanel");
-       probeBlockEnd();
-
-       (this->*overlaypanel_overlaypanelp)();
-}
-
-ScrollPanel::ScrollPanel(void)
-{
-       typedef void (ScrollPanel::*methodType)(void);
-       static methodType scrollpanel_scrollpanelp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls11ScrollPanelC2Ev, LIBOSP_UIFW, scrollpanel_scrollpanelp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ScrollPanel");
-       probeBlockEnd();
-
-       (this->*scrollpanel_scrollpanelp)();
-}
-
-SectionTableView::SectionTableView(void)
-{
-       typedef void (SectionTableView::*methodType)(void);
-       static methodType sectiontableview_sectiontableviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls16SectionTableViewC2Ev, LIBOSP_UIFW, sectiontableview_sectiontableviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "SectionTableView");
-       probeBlockEnd();
-
-       (this->*sectiontableview_sectiontableviewp)();
-}
-
-TableView::TableView(void)
-{
-       typedef void (TableView::*methodType)(void);
-       static methodType tableview_tableviewp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls9TableViewC2Ev, LIBOSP_UIFW, tableview_tableviewp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableView");
-       probeBlockEnd();
-
-       (this->*tableview_tableviewp)();
-}
-
-TableViewItemBase::TableViewItemBase(void)
-{
-       typedef void (TableViewItemBase::*methodType)(void);
-       static methodType tableviewitembase_tableviewitembasep;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls17TableViewItemBaseC2Ev, LIBOSP_UIFW, tableviewitembase_tableviewitembasep);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewItemBase");
-       probeBlockEnd();
-
-       (this->*tableviewitembase_tableviewitembasep)();
-}
-
-TableViewContextItem::TableViewContextItem(void)
-{
-       typedef void (TableViewContextItem::*methodType)(void);
-       static methodType tableviewcontextitem_tableviewcontextitemp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls20TableViewContextItemC2Ev, LIBOSP_UIFW, tableviewcontextitem_tableviewcontextitemp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewContextItem");
-       probeBlockEnd();
-
-       (this->*tableviewcontextitem_tableviewcontextitemp)();
-}
-
-TableViewGroupItem::TableViewGroupItem(void)
-{
-       typedef void (TableViewGroupItem::*methodType)(void);
-       static methodType tableviewgroupitem_tableviewgroupitemp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls18TableViewGroupItemC2Ev, LIBOSP_UIFW, tableviewgroupitem_tableviewgroupitemp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewGroupItem");
-       probeBlockEnd();
-
-       (this->*tableviewgroupitem_tableviewgroupitemp)();
-}
-
-TableViewItem::TableViewItem(void)
-{
-       typedef void (TableViewItem::*methodType)(void);
-       static methodType tableviewitem_tableviewitemp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls13TableViewItemC2Ev, LIBOSP_UIFW, tableviewitem_tableviewitemp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewItem");
-       probeBlockEnd();
-
-       (this->*tableviewitem_tableviewitemp)();
-}
-
-TableViewSimpleGroupItem::TableViewSimpleGroupItem(void)
-{
-       typedef void (TableViewSimpleGroupItem::*methodType)(void);
-       static methodType tableviewsimplegroupitem_tableviewsimplegroupitemp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls24TableViewSimpleGroupItemC2Ev, LIBOSP_UIFW, tableviewsimplegroupitem_tableviewsimplegroupitemp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewSimpleGroupItem");
-       probeBlockEnd();
-
-       (this->*tableviewsimplegroupitem_tableviewsimplegroupitemp)();
-}
-
-TableViewSimpleItem::TableViewSimpleItem(void)
-{
-       typedef void (TableViewSimpleItem::*methodType)(void);
-       static methodType tableviewsimpleitem_tableviewsimpleitemp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls19TableViewSimpleItemC2Ev, LIBOSP_UIFW, tableviewsimpleitem_tableviewsimpleitemp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TableViewSimpleItem");
-       probeBlockEnd();
-
-       (this->*tableviewsimpleitem_tableviewsimpleitemp)();
-}
-
-ContextMenu::ContextMenu(void)
-{
-       typedef void (ContextMenu::*methodType)(void);
-       static methodType contextmenu_contextmenup;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls11ContextMenuC2Ev, LIBOSP_UIFW, contextmenu_contextmenup);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "ContextMenu");
-       probeBlockEnd();
-
-       (this->*contextmenu_contextmenup)();
-}
-
-DatePicker::DatePicker(void)
-{
-       typedef void (DatePicker::*methodType)(void);
-       static methodType datepicker_datepickerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10DatePickerC2Ev, LIBOSP_UIFW, datepicker_datepickerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "DatePicker");
-       probeBlockEnd();
-
-       (this->*datepicker_datepickerp)();
-}
-
-DateTimePicker::DateTimePicker(void)
-{
-       typedef void (DateTimePicker::*methodType)(void);
-       static methodType datetimepicker_datetimepickerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls14DateTimePickerC2Ev, LIBOSP_UIFW, datetimepicker_datetimepickerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "DateTimePicker");
-       probeBlockEnd();
-
-       (this->*datetimepicker_datetimepickerp)();
-}
-
-Frame::Frame(void)
-{
-       typedef void (Frame::*methodType)(void);
-       static methodType frame_framep;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5FrameC2Ev, LIBOSP_UIFW, frame_framep);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Frame");
-       probeBlockEnd();
-
-       (this->*frame_framep)();
-}
-
-Keypad::Keypad(void)
-{
-       typedef void (Keypad::*methodType)(void);
-       static methodType keypad_keypadp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls6KeypadC2Ev, LIBOSP_UIFW, keypad_keypadp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Keypad");
-       probeBlockEnd();
-
-       (this->*keypad_keypadp)();
-}
-
-MessageBox::MessageBox(void)
-{
-       typedef void (MessageBox::*methodType)(void);
-       static methodType messagebox_messageboxp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10MessageBoxC2Ev, LIBOSP_UIFW, messagebox_messageboxp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "MessageBox");
-       probeBlockEnd();
-
-       (this->*messagebox_messageboxp)();
-}
-
-OptionMenu::OptionMenu(void)
-{
-       typedef void (OptionMenu::*methodType)(void);
-       static methodType optionmenu_optionmenup;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10OptionMenuC2Ev, LIBOSP_UIFW, optionmenu_optionmenup);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "OptionMenu");
-       probeBlockEnd();
-
-       (this->*optionmenu_optionmenup)();
-}
-
-Popup::Popup(void)
-{
-       typedef void (Popup::*methodType)(void);
-       static methodType popup_popupp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5PopupC2Ev, LIBOSP_UIFW, popup_popupp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Popup");
-       probeBlockEnd();
-
-       (this->*popup_popupp)();
-}
-
-TimePicker::TimePicker(void)
-{
-       typedef void (TimePicker::*methodType)(void);
-       static methodType timepicker_timepickerp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls10TimePickerC2Ev, LIBOSP_UIFW, timepicker_timepickerp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "TimePicker");
-       probeBlockEnd();
-
-       (this->*timepicker_timepickerp)();
-}
-
-}              // end of namespace Tizen::Ui::Controls
-
-} }            // end of namespace Tizen::Ui
-
-
-namespace Tizen { namespace Web { namespace Controls {
-
-class Web
-{
-       Web(void);
-};
-
-Web::Web(void)
-{
-       typedef void (Web::*methodType)(void);
-       static methodType web_webp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3Web8Controls3WebC2Ev, LIBOSP_WEB, web_webp);
-
-       probeBlockStart();
-       add_uiobject_hash_type((void*)this, "Web");
-       probeBlockEnd();
-
-       (this->*web_webp)();
-}
-
-} } }  // end of namespace Tizen::Web::Controls
diff --git a/probe_tizenapi/tizen_controls.cpp b/probe_tizenapi/tizen_controls.cpp
deleted file mode 100755 (executable)
index fd473f8..0000000
+++ /dev/null
@@ -1,408 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <typeinfo>
-#include <FApp.h>
-#include <FUi.h>
-
-#include "daprobe.h"
-#include "dacollection.h"
-#include "dahelper.h"
-#include "tizen_probe.h"
-
-#include "binproto.h"
-
-using namespace Tizen::Ui;
-using namespace Tizen::Ui::Controls;
-using namespace Tizen::Ui::Animations;
-
-extern IFrameAnimatorEventListener& GetFrameAnimatorEventListener();
-
-bool IsRegisteredFrameAnimatorEventListener = false;
-
-static enum DaOptions _sopt = OPT_UI;
-
-#define BEFORE_ORIGINAL_TIZEN_UI(FUNCNAME, FUNCTIONPOINTER)                            \
-               DECLARE_VARIABLE_STANDARD_NORET;                                        \
-               GET_REAL_FUNC_TIZEN(FUNCNAME, LIBOSP_UIFW, FUNCTIONPOINTER)
-
-namespace Tizen { namespace App {
-
-result UiApp::AddFrame(const Tizen::Ui::Controls::Frame& frame)
-{
-       typedef result (UiApp::*methodType)(const Tizen::Ui::Controls::Frame& frame);
-       static methodType uiapp_addframep;
-       result ret;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen3App5UiApp8AddFrameERKNS_2Ui8Controls5FrameE, uiapp_addframep);
-       PRE_PROBEBLOCK();
-
-       ret = (this->*uiapp_addframep)(frame);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       if(ret == E_SUCCESS)
-       {
-               frame.IsInTouchMode();
-
-               Control* parent = NULL;
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                                 API_ID_result_UiApp__AddFrame_const_Tizen__Ui__Controls__Frame__frame_,
-                                 "p", voidp_to_uint64(&frame));
-               PACK_COMMON_END('x', ret, 0, 0);
-               PACK_UICONTROL(parent);
-               PACK_UICONTROL(&frame);
-               FLUSH_LOCAL_BUF();
-       }
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-result UiApp::RemoveFrame(const Tizen::Ui::Controls::Frame &frame)
-{
-       typedef result (UiApp::*methodType)(const Tizen::Ui::Controls::Frame& frame);
-       static methodType uiapp_removeframep;
-       result ret = 0;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen3App5UiApp11RemoveFrameERKNS_2Ui8Controls5FrameE, uiapp_removeframep);
-
-       PREPARE_LOCAL_BUF();
-
-       PRE_PROBEBLOCK_BEGIN();
-       Control *parent = NULL;
-
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_result_UiApp__RemoveFrame_const_Tizen__Ui__Controls__Frame__frame_,
-                         "p", voidp_to_uint64(&frame));
-       PACK_COMMON_END('x', ret, 0, 0);
-       PACK_UICONTROL(parent);
-       PACK_UICONTROL(&frame);
-       PRE_PROBEBLOCK_END();
-
-       frame.IsInTouchMode();
-
-       ret = (this->*uiapp_removeframep)(frame);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       PACK_RETURN_END('x', ret);
-       FLUSH_LOCAL_BUF();
-       POST_PACK_PROBEBLOCK_END();
-
-
-       return ret;
-}
-
-} }            // end of namespce Tizen::App
-
-
-namespace Tizen { namespace Ui {
-
-bool Control::IsInTouchMode(void) const
-{
-       typedef bool (Control::*methodType)(void) const;
-       static methodType control_isintouchmodep;
-
-       GET_REAL_FUNC_TIZEN(_ZNK5Tizen2Ui7Control13IsInTouchModeEv, LIBOSP_UIFW, control_isintouchmodep);
-
-       probeBlockStart();
-       add_uiobject_hash_class((void*)(this), typeid(*this).name());
-       probeBlockEnd();
-
-       return (this->*control_isintouchmodep)();
-}
-
-void Control::SetName(const Tizen::Base::String &name)
-{
-       typedef void (Control::*methodType)(const Tizen::Base::String &name);
-       static methodType control_setnamep;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui7Control7SetNameERKNS_4Base6StringE, control_setnamep);
-       PRE_PROBEBLOCK();
-
-       (this->*control_setnamep)(name);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-
-       IsInTouchMode();
-       Control* parent = NULL;
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_void_Control__SetName_const_Tizen__Base__String__name_,
-                         "p", voidp_to_uint64(&name));
-       PACK_COMMON_END('v', 0, 0, 0);
-       PACK_UICONTROL(this);
-       PACK_UICONTROL(parent);
-       FLUSH_LOCAL_BUF();
-
-       POST_PACK_PROBEBLOCK_END();
-}
-
-result Container::AddControl(const Control &control)
-{
-       typedef result (Container::*methodType)(const Control &control);
-       static methodType container_addcontrolp;
-       result ret;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container10AddControlERKNS0_7ControlE, container_addcontrolp);
-       bfiltering = false;
-
-       PRE_PROBEBLOCK_BEGIN();
-       if(unlikely(IsRegisteredFrameAnimatorEventListener == false))
-       {
-               char *type = NULL, *classname = NULL;
-               if (likely(find_uiobject_hash((void*)this, &type, &classname) == 1))    // there is entry in object hash
-               {
-                       if (strcmp(type, "Frame") == 0)
-                       {
-                               FrameAnimator* fa = ((Frame*)this)->GetFrameAnimator();
-                               if (fa != NULL)
-                               {
-                                       fa->AddFrameAnimatorEventListener(GetFrameAnimatorEventListener());
-                                       IsRegisteredFrameAnimatorEventListener = true;
-                               }
-                               else    // frame is not yet constructed
-                               {
-                               }
-                       }
-               }
-       }
-       PRE_PROBEBLOCK_END();
-
-       ret = (this->*container_addcontrolp)(control);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       if(ret == E_SUCCESS)
-       {
-               IsInTouchMode();
-               control.IsInTouchMode();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                                 API_ID_result_Container__AddControl_const_Control__control_,
-                                 "p", voidp_to_uint64(&control));
-               PACK_COMMON_END('x', ret, 0, 0);
-               PACK_UICONTROL(this);
-               PACK_UICONTROL(&control);
-               FLUSH_LOCAL_BUF();
-       }
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-result Container::AddControl(Control* control)
-{
-       typedef result (Container::*methodType)(Control* control);
-       static methodType container_addcontrolp;
-       result ret;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container10AddControlEPNS0_7ControlE, container_addcontrolp);
-       bfiltering = false;
-
-       PRE_PROBEBLOCK_BEGIN();
-       if(unlikely(IsRegisteredFrameAnimatorEventListener == false))
-       {
-               char *type = NULL, *classname = NULL;
-               if (likely(find_uiobject_hash((void*)this, &type, &classname) == 1))    // there is entry in object hash
-               {
-                       if (strcmp(type, "Frame") == 0)
-                       {
-                               FrameAnimator* fa = ((Frame*)this)->GetFrameAnimator();
-                               if (fa != NULL)
-                               {
-                                       fa->AddFrameAnimatorEventListener(GetFrameAnimatorEventListener());
-                                       IsRegisteredFrameAnimatorEventListener = true;
-                               }
-                               else    // frame is not yet constructed
-                               {
-                               }
-                       }
-               }
-       }
-       PRE_PROBEBLOCK_END();
-
-       ret = (this->*container_addcontrolp)(control);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       if(ret == E_SUCCESS)
-       {
-               IsInTouchMode();
-               control->IsInTouchMode();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                                 API_ID_result_Container__AddControl_Control__control_,
-                                 "p", voidp_to_uint64(control));
-               PACK_COMMON_END('x', ret, 0, 0);
-               PACK_UICONTROL(this);
-               PACK_UICONTROL(control);
-               FLUSH_LOCAL_BUF();
-       }
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-result Container::RemoveControl(const Control &control)
-{
-       typedef result (Container::*methodType)(const Control &control);
-       static methodType container_removecontrolp;
-       result ret = 0;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container13RemoveControlERKNS0_7ControlE, container_removecontrolp);
-       bfiltering = false;
-
-       PREPARE_LOCAL_BUF();
-
-       control.IsInTouchMode();
-
-       PRE_PROBEBLOCK_BEGIN();
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_result_Container__RemoveControl_const_Control__control_,
-                         "p", voidp_to_uint64(&control));
-       PACK_COMMON_END('x', ret, 0, 0);
-       PACK_UICONTROL(this);
-       PACK_UICONTROL(&control);
-       PRE_PROBEBLOCK_END();
-
-       ret = (this->*container_removecontrolp)(control);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       PACK_RETURN_END('x', ret);
-       FLUSH_LOCAL_BUF();
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-result Container::RemoveControl(Control* control)
-{
-       typedef result (Container::*methodType)(Control* control);
-       static methodType container_removecontrolp;
-       result ret = 0;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container13RemoveControlEPNS0_7ControlE, container_removecontrolp);
-       bfiltering = false;
-
-       PREPARE_LOCAL_BUF();
-
-       PRE_PROBEBLOCK_BEGIN();
-
-       control->IsInTouchMode();
-
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_result_Container__RemoveControl_Control__control_,
-                         "p", voidp_to_uint64(control));
-       PACK_COMMON_END('x', ret, 0, 0);
-       PACK_UICONTROL(this);
-       PACK_UICONTROL(control);
-       PRE_PROBEBLOCK_END();
-
-       ret = (this->*container_removecontrolp)(control);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       PACK_RETURN_END('x', ret);
-       FLUSH_LOCAL_BUF();
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-result Container::RemoveControl(int index)
-{
-       typedef result (Container::*methodType)(int index);
-       static methodType container_removecontrolip;
-       result ret = 0;
-       Control *pcontrol = NULL;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container13RemoveControlEi, container_removecontrolip);
-       bfiltering = false;
-
-       PREPARE_LOCAL_BUF();
-
-       PRE_PROBEBLOCK_BEGIN();
-
-       pcontrol = GetControl(index);
-       pcontrol->IsInTouchMode();
-
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_result_Container__RemoveControl_int_index_,
-                         "d", index);
-       PACK_COMMON_END('x', ret, 0, 0);
-       PACK_UICONTROL(this);
-       PACK_UICONTROL(pcontrol);
-       PRE_PROBEBLOCK_END();
-
-       ret = (this->*container_removecontrolip)(index);
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       PACK_RETURN_END('x', ret);
-       FLUSH_LOCAL_BUF();
-       POST_PACK_PROBEBLOCK_END();
-
-       return ret;
-}
-
-void Container::RemoveAllControls(void)
-{
-       typedef void (Container::*methodType)(void);
-       static methodType container_removeallcontrolp;
-
-       BEFORE_ORIGINAL_TIZEN_UI(_ZN5Tizen2Ui9Container17RemoveAllControlsEv, container_removeallcontrolp);
-       bfiltering = false;
-
-       PRE_PROBEBLOCK_BEGIN();
-
-       Control* pcontrol = NULL;
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_UICONTROL,
-                         API_ID_void_Container__RemoveAllControls_void_,
-                         "", 0);
-       PACK_COMMON_END('v', 0, 0, 0);
-       PACK_UICONTROL(this);
-       PACK_UICONTROL(pcontrol);
-       FLUSH_LOCAL_BUF();
-       PRE_PROBEBLOCK_END();
-
-       (this->*container_removeallcontrolp)();
-
-       POST_PACK_PROBEBLOCK_BEGIN();
-       POST_PACK_PROBEBLOCK_END();
-
-}
-
-} }    // end of namespace Tizen::Ui
diff --git a/probe_tizenapi/tizen_file.cpp b/probe_tizenapi/tizen_file.cpp
deleted file mode 100755 (executable)
index 4372c81..0000000
+++ /dev/null
@@ -1,1129 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (File::*c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <FIo.h>
-#include <linux/limits.h>
-#include "daprobe.h"
-#include "probeinfo.h"
-#include "dahelper.h"
-#include "dacollection.h"
-
-#include "binproto.h"
-
-static enum DaOptions _sopt = OPT_FILE;
-
-namespace Tizen {
-namespace Io {
-
-result File::Construct(const Tizen::Base::String& filePath,
-               const Tizen::Base::String& openMode, bool createParentDirectories) {
-       typedef result (File::*methodType)(const Tizen::Base::String& filePath,
-                       const Tizen::Base::String& openMode, bool createParentDirectories);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp_path[PATH_MAX];
-       char temp_mode[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Constructp) {
-               probeBlockStart();
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File9ConstructERKNS_4Base6StringES5_b");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Constructp)(filePath, openMode, createParentDirectories);
-
-       if (gProbeBlockCount == 0 && blockresult)
-       {
-               add_object_hash((void*)this, OBJECT_EXTERNAL);
-       }
-
-       if (postBlockBegin(blockresult)) {
-               char buffer[PATH_MAX];
-
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp_path,filePath.GetPointer());
-               WcharToChar(temp_mode,openMode.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE, API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode__bool_createParentDirectories_,
-                                 "s4sd", absolutize_filepath(buffer,temp_path),
-                                 temp_mode, createParentDirectories);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OPEN, size, temp_path);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Construct(const Tizen::Base::String& filePath,
-               const Tizen::Base::String& openMode) {
-       typedef result (File::*methodType)(const Tizen::Base::String& filePath,
-                       const Tizen::Base::String& openMode);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp_path[PATH_MAX];
-       char temp_mode[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Constructp) {
-               probeBlockStart();
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File9ConstructERKNS_4Base6StringES5_");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Constructp)(filePath, openMode);
-
-       if (gProbeBlockCount == 0 && blockresult)
-       {
-               add_object_hash((void*)this, OBJECT_EXTERNAL);
-       }
-
-       if (postBlockBegin(blockresult)) {
-               char buffer[PATH_MAX];
-
-               WcharToChar(temp_path,filePath.GetPointer());
-               WcharToChar(temp_mode,openMode.GetPointer());
-               // Comment this because of fault during Internet application profiling
-               // (it closes unexpectedly) but for DATizenTestApp it is ok
-               // There is the same problem at File::~File(void)
-               //if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-               //      size = attr.GetFileSize();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_Tizen__Base__String__openMode_,
-                                 "s4s", absolutize_filepath(buffer, temp_path),
-                                 temp_mode);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OPEN, size, temp_path);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Construct(const Tizen::Base::String& filePath,
-               const char *pOpenMode) {
-       typedef result (File::*methodType)(const Tizen::Base::String& filePath,
-                       const char *pOpenMode);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Constructp) {
-               probeBlockStart();
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File9ConstructERKNS_4Base6StringEPKc");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Constructp)(filePath, pOpenMode);
-
-       if (gProbeBlockCount == 0 && blockresult)
-       {
-               add_object_hash((void*)this, OBJECT_EXTERNAL);
-       }
-
-       if (postBlockBegin(blockresult)) {
-               char buffer[PATH_MAX];
-
-               WcharToChar(temp,filePath.GetPointer());
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode_,
-                                 "s4p", absolutize_filepath(buffer, temp),
-                                 voidp_to_uint64(pOpenMode));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OPEN, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Construct(const Tizen::Base::String& filePath,
-               const char *pOpenMode,
-               const Tizen::Base::ByteBuffer& secretKey) {
-       typedef result (File::*methodType)(const Tizen::Base::String& filePath,
-                       const char *pOpenMode,
-                       const Tizen::Base::ByteBuffer& secretKey);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Constructp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                                               "_ZN5Tizen2Io4File9ConstructERKNS_4Base6StringEPKcRKNS2_10ByteBufferE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Constructp)(filePath, pOpenMode, secretKey);
-
-       if (gProbeBlockCount == 0 && blockresult)
-       {
-               add_object_hash((void*)this, OBJECT_EXTERNAL);
-       }
-
-       if (postBlockBegin(blockresult)) {
-               WcharToChar(temp,filePath.GetPointer());
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Construct_const_Tizen__Base__String__filePath__const_char__pOpenMode__const_Tizen__Base__ByteBuffer__secretKey_,
-                                 "sp", temp,
-                                 voidp_to_uint64(pOpenMode));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OPEN, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Flush(void) {
-       typedef result (File::*methodType)(void);
-       static methodType Flushp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Flushp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File5FlushEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Flush");
-                       exit(0);
-               }
-
-               memcpy(&Flushp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Flushp)();
-
-       if (postBlockBegin(blockresult)) {
-               WcharToChar(temp,this->GetName().GetPointer());
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Flush_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OTHER, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-Tizen::Base::String File::GetName(void) const{
-       typedef Tizen::Base::String (File::*methodType)(void) const;
-       static methodType GetNamep = 0;
-       Tizen::Base::String ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!GetNamep) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZNK5Tizen2Io4File7GetNameEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::GetName");
-                       exit(0);
-               }
-
-               memcpy(&GetNamep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*GetNamep)();
-       result res = GetLastResult();
-
-       if (postBlockBegin(blockresult)) {
-               WcharToChar(temp,ret.GetPointer());
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_Tizen__Base__String_File__GetName_void__const,
-                                 "", 0);
-               PACK_COMMON_END('p', ret.GetPointer(), res, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OTHER, size, temp);
-               FLUSH_LOCAL_BUF();
-
-                postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Read(Tizen::Base::String& buffer) {
-       typedef result (File::*methodType)(Tizen::Base::String & buffer);
-       static methodType Readp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       int nRead = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Readp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File4ReadERNS_4Base6StringE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Read");
-                       exit(0);
-               }
-
-               memcpy(&Readp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Read_Tizen__Base__String__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_READ_START, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Readp)(buffer);
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-               nRead = buffer.GetLength();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Read_Tizen__Base__String__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(nRead, (unsigned long)this, FD_API_READ_END, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Read(Tizen::Base::ByteBuffer& buffer) {
-       typedef result (File::*methodType)(Tizen::Base::ByteBuffer & buffer);
-       static methodType Readp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       int nRead = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Readp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File4ReadERNS_4Base10ByteBufferE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Read");
-                       exit(0);
-               }
-
-               memcpy(&Readp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Read_Tizen__Base__ByteBuffer__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_READ_START, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Readp)(buffer);
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-               buffer.GetInt(nRead);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Read_Tizen__Base__ByteBuffer__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(nRead, (unsigned long)this, FD_API_READ_END, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-int File::Read(void *buffer, int length) {
-       typedef int (File::*methodType)(void *buffer, int length);
-       static methodType Readp = 0;
-       int ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       int nRead = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Readp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File4ReadEPvi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Read");
-                       exit(0);
-               }
-
-               memcpy(&Readp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               nRead = Tell();
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_int_File__Read_void__buffer__int_length_,
-                                 "xd", (uint64_t)(buffer), length);
-               PACK_COMMON_END('d', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_READ_START, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Readp)(buffer, length);
-       result res = GetLastResult();
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-               nRead = Tell() - nRead;
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_int_File__Read_void__buffer__int_length_,
-                                 "xd", (uint64_t)(buffer), length);
-               PACK_COMMON_END('d', ret, res, blockresult);
-               PACK_RESOURCE(nRead, (unsigned long)this, FD_API_READ_END, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Seek(FileSeekPosition position, long offset) {
-       typedef result (File::*methodType)(FileSeekPosition position, long offset);
-       static methodType Seekp = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       char temp_pos[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0;
-
-       if (!Seekp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT,
-                               "_ZN5Tizen2Io4File4SeekENS0_16FileSeekPositionEl");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Seek");
-                       exit(0);
-               }
-
-               memcpy(&Seekp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Seekp)(position, offset);
-
-       if (postBlockBegin(blockresult)) {
-
-                if (FILESEEKPOSITION_BEGIN == position)
-                        strcpy(temp_pos, "FILESEEKPOSITION_BEGIN");
-                else if (FILESEEKPOSITION_CURRENT == position)
-                        strcpy(temp_pos, "FILESEEKPOSITION_CURRENT");
-                else if (FILESEEKPOSITION_END == position)
-                        strcpy(temp_pos, "FILESEEKPOSITION_END");
-                else
-
-               sprintf(temp_pos, "%d", position);
-
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Seek_FileSeekPosition_position__long_offset_,
-                                 "sx", temp_pos, (uint64_t)(offset));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OTHER, size, temp);
-               FLUSH_LOCAL_BUF();
-
-                postBlockEnd();
-       }
-
-       return ret;
-}
-
-int File::Tell(void) const {
-       typedef int (File::*methodType)(void) const;
-       static methodType Tellp = 0;
-       int ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Tellp) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZNK5Tizen2Io4File4TellEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Tell");
-                       exit(0);
-               }
-
-               memcpy(&Tellp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Tellp)();
-       result res = GetLastResult();
-
-       if (postBlockBegin(blockresult)) {
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp,this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_int_File__Tell_void__const,
-                                 "", 0);
-               PACK_COMMON_END('d', ret, res, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OTHER, size, temp);
-               FLUSH_LOCAL_BUF();
-
-                postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Truncate(int length) {
-       typedef result (File::*methodType)(int length);
-       static methodType Truncatep = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Truncatep) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File8TruncateEi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Truncate");
-                       exit(0);
-               }
-
-               memcpy(&Truncatep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       ret = (this->*Truncatep)(length);
-
-       if (postBlockBegin(blockresult)) {
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp,this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Truncate_int_length_,
-                                 "d", length);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_OTHER, size, temp);
-               FLUSH_LOCAL_BUF();
-
-                postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Write(const void *buffer, int length) {
-       typedef result (File::*methodType)(const void *buffer, int length);
-       static methodType Writep = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       int nWritten = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Writep) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File5WriteEPKvi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Write");
-                       exit(0);
-               }
-
-               memcpy(&Writep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               nWritten = Tell();
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_void__buffer__int_length_,
-                                 "xd", (uint64_t)(buffer), length);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_WRITE_START, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Writep)(buffer, length);
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp, this->GetName().GetPointer());
-               nWritten = Tell() - nWritten;
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_void__buffer__int_length_,
-                                 "xd", (uint64_t)(buffer), length);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(nWritten, (unsigned long)this, FD_API_WRITE_END, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Write(const Tizen::Base::ByteBuffer& buffer) {
-       typedef result (File::*methodType)(const Tizen::Base::ByteBuffer& buffer);
-       static methodType Writep = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp[PATH_MAX];
-       int nWritten = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Writep) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File5WriteERKNS_4Base10ByteBufferE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Write");
-                       exit(0);
-               }
-
-               memcpy(&Writep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               nWritten = Tell();
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp,this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_Tizen__Base__ByteBuffer__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_WRITE_START, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Writep)(buffer);
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp,this->GetName().GetPointer());
-               nWritten = Tell() - nWritten;
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_Tizen__Base__ByteBuffer__buffer_,
-                                 "x", (uint64_t)(&buffer));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(nWritten, (unsigned long)this, FD_API_WRITE_END, size, temp);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-
-       return ret;
-}
-
-result File::Write(const Tizen::Base::String& buffer) {
-       typedef result (File::*methodType)(const Tizen::Base::String& buffer);
-       static methodType Writep = 0;
-       result ret;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       char temp_buf[PATH_MAX];
-       char temp_path[PATH_MAX];
-       int nWritten = 0;
-       FileAttributes attr;
-       long long size = 0L;
-
-       if (!Writep) {
-               probeBlockStart();
-
-               void *tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4File5WriteERKNS_4Base6StringE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::Write");
-                       exit(0);
-               }
-
-               memcpy(&Writep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               nWritten = Tell();
-               WcharToChar(temp_buf, buffer.GetPointer());
-               if (E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-                       size = attr.GetFileSize();
-               WcharToChar(temp_path, this->GetName().GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_Tizen__Base__String__buffer_,
-                                 "s", temp_buf);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_WRITE_START, size, temp_path);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-
-       ret = (this->*Writep)(buffer);
-
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-               WcharToChar(temp_buf,buffer.GetPointer());
-               WcharToChar(temp_path,this->GetName().GetPointer());
-               nWritten = Tell() - nWritten;
-               if (E_SUCCESS == File::GetAttributes(this->GetName(),attr))
-                       size = attr.GetFileSize();
-               nWritten = Tell() - nWritten;
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_result_File__Write_const_Tizen__Base__String__buffer_,
-                                 "s", temp_buf);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_RESOURCE(nWritten, (unsigned long)this, FD_API_WRITE_END, size, temp_path);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-File::~File(void) {
-       typedef void (File::*methodType)();
-       static methodType FileDp = 0;
-       probeInfo_t     probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       // FileAttributes attr;
-       long long size = 0L;
-       unsigned short caller;
-       int ret;
-
-       if (!FileDp) {
-               probeBlockStart();
-
-               tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen2Io4FileD1Ev");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Io::File::~File");
-                       exit(0);
-               }
-
-               memcpy(&FileDp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-// error occur if File class was failed to contruct
-               // if (ret == E_SUCCESS &&
-               //     E_SUCCESS == File::GetAttributes(this->GetName(), attr))
-               //     size = attr.GetFileSize();
-               preBlockEnd();
-       }
-
-       if (gProbeBlockCount == 0)
-       {
-               probeBlockStart();
-               ret = del_object_hash((void*)this, &caller);
-               if (blockresult == 0 && ret == 0 && caller == OBJECT_EXTERNAL)
-               {
-                       setProbePoint(&probeInfo);
-                       blockresult = 2;
-                       probingStart();
-               }
-               probeBlockEnd();
-       }
-
-       (this->*FileDp)();
-
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_RESOURCE,
-                                 API_ID_File___File_void_,
-                                 "", 0);
-               PACK_COMMON_END('n', 0, 0, blockresult);
-               PACK_RESOURCE(0, (unsigned long)this, FD_API_CLOSE, size, "");
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-}
-
-
-// static methods
-//static result File::ConvertToSecureFile(const Tizen::Base::String &plainFilePath,
-//             const Tizen::Base::String &secureFilePath) {
-//     typedef result (File::*methodType)(
-//                     const Tizen::Base::String &plainFilePath,
-//                     const Tizen::Base::String &secureFilePath);
-//     static methodType ConvertToSecureFilep = 0;
-//
-//}
-//static result File::ConvertToSecureFile(const Tizen::Base::String &plainFilePath,
-//             const Tizen::Base::String &secureFilePath,
-//             const Tizen::Base::ByteBuffer& key) {
-//     typedef result (File::*methodType)(
-//                     const Tizen::Base::String &plainFilePath,
-//                     const Tizen::Base::String &secureFilePath,
-//                     const Tizen::Base::ByteBuffer& key);
-//     static methodType ConvertToSecureFilep = 0;
-//
-//}
-//static result File::Copy(const Tizen::Base::String& srcFilePath,
-//             const Tizen::Base::String& destFilePath, bool failIfExist) {
-//     typedef result (File::*methodType)(const Tizen::Base::String& srcFilePath,
-//                     const Tizen::Base::String& destFilePath, bool failIfExist);
-//     static methodType Copyp = 0;
-//
-//}
-//static result File::GetAttributes(const Tizen::Base::String& filePath,
-//             FileAttributes& attribute) {
-//     typedef result (File::*methodType)(const Tizen::Base::String& filePath,
-//                     FileAttributes& attribute);
-//     static methodType GetAttributesp = 0;
-//
-//}
-//static const Tizen::Base::String File::GetFileExtension(
-//             const Tizen::Base::String& filePath) {
-//     typedef const Tizen::Base::String (File::*methodType)(
-//                     const Tizen::Base::String& filePath);
-//     static methodType GetFileExtensionp = 0;
-//
-//}
-//const Tizen::Base::String File::GetFileName(
-//             const Tizen::Base::String& filePath) {
-//     typedef const Tizen::Base::String (File::*methodType)(
-//                     const Tizen::Base::String& filePath);
-//     static methodType GetFileNamep = 0;
-//     Tizen::Base::String ret;
-//
-//     if (!GetFileNamep) {
-//                     probeBlockStart();
-//                     void *tmpPtr = dlsym(RTLD_NEXT,
-//                                     "_ZN5Tizen2Io4File11GetFileNameERKNS_4Base6StringE");
-//
-//                     if (tmpPtr == NULL || dlerror() != NULL) {
-//                             perror("dlsym failed : Tizen::Io::File::GetFileName");
-//                             exit(0);
-//                     }
-//
-//                     memcpy(&GetFileNamep, &tmpPtr, sizeof(tmpPtr));
-//                     probeBlockEnd();
-//             }
-//     ret = (File::(*GetFileNamep))(filePath);
-//
-//return ret;
-//}
-//static bool File::IsEncrypted(const Tizen::Base::String &filePath) {
-//     typedef bool (File::*methodType)(const Tizen::Base::String &filePath);
-//     static methodType IsEncryptedp = 0;
-//
-//}
-//static bool File::IsFileExist(const Tizen::Base::String& filePath) {
-//     typedef bool (File::*methodType)(const Tizen::Base::String& filePath);
-//     static methodType IsFileExistp = 0;
-//
-//}
-//static result File::Move(const Tizen::Base::String& oldFilePath,
-//             const Tizen::Base::String& newFilePath) {
-//     typedef result (File::*methodType)(const Tizen::Base::String& oldFilePath,
-//                     const Tizen::Base::String& newFilePath);
-//     static methodType Movep = 0;
-//
-//}
-//static result File::Remove(const Tizen::Base::String& filePath) {
-//     typedef result (File::*methodType)(const Tizen::Base::String& filePath);
-//     static methodType Removep = 0;
-//
-//}
-
-}
-}
diff --git a/probe_tizenapi/tizen_http.cpp b/probe_tizenapi/tizen_http.cpp
deleted file mode 100755 (executable)
index 62e6cad..0000000
+++ /dev/null
@@ -1,1923 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (File::*c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Hyunjong Park      <phjwithyou.park@samsung.com>
- * Juyoung Kim        <j0.kim@samsung.com>
- * Vitaliy Cherepanov <v.cherepanov@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <FBase.h>
-#include <FBaseObject.h>
-#include <FBaseResult.h>
-
-/*#include <sys/socket.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <arpa/inet.h>*/
-
-#include <stdio.h>
-#include <netdb.h>
-
-#include "binproto.h"
-#include "daprobe.h"
-#include "probeinfo.h"
-#include "dahelper.h"
-#include "dacollection.h"
-#include "tizen_probe.h"
-#include "../probe_socket/da_socket.h"
-static enum DaOptions _sopt = OPT_NETWORK;
-
-namespace Tizen {
-namespace Net {
-
-enum NetBearerType {
-       NET_BEARER_PS = 1, /**< The bearer type for the PS domain */
-       NET_BEARER_CS, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_BEARER_WIFI, /**< The bearer type for Wi-Fi */
-       NET_BEARER_WIFI_DIRECT, /**< The bearer type for Wi-Fi Direct @n
-        *      This bearer type cannot be tested on the Emulator. */
-       NET_BEARER_USB, /**< The bearer type for USB NDIS mode @n
-        *      Can use this bearer type via USB Tethering mode. @n
-        *      This bearer type cannot be tested on the Emulator. */
-       NET_BEARER_MMS, /**< The bearer type for MMS */
-       NET_BEARER_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Bearer Type not set
-};
-
-enum NetProtocolType {
-       NET_PROTO_TYPE_IPV4 = 1, /**< The IPV4 type */
-       NET_PROTO_TYPE_PPP, /**< The PPP type */
-       NET_PROTO_TYPE_IPV6, /**< The IPV6 type, currently NOT supported */
-       NET_PROTO_TYPE_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Protocol type not set
-};
-
-enum NetAddressScheme {
-       NET_ADDRESS_SCHEME_DYNAMIC = 1, /**< The Dynamic IP or DNS Address */
-       NET_ADDRESS_SCHEME_STATIC, /**< The Static IP or DNS Address */
-       NET_ADDRESS_SCHEME_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Address Scheme not set
-};
-
-enum NetAddressFamily {
-       NET_AF_IPV4 = 1, /**< The default @n An IPv4 address [RFC791] is represented in decimal format with dots as delimiters. */
-       NET_AF_IPV6, /**< An IPv6 address [RFC2373] is generally represented in hexadecimal numbers with colons as delimiters @n It can also be a combination of hexadecimal and decimal numbers with dots and colons as delimiters. */
-       NET_AF_ALPHANUMERIC, /**< A generic alphanumeric address (as defined by alphanum in [RFC2396]) */
-       NET_AF_APN, /**< A GPRS APN as defined in [GENFORM] */
-       NET_AF_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Address Family not set
-};
-
-enum NetConnectionState {
-       NET_CONNECTION_STATE_NONE, /**< The initial state */
-       NET_CONNECTION_STATE_STARTING, /**< The network connection is being established */
-       NET_CONNECTION_STATE_STARTED, /**< The network connection has been established */
-       NET_CONNECTION_STATE_STOPPING, /**< The network connection is being disconnected */
-       NET_CONNECTION_STATE_STOPPED, /**< The network connection has been disconnected */
-       NET_CONNECTION_STATE_SUSPENDED, /**< The network connection has been suspended */
-       NET_CONNECTION_STATE_SUSPEND = 5, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_CONNECTION_STATE_RESUMED, /**< The network connection is established, and recovered from SUSPEND state - enable to send/receive packet data */
-       NET_CONNECTION_STATE_AVAILABLE, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_CONNECTION_STATE_UNAVAILABLE, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-
-class _IpAddressImpl;
-class IpAddress {
-public:
-       virtual ~IpAddress(void);
-       static unsigned short HostToNetworkOrder(unsigned short host);
-       static unsigned long HostToNetworkOrder(unsigned long host);
-       static unsigned short NetworkToHostOrder(unsigned short network);
-       static unsigned long NetworkToHostOrder(unsigned long network);
-       virtual NetAddressFamily GetNetAddressFamily(void) const = 0;
-       virtual result GetAddress(Tizen::Base::ByteBuffer& ipAddr) const = 0;
-       virtual Tizen::Base::String ToString(void) const = 0;
-       virtual IpAddress* CloneN(void) const = 0;
-protected:
-       IpAddress(void);
-protected:
-       virtual void IpAddress_Reserved1(void) {
-       }
-       virtual void IpAddress_Reserved2(void) {
-       }
-       virtual void IpAddress_Reserved3(void) {
-       }
-       virtual void IpAddress_Reserved4(void) {
-       }
-       virtual void IpAddress_Reserved5(void) {
-       }
-private:
-       IpAddress(const IpAddress& rhs);
-       IpAddress& operator =(const IpAddress& rhs);
-protected:
-       _IpAddressImpl* _pIpAddressImpl;
-       friend class _IpAddressImpl;
-};
-// IpAddress
-
-class _NetConnectionInfoImpl;
-class NetConnectionInfo {
-public:
-       NetConnectionInfo(void);
-       virtual ~NetConnectionInfo(void);
-       NetBearerType GetBearerType(void) const;
-       NetProtocolType GetProtocolType(void) const;
-       Tizen::Base::String GetAccessPointName(void) const;
-       NetAddressScheme GetLocalAddressScheme(void) const;
-       const IpAddress* GetLocalAddress(void) const;
-       NetAddressScheme GetDnsAddressScheme(void) const;
-       const IpAddress* GetPrimaryDnsAddress(void) const;
-       const IpAddress* GetSecondaryDnsAddress(void) const;
-       const IpAddress* GetSubnetMaskAddress(void) const;
-       const IpAddress* GetDefaultGatewayAddress(void) const;
-       NetConnectionInfo(const NetConnectionInfo& rhs);
-       NetConnectionInfo& operator =(const NetConnectionInfo& rhs);
-       virtual bool Equals(const Tizen::Base::Object& rhs) const;
-       virtual int GetHashCode(void) const;
-private:
-       _NetConnectionInfoImpl* __pNetConnectionInfoImpl;
-       friend class _NetConnectionInfoImpl;
-};
-// NetConnectionInfo
-}
-} //Tizen::Net
-
-namespace Tizen {
-namespace Net {
-namespace Http {
-
-typedef int NetAccountId;
-
-enum HttpVersion {
-       HTTP_VERSION_1_0, /**< %Http version 1.0 */
-       HTTP_VERSION_1_1 /**< %Http version 1.1 */
-};
-
-enum NetHttpSessionMode {
-       NET_HTTP_SESSION_MODE_NORMAL, /**< The Normal Mode */
-       NET_HTTP_SESSION_MODE_PIPELINING, /**< The Pipelining mode */
-       NET_HTTP_SESSION_MODE_MULTIPLE_HOST /**< The Multiple host mode */
-};
-
-enum NetHttpCookieFlag {
-       NET_HTTP_COOKIE_FLAG_NONE, /**< The mode is not defined */
-       NET_HTTP_COOKIE_FLAG_ALWAYS_AUTOMATIC, /**< The cookie will be parsed and saved, and also attached to request automatically */
-       NET_HTTP_COOKIE_FLAG_ALWAYS_MANUAL /**< The cookie will be handled by the user action with Tizen::Net::Http::HttpRequest::SetCookie() and Tizen::Net::Http::HttpCookieStorageManager::GetCookies() */
-};
-
-enum NetHttpStatusCode {
-       NET_HTTP_STATUS_UNDEFINED = 0, /**< @if OSPDEPREC The undefined status @endif */
-       NET_HTTP_STATUS_CONTINUE = 100, /**< @if OSPDEPREC The status code: 100 Continue @endif */
-       NET_HTTP_STATUS_SWITCHING_PROTOCOLS = 101, /**< @if OSPDEPREC The status code: 101 Switching Protocols @endif */
-       NET_HTTP_STATUS_OK = 200, /**< @if OSPDEPREC The status code: 200 OK @endif */
-       NET_HTTP_STATUS_CREATED = 201, /**< @if OSPDEPREC The status code: 201 Created @endif */
-       NET_HTTP_STATUS_ACCEPTED = 202, /**< @if OSPDEPREC The status code: 202 Accepted @endif */
-       NET_HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203, /**< @if OSPDEPREC The status code: 203 Non-Authoritative Information @endif */
-       NET_HTTP_STATUS_NO_CONTENT = 204, /**< @if OSPDEPREC The status code: 204 No %Content @endif */
-       NET_HTTP_STATUS_RESET_CONTENT = 205, /**< @if OSPDEPREC The status code: 205 Reset %Content @endif */
-       NET_HTTP_STATUS_PARTIAL_CONTENT = 206, /**< @if OSPDEPREC The status code: 206 Partial %Content @endif */
-
-       NET_HTTP_STATUS_MULTIPLE_CHOICE = 300, /**< @if OSPDEPREC The status code: 300 Multiple Choices @endif */
-       NET_HTTP_STATUS_MOVED_PERMANENTLY = 301, /**< @if OSPDEPREC The status code: 301 Moved Permanently @endif */
-       NET_HTTP_STATUS_MOVED_TEMPORARILY = 302, /**< @if OSPDEPREC The status code: 302 Found @endif */
-       NET_HTTP_STATUS_SEE_OTHER = 303, /**< @if OSPDEPREC The status code: 303 See Other @endif */
-       NET_HTTP_STATUS_NOT_MODIFIED = 304, /**< @if OSPDEPREC The status code: 304 Not Modified @endif */
-       NET_HTTP_STATUS_USE_PROXY = 305, /**< @if OSPDEPREC The status code: 305 Use Proxy @endif */
-
-       NET_HTTP_STATUS_BAD_REQUEST = 400, /**< @if OSPDEPREC The status code: 400 Bad Request @endif */
-       NET_HTTP_STATUS_UNAUTHORIZED = 401, /**< @if OSPDEPREC The status code: 401 Unauthorized @endif */
-       NET_HTTP_STATUS_PAYMENT_REQUIRED = 402, /**< @if OSPDEPREC The status code: 402 Payment Required @endif */
-       NET_HTTP_STATUS_FORBIDDEN = 403, /**< @if OSPDEPREC The status code: 403 Forbidden @endif */
-       NET_HTTP_STATUS_NOT_FOUND = 404, /**<@if OSPDEPREC  The status code: 404 Not Found @endif */
-       NET_HTTP_STATUS_METHOD_NOT_ALLOWED = 405, /**< @if OSPDEPREC The status code: 405 Method Not Allowed @endif */
-       NET_HTTP_STATUS_NOT_ACCEPTABLE = 406, /**< @if OSPDEPREC The status code: 406 Not Acceptable @endif */
-       NET_HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407, /**< @if OSPDEPREC The status code: 407 Proxy Authentication Required @endif */
-       NET_HTTP_STATUS_REQUEST_TIME_OUT = 408, /**< @if OSPDEPREC The status code: 408 Request Timeout (not used) @endif */
-       NET_HTTP_STATUS_CONFLICT = 409, /**<@if OSPDEPREC  The status code: 409 Conflict @endif */
-       NET_HTTP_STATUS_GONE = 410, /**< @if OSPDEPREC The status code: 410 Gone @endif */
-       NET_HTTP_STATUS_LENGTH_REQUIRED = 411, /**< @if OSPDEPREC The status code: 411 Length Required @endif */
-       NET_HTTP_STATUS_PRECONDITION_FAILED = 412, /**<@if OSPDEPREC  The status code: 412 Precondition Failed @endif */
-       NET_HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE = 413, /**< @if OSPDEPREC The status code: 413 Request Entity Too Large (not used) @endif */
-       NET_HTTP_STATUS_REQUEST_URI_TOO_LARGE = 414, /**< @if OSPDEPREC The status code: 414 Request-URI Too Long (not used) @endif */
-       NET_HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415, /**< @if OSPDEPREC The status code: 415 Unsupported %Media Type @endif */
-
-       NET_HTTP_STATUS_INTERNAL_SERVER_ERROR = 500, /**< @if OSPDEPREC The status code: 500 Internal Server Error @endif */
-       NET_HTTP_STATUS_NOT_IMPLEMENTED = 501, /**< @if OSPDEPREC The status code: 501 Not Implemented @endif */
-       NET_HTTP_STATUS_BAD_GATEWAY = 502, /**< @if OSPDEPREC The status code: 502 Bad Gateway @endif */
-       NET_HTTP_STATUS_SERVICE_UNAVAILABLE = 503, /**< @if OSPDEPREC The status code: 503 Service Unavailable @endif */
-       NET_HTTP_STATUS_GATEWAY_TIME_OUT = 504, /**< @if OSPDEPREC The status code: 504 Gateway Timeout @endif */
-       NET_HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505 /**< @if OSPDEPREC The status code: 505 HTTP Version Not Supported @endif */
-};
-
-enum NetHttpMethod {
-       NET_HTTP_METHOD_GET = 0x40, /**< The HTTP GET Method */
-       NET_HTTP_METHOD_OPTIONS = 0x41, /**< The HTTP OPTIONS Method */
-       NET_HTTP_METHOD_HEAD = 0x42, /**< The HTTP HEAD Method */
-       NET_HTTP_METHOD_DELETE = 0x43, /**< The HTTP DELETE Method */
-       NET_HTTP_METHOD_TRACE = 0x44, /**< The HTTP TRACE Method */
-       NET_HTTP_METHOD_POST = 0x60, /**< The HTTP POST Method */
-       NET_HTTP_METHOD_PUT = 0x61, /**< The HTTP PUT Method */
-       NET_HTTP_METHOD_CONNECT = 0x70, /**< The HTTP CONNECT Method */
-};
-
-enum NetHttpCertificateVerificationFlag {
-       HTTP_CV_FLAG_AUTOMATIC, /**< The certificate is verified by the system @n If server certificate is invalid, the IHttpTransactionEventListener::OnTransactionCertVerificationRequiredN() listener is received.  */
-       HTTP_CV_FLAG_MANUAL, /**< The certificate verification is handled by user action when the IHttpTransactionEventListener::OnTransactionCertVerificationRequestedN() listener is received */
-       HTTP_CV_FLAG_IGNORED, /**< The certificate verification is ignored */
-};
-
-enum NetHttpAuthScheme {
-       NET_HTTP_AUTH_NONE = 0, /**< The no authentication type */
-       NET_HTTP_AUTH_PROXY_BASIC = 1, /**< The authentication type is Proxy Basic Authentication */
-       NET_HTTP_AUTH_PROXY_MD5 = 2, /**< The authentication type is Proxy Digest Authentication */
-       NET_HTTP_AUTH_WWW_BASIC = 3, /**< The authentication Type is HTTP Basic Authentication */
-       NET_HTTP_AUTH_WWW_MD5 = 4, /**< The authentication type is HTTP Digest Authentication */
-       NET_HTTP_AUTH_PROXY_NTLM = 5, /**< The authentication type is Proxy NTLM Authentication */
-       NET_HTTP_AUTH_WWW_NTLM = 7, /**< The authentication type is NTLM Authentication */
-       NET_HTTP_AUTH_WWW_NEGOTIATE = 8 /**< The authentication type is Negotiate Authentication */
-};
-
-class _HttpHeaderImpl;
-class HttpHeader {
-public:
-       HttpHeader(void);
-       HttpHeader(const HttpHeader* pHeader);
-       virtual ~HttpHeader(void);
-public:
-       result AddField(const Tizen::Base::String& fieldName,
-                       const Tizen::Base::String& fieldValue);
-       result RemoveField(const Tizen::Base::String& fieldName);
-       result RemoveField(const Tizen::Base::String& fieldName,
-                       const Tizen::Base::String& fieldValue);
-       void RemoveAll(void);
-       Tizen::Base::String* GetRawHeaderN(void) const;
-       Tizen::Base::Collection::IList* GetFieldNamesN(void) const;
-       Tizen::Base::Collection::IEnumerator* GetFieldValuesN(
-                       const Tizen::Base::String& fieldName) const;
-private:
-       HttpHeader(const HttpHeader& rhs);
-       HttpHeader& operator =(const HttpHeader& rhs);
-private:
-       friend class _HttpHeaderImpl;
-       _HttpHeaderImpl* __pHttpHeaderImpl;
-};
-
-Tizen::Base::String* HttpHeader::GetRawHeaderN(void) const
-{
-       typedef Tizen::Base::String* (HttpHeader::*methodType)(void) const;
-       static methodType GetRawHeaderNp;
-       Tizen::Base::String* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http10HttpHeader13GetRawHeaderNEv,
-                       GetRawHeaderNp);
-
-       retVal = (this->*GetRawHeaderNp)();
-
-       char *out = NULL;
-       int bufferSize = 0;
-       if (retVal == NULL) {
-               newerrno = 1;
-       } else {
-               bufferSize = retVal->GetLength();
-               out = new char[bufferSize + sizeof(char)];
-               WcharToChar(out, retVal->GetPointer());
-       }
-
-       info.msg_buf = out;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-       info.msg_total_size = bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpHeader::GetRawHeaderN", VT_NULL, NULL,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_RESPONSE, info, "s", "void");
-
-       if (out)
-               delete [] out;
-
-       return retVal;
-}
-
-// HttpHeader
-
-class HttpTransaction;
-class NetConnection;
-class HttpAuthentication;
-class HttpCookieStorageManager;
-
-class _HttpSessionImpl;
-class HttpSession {
-public:
-       HttpSession(void);
-       result Construct(NetHttpSessionMode sessionMode,
-                       const Tizen::Base::String* pProxyAddr,
-                       const Tizen::Base::String& hostAddr,
-                       const HttpHeader* pCommonHeader, NetHttpCookieFlag flag =
-                                       NET_HTTP_COOKIE_FLAG_ALWAYS_MANUAL);
-       result Construct(const NetConnection& netConnection,
-                       NetHttpSessionMode sessionMode,
-                       const Tizen::Base::String* pProxyAddr,
-                       const Tizen::Base::String& hostAddr,
-                       const HttpHeader* pCommonHeader, NetHttpCookieFlag flag =
-                                       NET_HTTP_COOKIE_FLAG_ALWAYS_MANUAL);
-       ~HttpSession(void);
-public:
-       HttpTransaction* OpenTransactionN(void);
-       HttpTransaction* OpenTransactionN(const HttpAuthentication& auth);
-       result CancelTransaction(HttpTransaction& httpTransaction);
-       result CloseTransaction(HttpTransaction& httpTransaction);
-       result CloseAllTransactions(void);
-       result SetAutoRedirectionEnabled(bool enable);
-       bool IsAutoRedirectionEnabled(void) const;
-       int GetActiveTransactionCount(void) const;
-       int GetMaxTransactionCount(void) const;
-       HttpCookieStorageManager* GetCookieStorageManager(void) const;
-private:
-       HttpSession(const HttpSession& rhs);
-       HttpSession& operator =(const HttpSession& rhs);
-private:
-       friend class _HttpSessionImpl;
-       _HttpSessionImpl* __pHttpSessionImpl;
-};
-// HttpSession
-
-result HttpSession::Construct(NetHttpSessionMode sessionMode,
-               const Tizen::Base::String* pProxyAddr,
-               const Tizen::Base::String& hostAddr, const HttpHeader* pCommonHeader,
-               NetHttpCookieFlag flag) {
-       typedef result (HttpSession::*methodType)(NetHttpSessionMode sessionMode,
-                       const Tizen::Base::String* pProxyAddr,
-                       const Tizen::Base::String& hostAddr,
-                       const HttpHeader* pCommonHeader, NetHttpCookieFlag flag);
-       static methodType Constructp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession9ConstructENS1_18NetHttpSessionModeEPKNS_4Base6StringERS6_PKNS1_10HttpHeaderENS1_17NetHttpCookieFlagE,
-                       Constructp);
-
-       retVal = (this->*Constructp)(sessionMode, pProxyAddr, hostAddr,
-                       pCommonHeader, flag);
-
-       char temp1[50];
-       if (NULL != pProxyAddr) {
-               WcharToChar(temp1, pProxyAddr->GetPointer());
-       } else {
-               strcpy(temp1, "NULL");
-       }
-       char temp2[50];
-       WcharToChar(temp2, hostAddr.GetPointer());
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::Construct", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_SESSION_CONSTRUCT,
-                                 info, "dssxd",
-                                 sessionMode, temp1, temp2,
-                                 voidp_to_uint64(&pCommonHeader), flag);
-       return retVal;
-}
-
-result HttpSession::Construct(const NetConnection& netConnection,
-               NetHttpSessionMode sessionMode, const Tizen::Base::String* pProxyAddr,
-               const Tizen::Base::String& hostAddr, const HttpHeader* pCommonHeader,
-               NetHttpCookieFlag flag)
-{
-       typedef result (HttpSession::*methodType)(
-                       const NetConnection& netConnection, NetHttpSessionMode sessionMode,
-                       const Tizen::Base::String* pProxyAddr,
-                       const Tizen::Base::String& hostAddr,
-                       const HttpHeader* pCommonHeader, NetHttpCookieFlag flag);
-       static methodType Constructp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession9ConstructERKNS0_13NetConnectionENS1_18NetHttpSessionModeEPKNS_4Base6StringERS9_PKNS1_10HttpHeaderENS1_17NetHttpCookieFlagE,
-                       Constructp);
-
-       retVal = (this->*Constructp)(netConnection, sessionMode, pProxyAddr,
-                       hostAddr, pCommonHeader, flag);
-
-       char temp1[50];
-       if (NULL != pProxyAddr) {
-               WcharToChar(temp1, pProxyAddr->GetPointer());
-       } else {
-               strcpy(temp1, "NULL");
-       }
-       char temp2[50];
-       WcharToChar(temp2, hostAddr.GetPointer());
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::Construct", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_SESSION_CONSTRUCT,
-                                 info, "xdssxd",
-                                 voidp_to_uint64(&netConnection), sessionMode,
-                                 temp1, temp2,
-                                 voidp_to_uint64(&pCommonHeader), flag);
-       return retVal;
-}
-
-HttpTransaction* HttpSession::OpenTransactionN(void)
-{
-       typedef HttpTransaction* (HttpSession::*methodType)(void);
-       static methodType OpenTransactionNp;
-
-       HttpTransaction* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession16OpenTransactionNEv,
-                       OpenTransactionNp);
-
-       retVal = (this->*OpenTransactionNp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::OpenTransactionN", VT_PTR, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_TRANSACTION_OPEN,
-                       info, "s", "void");
-       return retVal;
-}
-
-HttpTransaction* HttpSession::OpenTransactionN(const HttpAuthentication& auth)
-{
-       typedef HttpTransaction* (HttpSession::*methodType)(
-                       const HttpAuthentication& auth);
-       static methodType OpenTransactionNp;
-
-       HttpTransaction* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession16OpenTransactionNERKNS1_18HttpAuthenticationE,
-                       OpenTransactionNp);
-
-       retVal = (this->*OpenTransactionNp)(auth);
-
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::OpenTransactionN", VT_PTR, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_TRANSACTION_OPEN,
-                                 info, "x", voidp_to_uint64(&auth));
-       return retVal;
-
-}
-
-result HttpSession::CancelTransaction(HttpTransaction& httpTransaction)
-{
-       typedef result (HttpSession::*methodType)(HttpTransaction& httpTransaction);
-       static methodType CancelTransactionp;
-
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession17CancelTransactionERNS1_15HttpTransactionE,
-                       CancelTransactionp);
-
-       retVal = (this->*CancelTransactionp)(httpTransaction);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::CancelTransaction", VT_ULONG,
-                                 retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_TRANSACTION_CLOSE, info, "x",
-                                 voidp_to_uint64(&httpTransaction));
-
-       return retVal;
-}
-
-result HttpSession::CloseTransaction(HttpTransaction& httpTransaction)
-{
-       typedef result (HttpSession::*methodType)(HttpTransaction& httpTransaction);
-       static methodType CloseTransactionp;
-
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession16CloseTransactionERNS1_15HttpTransactionE,
-                       CloseTransactionp);
-
-       retVal = (this->*CloseTransactionp)(httpTransaction);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::CloseTransaction", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_TRANSACTION_CLOSE,
-                                 info, "x", voidp_to_uint64(&httpTransaction));
-
-       return retVal;
-}
-
-result HttpSession::CloseAllTransactions(void)
-{
-       typedef result (HttpSession::*methodType)(void);
-       static methodType CloseTransactionp;
-
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession20CloseAllTransactionsEv,
-                       CloseTransactionp);
-
-       retVal = (this->*CloseTransactionp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::CloseAllTransactions", VT_ULONG,
-                       retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_TRANSACTION_CLOSE, info, "s", "void");
-
-       return retVal;
-}
-
-result HttpSession::SetAutoRedirectionEnabled(bool enable)
-{
-       typedef result (HttpSession::*methodType)(bool enable);
-       static methodType SetAutoRedirectionEnabledp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpSession25SetAutoRedirectionEnabledEb,
-                       SetAutoRedirectionEnabledp);
-
-       retVal = (this->*SetAutoRedirectionEnabledp)(enable);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::SetAutoRedirectionEnabled",
-                       VT_ULONG, retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_OTHER, info, "d", enable);
-       return retVal;
-}
-
-bool HttpSession::IsAutoRedirectionEnabled(void) const
-{
-       typedef bool (HttpSession::*methodType)(void) const;
-       static methodType IsAutoRedirectionEnabledp;
-       bool retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http11HttpSession24IsAutoRedirectionEnabledEv,
-                       IsAutoRedirectionEnabledp);
-
-       retVal = (this->*IsAutoRedirectionEnabledp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::IsAutoRedirectionEnabled", VT_INT,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-int HttpSession::GetActiveTransactionCount(void) const
-{
-       typedef int (HttpSession::*methodType)(void) const;
-       static methodType GetActiveTransactionCountp;
-       int retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http11HttpSession25GetActiveTransactionCountEv,
-                       GetActiveTransactionCountp);
-
-       retVal = (this->*GetActiveTransactionCountp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::GetActiveTransactionCount", VT_INT,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-int HttpSession::GetMaxTransactionCount(void) const
-{
-       typedef int (HttpSession::*methodType)(void) const;
-       static methodType GetMaxTransactionCountp;
-       int retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http11HttpSession22GetMaxTransactionCountEv,
-                       GetMaxTransactionCountp);
-
-       retVal = (this->*GetMaxTransactionCountp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::GetMaxTransactionCount", VT_INT,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-HttpCookieStorageManager* HttpSession::GetCookieStorageManager(void) const
-{
-       typedef HttpCookieStorageManager* (HttpSession::*methodType)(void) const;
-       static methodType GetMaxTransactionCountp;
-       HttpCookieStorageManager* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http11HttpSession23GetCookieStorageManagerEv,
-                       GetMaxTransactionCountp);
-
-       retVal = (this->*GetMaxTransactionCountp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpSession::GetCookieStorageManager", VT_PTR,
-                       retVal, (unsigned int)this, (unsigned int)this, HTTP_API_ALLOCATION,
-                       info, "s", "void");
-       return retVal;
-}
-
-HttpSession::~HttpSession(void)
-{
-       typedef void (HttpSession::*methodType)(void);
-       static methodType HttpSessionDp = 0;
-
-       probeInfo_t probeInfo;
-       log_t log;
-       int blockresult = 0;
-       bool bfiltering = false;
-       if (!HttpSessionDp) {
-               if (lib_handle[LIBOSP_NET] == NULL) {
-                       lib_handle[LIBOSP_NET] = dlopen(lib_string[LIBOSP_NET], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_NET] == NULL) {
-                               char perror_msg[128];
-                               sprintf(perror_msg, "dlopen failed : %s",
-                                               lib_string[LIBOSP_NET]);
-                               perror(perror_msg);
-                               exit(0);
-                       }
-               }
-               void* funcp = dlsym(lib_handle[LIBOSP_NET],
-                               "_ZN5Tizen3Net4Http11HttpSessionD1Ev");
-               if (funcp == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : " "_ZN5Tizen3Net4Http11HttpSessionD1Ev");
-                       exit(0);
-               }
-               memcpy(&HttpSessionDp, &funcp, sizeof(void*));
-       }
-
-       if ((blockresult =
-                       preBlockBegin(
-                                       ((void*) __builtin_extract_return_addr(
-                                                       __builtin_return_address(0))), bfiltering, _sopt))
-                       != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       (this->*HttpSessionDp)();
-
-       if (postBlockBegin(blockresult)) {
-               log.type = 0;
-               log.length = 0;
-               log.data[0] = '\0';
-               log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", 15,
-                               probeInfo.eventIndex, "HttpSession::~HttpSession",
-                               probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
-               log.length += sprintf(log.data + log.length, "`,`,");
-               log.length += sprintf(log.data + log.length,
-                               "`,0`,0`,2`,%u`,0x%x`,0x%x`,2`,%d`,`,",
-                               (unsigned int) CALLER_ADDRESS, (unsigned int) this,
-                               (unsigned int) this, HTTP_API_TRANSACTION_CLOSE);
-               log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-               getBacktraceString(&log, 4096 - log.length - 17);
-               log.length += sprintf(log.data + log.length, "`,callstack_end");
-
-               printLog(&log, MSG_LOG);
-               postBlockEnd();
-       }
-}
-
-//HttpSession;
-
-class HttpRequest;
-class HttpResponse;
-class IHttpTransactionEventListener;
-class IHttpProgressEventListener;
-
-class _HttpTransactionImpl;
-class HttpTransaction {
-public:
-       ~HttpTransaction(void);
-public:
-
-       HttpAuthentication* OpenAuthenticationInfoN(void);
-       HttpRequest* GetRequest(void) const;
-       HttpResponse* GetResponse(void) const;
-       result AddHttpTransactionListener(IHttpTransactionEventListener& listener);
-       result RemoveHttpTransactionListener(
-                       IHttpTransactionEventListener& listener);
-       result SetHttpProgressListener(IHttpProgressEventListener& listener);
-       result SetUserObject(const Tizen::Base::Object* pUserData);
-       Tizen::Base::Object* GetUserObject(void) const;
-       bool EnableTransactionReadyToWrite(void);
-       result Submit(void);
-       result Resume(void);
-       result Pause(void);
-       result SetClientCertificate(int certificateId);
-       result SetTimeout(int timeout);
-       result SetServerCertificateVerification(
-                       NetHttpCertificateVerificationFlag flag = HTTP_CV_FLAG_AUTOMATIC);
-private:
-       HttpTransaction(void);
-       HttpTransaction(const HttpTransaction& rhs);
-       HttpTransaction& operator =(const HttpTransaction& rhs);
-private:
-       friend class _HttpTransactionImpl;
-       _HttpTransactionImpl* __pHttpTransactionImpl;
-};
-
-HttpAuthentication* HttpTransaction::OpenAuthenticationInfoN(void)
-{
-       typedef HttpAuthentication* (HttpTransaction::*methodType)(void) const;
-       static methodType GetRequestp;
-       HttpAuthentication* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http15HttpTransaction10GetRequestEv, GetRequestp);
-
-       retVal = (this->*GetRequestp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::OpenAuthenticationInfoN",
-                       VT_PTR, retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_ALLOCATION, info, "s", "void");
-       return retVal;
-}
-
-HttpRequest* HttpTransaction::GetRequest(void) const
-{
-       typedef HttpRequest* (HttpTransaction::*methodType)(void) const;
-       static methodType GetRequestp;
-       HttpRequest* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http15HttpTransaction10GetRequestEv, GetRequestp);
-
-       retVal = (this->*GetRequestp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::GetRequest", VT_PTR, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_ALLOCATION, info, "s", "void");
-       return retVal;
-}
-
-HttpResponse* HttpTransaction::GetResponse(void) const
-{
-       typedef HttpResponse* (HttpTransaction::*methodType)(void) const;
-       static methodType GetResponsep;
-       HttpResponse* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http15HttpTransaction11GetResponseEv, GetResponsep);
-
-       retVal = (this->*GetResponsep)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::GetResponse", VT_PTR, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_ALLOCATION, info, "s", "void");
-       return retVal;
-}
-
-result HttpTransaction::AddHttpTransactionListener(
-               IHttpTransactionEventListener& listener) {
-       typedef result (HttpTransaction::*methodType)(
-                       IHttpTransactionEventListener& listener);
-       static methodType AddHttpTransactionListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction26AddHttpTransactionListenerERNS1_29IHttpTransactionEventListenerE,
-                       AddHttpTransactionListenerp);
-
-       retVal = (this->*AddHttpTransactionListenerp)(listener);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::AddHttpTransactionListener",
-                                 VT_ULONG, retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_OTHER, info,
-                                 "x", voidp_to_uint64(&listener));
-       return retVal;
-}
-
-result HttpTransaction::RemoveHttpTransactionListener(
-               IHttpTransactionEventListener& listener) {
-       typedef result (HttpTransaction::*methodType)(
-                       IHttpTransactionEventListener& listener);
-       static methodType RemoveHttpTransactionListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction29RemoveHttpTransactionListenerERNS1_29IHttpTransactionEventListenerE,
-                       RemoveHttpTransactionListenerp);
-
-       retVal = (this->*RemoveHttpTransactionListenerp)(listener);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::RemoveHttpTransactionListener",
-                                 VT_ULONG, retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_OTHER, info, "x",
-                                 voidp_to_uint64(&listener));
-       return retVal;
-}
-
-result HttpTransaction::SetHttpProgressListener(
-               IHttpProgressEventListener& listener) {
-       typedef result (HttpTransaction::*methodType)(
-                       IHttpProgressEventListener& listener);
-       static methodType SetHttpProgressListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction23SetHttpProgressListenerERNS1_26IHttpProgressEventListenerE,
-                       SetHttpProgressListenerp);
-
-       retVal = (this->*SetHttpProgressListenerp)(listener);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::SetHttpProgressListener",
-                                 VT_ULONG, retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_OTHER, info, "x",
-                                 voidp_to_uint64(&listener));
-       return retVal;
-}
-
-result HttpTransaction::SetUserObject(const Tizen::Base::Object* pUserData)
-{
-       typedef result (HttpTransaction::*methodType)(
-                       const Tizen::Base::Object* pUserData);
-       static methodType SetUserObjectp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction13SetUserObjectEPKNS_4Base6ObjectE,
-                       SetUserObjectp);
-
-       retVal = (this->*SetUserObjectp)(pUserData);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::SetUserObject", VT_ULONG,
-                                 retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_OTHER, info, "x",
-                                 voidp_to_uint64(&pUserData));
-       return retVal;
-}
-
-Tizen::Base::Object* HttpTransaction::GetUserObject(void) const
-{
-       typedef Tizen::Base::Object* (HttpTransaction::*methodType)(void) const;
-       static methodType GetUserObjectp;
-       Tizen::Base::Object* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http15HttpTransaction13GetUserObjectEv,
-                       GetUserObjectp);
-
-       retVal = (this->*GetUserObjectp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::GetUserObject", VT_PTR, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-}
-
-bool HttpTransaction::EnableTransactionReadyToWrite(void)
-{
-       typedef bool (HttpTransaction::*methodType)(void) const;
-       static methodType EnableTransactionReadyToWritep;
-       bool retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction29EnableTransactionReadyToWriteEv,
-                       EnableTransactionReadyToWritep);
-
-       retVal = (this->*EnableTransactionReadyToWritep)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::GetUserObject", VT_INT, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-}
-//
-result HttpTransaction::Submit(void)
-{
-       typedef result (HttpTransaction::*methodType)(void);
-       static methodType Submitp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http15HttpTransaction6SubmitEv,
-                       Submitp);
-
-       retVal = (this->*Submitp)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::Submit", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_SUBMIT, info,
-                       "s", "void");
-       return retVal;
-}
-
-result HttpTransaction::Resume(void)
-{
-       typedef result (HttpTransaction::*methodType)(void);
-       static methodType Resumep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http15HttpTransaction6ResumeEv,
-                       Resumep);
-
-       retVal = (this->*Resumep)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::Resume", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-}
-
-result HttpTransaction::Pause(void)
-{
-       typedef result (HttpTransaction::*methodType)(void);
-       static methodType Pausep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http15HttpTransaction5PauseEv,
-                       Pausep);
-
-       retVal = (this->*Pausep)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::Pause", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-}
-
-result HttpTransaction::SetClientCertificate(int certificateId)
-{
-       typedef result (HttpTransaction::*methodType)(int certificateId);
-       static methodType SetClientCertificatep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction20SetClientCertificateEi,
-                       SetClientCertificatep);
-
-       retVal = (this->*SetClientCertificatep)(certificateId);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::SetClientCertificate", VT_ULONG,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "d", certificateId);
-       return retVal;
-}
-
-result HttpTransaction::SetTimeout(int timeout)
-{
-       typedef result (HttpTransaction::*methodType)(int timeout);
-       static methodType SetTimeoutp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction10SetTimeoutEi, SetTimeoutp);
-
-       retVal = (this->*SetTimeoutp)(timeout);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::SetTimeout", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "d", timeout);
-       return retVal;
-}
-result HttpTransaction::SetServerCertificateVerification(
-               NetHttpCertificateVerificationFlag flag) {
-       typedef result (HttpTransaction::*methodType)(
-                       NetHttpCertificateVerificationFlag flag);
-       static methodType SetServerCertificateVerificationp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http15HttpTransaction32SetServerCertificateVerificationENS1_34NetHttpCertificateVerificationFlagE,
-                       SetServerCertificateVerificationp);
-
-       retVal = (this->*SetServerCertificateVerificationp)(flag);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpTransaction::SetServerCertificateVerification",
-                                 VT_ULONG, retVal, (unsigned int)this,
-                                 (unsigned int)this, HTTP_API_OTHER, info, "d",
-                                 flag);
-       return retVal;
-}
-
-HttpTransaction::~HttpTransaction(void)
-{
-       typedef void (HttpTransaction::*methodType)(void);
-       static methodType HttpTransactiondp = 0;
-
-       probeInfo_t probeInfo;
-       log_t log;
-       int blockresult = 0;
-       bool bfiltering = false;
-       if (!HttpTransactiondp) {
-               if (lib_handle[LIBOSP_NET] == NULL) {
-                       lib_handle[LIBOSP_NET] = dlopen(lib_string[LIBOSP_NET], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_NET] == NULL) {
-                               char perror_msg[128];
-                               sprintf(perror_msg, "dlopen failed : %s",
-                                               lib_string[LIBOSP_NET]);
-                               perror(perror_msg);
-                               exit(0);
-                       }
-               }
-               void* funcp = dlsym(lib_handle[LIBOSP_NET],
-                               "_ZN5Tizen3Net4Http15HttpTransactionD1Ev");
-               if (funcp == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : " "_ZN5Tizen3Net4Http15HttpTransactionD1Ev");
-                       exit(0);
-               }
-               memcpy(&HttpTransactiondp, &funcp, sizeof(void*));
-       }
-
-       if ((blockresult =
-                       preBlockBegin(
-                                       ((void*) __builtin_extract_return_addr(
-                                                       __builtin_return_address(0))), bfiltering, _sopt))
-                       != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-
-       (this->*HttpTransactiondp)();
-
-       if (postBlockBegin(blockresult)) {
-               log.type = 0;
-               log.length = 0;
-               log.data[0] = '\0';
-               log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", 15,
-                               probeInfo.eventIndex, "HttpTransaction::~HttpTransaction",
-                               probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
-               log.length += sprintf(log.data + log.length, "`,`,");
-               log.length += sprintf(log.data + log.length,
-                               "`,0`,0`,2`,%u`,0x%x`,0x%x`,2`,%d`,`,",
-                               (unsigned int) CALLER_ADDRESS, (unsigned int) this,
-                               (unsigned int) this, HTTP_API_TRANSACTION_CLOSE);
-               log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-               getBacktraceString(&log, 4096 - log.length - 17);
-               log.length += sprintf(log.data + log.length, "`,callstack_end");
-
-               printLog(&log, MSG_LOG);
-               postBlockEnd();
-       }
-}
-
-// HttpTransaction
-
-class HttpCredentials;
-
-class _HttpAuthenticationImpl;
-class HttpAuthentication {
-public:
-       ~HttpAuthentication(void);
-       Tizen::Base::String* GetRealmN(void) const;
-       NetHttpAuthScheme GetAuthScheme(void) const;
-       HttpTransaction* SetCredentials(HttpCredentials& credentials);
-private:
-       HttpAuthentication(void);
-       HttpAuthentication(const HttpAuthentication& rhs);
-       HttpAuthentication& operator =(const HttpAuthentication& rhs);
-private:
-       _HttpAuthenticationImpl* __pHttpAuthenticationImpl;
-       friend class _HttpAuthenticationImpl;
-};
-// HttpAuthentication
-
-class HttpCredentials {
-public:
-       HttpCredentials(void);
-       HttpCredentials(const Tizen::Base::String& name,
-                       const Tizen::Base::String& password);
-       HttpCredentials(const HttpCredentials& rhs);
-       virtual ~HttpCredentials(void);
-       HttpCredentials& operator =(const HttpCredentials& rhs);
-       result SetName(const Tizen::Base::String& name);
-       result SetPassword(const Tizen::Base::String& password);
-       Tizen::Base::String GetName(void) const;
-       Tizen::Base::String GetPassword(void) const;
-       virtual bool Equals(const Tizen::Base::Object& rhs) const;
-       virtual int GetHashCode(void) const;
-private:
-       Tizen::Base::String __userName;
-       Tizen::Base::String __password;
-       friend class HttpCredentialsImpl;
-       class HttpCredentialsImpl* __pHttpCredentialsImpl;
-};
-// HttpCredentials
-
-class INetConnectionEventListener;
-
-class _NetConnectionImpl;
-class NetConnection {
-public:
-       NetConnection(void);
-       virtual ~NetConnection(void);
-       result Construct(NetAccountId netAccountId);
-public:
-       result AddNetConnectionListener(INetConnectionEventListener& listener);
-       result RemoveNetConnectionListener(INetConnectionEventListener& listener);
-       result Start(void);
-       result Stop(void);
-       result Close(void);
-       NetAccountId GetNetAccountId(void) const;
-       const NetConnectionInfo* GetNetConnectionInfo(void) const;
-       static NetConnectionInfo* GetNetConnectionInfoN(NetAccountId netAccountId);
-       static Tizen::Base::Collection::IList* GetAllNetConnectionInfoN(void);
-       NetConnectionState GetConnectionState(void) const;
-private:
-       NetConnection(const NetConnection& rhs);
-       NetConnection& operator =(const NetConnection& rhs);
-private:
-       _NetConnectionImpl* __pNetConnectionImpl;
-       friend class _NetConnectionImpl;
-};
-// NetConnection
-
-class IHttpEntity;
-
-class _HttpRequestImpl;
-class HttpRequest {
-public:
-       result SetMethod(NetHttpMethod method);
-       result SetCustomMethod(const Tizen::Base::String& method);
-       result SetVersion(HttpVersion version);
-       result SetUri(const Tizen::Base::String& uri);
-       result WriteBody(const Tizen::Base::ByteBuffer& body);
-       result SetEntity(IHttpEntity& entity);
-       HttpHeader* GetHeader(void) const;
-       result SetCookie(const Tizen::Base::String& cookieString);
-       Tizen::Base::String GetCookie(void) const;
-       result SetAcceptEncoding(const Tizen::Base::String& encoding);
-protected:
-       HttpRequest(void);
-       ~HttpRequest(void);
-       result Construct(const HttpTransaction& httpTransaction,
-                       const HttpHeader* pCommonHeader);
-       NetHttpMethod GetMethod(void) const;
-       result GetCustomMethod(Tizen::Base::String& method) const;
-       HttpVersion GetVersion(void) const;
-       result GetUri(Tizen::Base::String& uri) const;
-       Tizen::Base::ByteBuffer* ReadBodyN(void);
-       Tizen::Base::String GetAcceptEncoding(void) const;
-private:
-       HttpRequest(const HttpRequest& rhs);
-       HttpRequest& operator =(const HttpRequest& rhs);
-private:
-       friend class _HttpRequestImpl;
-       _HttpRequestImpl* __pHttpRequestImpl;
-};
-
-result HttpRequest::SetMethod(NetHttpMethod method)
-{
-       typedef result (HttpRequest::*methodType)(NetHttpMethod method);
-       static methodType SetMethodp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest9SetMethodENS1_13NetHttpMethodE,
-                       SetMethodp);
-
-       retVal = (this->*SetMethodp)(method);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetMethod", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "d", method);
-       return retVal;
-}
-
-result HttpRequest::SetCustomMethod(const Tizen::Base::String& method)
-{
-       typedef result (HttpRequest::*methodType)(
-                       const Tizen::Base::String& method);
-       static methodType SetCustomMethodp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest15SetCustomMethodERKNS_4Base6StringE,
-                       SetCustomMethodp);
-
-       retVal = (this->*SetCustomMethodp)(method);
-
-       int nSize = method.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, method.GetPointer());
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetCustomMethod", VT_ULONG,
-                                 retVal, (unsigned int)this,
-                                 (unsigned int)this,
-                                 HTTP_API_REQUEST, info, "x",
-                                 voidp_to_uint64(&method));
-       return retVal;
-}
-
-result HttpRequest::SetVersion(HttpVersion version)
-{
-       typedef result (HttpRequest::*methodType)(HttpVersion version);
-       static methodType SetVersionp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest6SetUriERKNS_4Base6StringE,
-                       SetVersionp);
-
-       retVal = (this->*SetVersionp)(version);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetVersion", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "d", version);
-       return retVal;
-}
-
-result HttpRequest::SetUri(const Tizen::Base::String& uri)
-{
-       typedef result (HttpRequest::*methodType)(const Tizen::Base::String& uri);
-       static methodType SetUrip;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest6SetUriERKNS_4Base6StringE, SetUrip);
-
-       retVal = (this->*SetUrip)(uri);
-
-       int nSize = uri.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, uri.GetPointer());
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetUri", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_REQUEST, info,
-                       "s", temp);
-       return retVal;
-}
-
-result HttpRequest::WriteBody(const Tizen::Base::ByteBuffer& body)
-{
-       typedef result (HttpRequest::*methodType)(
-                       const Tizen::Base::ByteBuffer& body);
-       static methodType WriteBodyp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest9WriteBodyERKNS_4Base10ByteBufferE,
-                       WriteBodyp);
-
-       retVal = (this->*WriteBodyp)(body);
-
-       int bufferSize = body.GetLimit();
-       char* pBuffer = (char*) (body.GetPointer());
-       Tizen::Base::String strData;
-       strData.SetCapacity(bufferSize);
-       strData.Append(pBuffer);
-       char* out = new char[bufferSize];
-       WcharToChar(out, strData.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-       info.msg_total_size = bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::WriteBody", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_REQUEST, info, "x",
-                                 voidp_to_uint64(&body));
-       delete [] out;
-       return retVal;
-}
-
-result HttpRequest::SetEntity(IHttpEntity& entity)
-{
-       typedef result (HttpRequest::*methodType)(IHttpEntity& entity);
-       static methodType SetEntityp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest9SetEntityERNS1_11IHttpEntityE,
-                       SetEntityp);
-
-       retVal = (this->*SetEntityp)(entity);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetEntity", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info,
-                                 "x", voidp_to_uint64(&entity));
-       return retVal;
-}
-
-HttpHeader* HttpRequest::GetHeader(void) const
-{
-       typedef HttpHeader* (HttpRequest::*methodType)(void) const;
-       static methodType GetHeaderp;
-       HttpHeader* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http11HttpRequest9GetHeaderEv,
-                       GetHeaderp);
-       retVal = (this->*GetHeaderp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::GetHeader", VT_PTR, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_ALLOCATION, info, "s", "void");
-       return retVal;
-}
-
-result HttpRequest::SetCookie(const Tizen::Base::String& cookieString)
-{
-       typedef result (HttpRequest::*methodType)(
-                       const Tizen::Base::String& cookieString);
-       static methodType SetCookiep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest9SetCookieERKNS_4Base6StringE,
-                       SetCookiep);
-
-       retVal = (this->*SetCookiep)(cookieString);
-
-       int nSize = cookieString.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, cookieString.GetPointer());
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetCookie", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_REQUEST, info, "x",
-                                 voidp_to_uint64(&cookieString));
-       return retVal;
-}
-
-Tizen::Base::String HttpRequest::GetCookie(void) const
-{
-       typedef Tizen::Base::String (HttpRequest::*methodType)(void) const;
-       static methodType GetCookiep;
-       Tizen::Base::String retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http11HttpRequest9GetCookieEv,
-                       GetCookiep);
-
-       retVal = (this->*GetCookiep)();
-
-       int nSize = retVal.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, retVal.GetPointer());
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::GetCookie", VT_PTR,
-                                 (unsigned int)&retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-result HttpRequest::SetAcceptEncoding(const Tizen::Base::String& encoding)
-{
-       typedef result (HttpRequest::*methodType)(const Tizen::Base::String& uri);
-       static methodType SetAcceptEncodingp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http11HttpRequest6SetUriERKNS_4Base6StringE,
-                       SetAcceptEncodingp);
-
-       retVal = (this->*SetAcceptEncodingp)(encoding);
-
-       int nSize = encoding.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, encoding.GetPointer());
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::SetAcceptEncoding", VT_ULONG,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_REQUEST, info, "s", temp);
-       return retVal;
-}
-
-Tizen::Base::ByteBuffer* HttpRequest::ReadBodyN(void)
-{
-       typedef Tizen::Base::ByteBuffer* (HttpRequest::*methodType)(void);
-       static methodType ReadBodyNp;
-       Tizen::Base::ByteBuffer* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http11HttpRequest9ReadBodyNEv,
-                       ReadBodyNp);
-       retVal = (this->*ReadBodyNp)();
-
-       int bufferSize = retVal->GetLimit();
-       Tizen::Base::ByteBuffer copybuffer;
-       copybuffer.Construct(bufferSize + 4);
-       copybuffer.CopyFrom(*retVal);
-
-       info.msg_buf = (char *)(copybuffer.GetPointer());
-       info.msg_total_size = bufferSize;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::ReadBodyN", VT_PTR,
-                                 (unsigned int)&retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-Tizen::Base::String HttpRequest::GetAcceptEncoding(void) const
-{
-       typedef Tizen::Base::String (HttpRequest::*methodType)(void) const;
-       static methodType HttpRequestp;
-       Tizen::Base::String retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http11HttpRequest17GetAcceptEncodingEv,
-                       HttpRequestp);
-       retVal = (this->*HttpRequestp)();
-
-       int nSize = retVal.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, retVal.GetPointer());
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpRequest::GetAcceptEncoding", VT_PTR,
-                                 (unsigned int)&retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-HttpRequest::~HttpRequest() {
-}
-
-// HttpRequest
-
-class _HttpResponseImpl;
-class HttpResponse {
-public:
-       NetHttpStatusCode GetStatusCode(void) const;
-       int GetHttpStatusCode(void) const;
-       Tizen::Base::String GetStatusText(void) const;
-       Tizen::Base::String GetVersion(void) const;
-       HttpHeader* GetHeader(void) const;
-       Tizen::Base::ByteBuffer* ReadBodyN(void);
-       Tizen::Base::Collection::IList* GetCookies(void) const;
-protected:
-       HttpResponse(void);
-       virtual ~HttpResponse(void);
-       result Construct(const HttpTransaction& httpTransaction);
-protected:
-       result SetStatusCode(NetHttpStatusCode statusCode);
-       result SetHttpStatusCode(int statusCode);
-       result SetStatusText(const Tizen::Base::String& statusText);
-       result SetVersion(const Tizen::Base::String& httpVersion);
-       result WriteBody(const Tizen::Base::ByteBuffer& body);
-       result Read(int headerLen, int bodyLen, int& rcvHeaderLen, int& rcvBodyLen);
-       result SetCookie(Tizen::Net::Http::HttpHeader* pHeader);
-private:
-       HttpResponse(const HttpResponse& rhs);
-       HttpResponse& operator =(const HttpResponse& rhs);
-private:
-       friend class _HttpResponseImpl;
-       _HttpResponseImpl* __pHttpResponseImpl;
-
-};
-
-NetHttpStatusCode HttpResponse::GetStatusCode(void) const
-{
-       typedef NetHttpStatusCode (HttpResponse::*methodType)(void) const;
-       static methodType GetHttpStatusCodep;
-       NetHttpStatusCode retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http12HttpResponse17GetHttpStatusCodeEv,
-                       GetHttpStatusCodep);
-
-       retVal = (this->*GetHttpStatusCodep)();
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetStatusCode", VT_INT, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-
-}
-
-int HttpResponse::GetHttpStatusCode(void) const
-{
-       typedef int (HttpResponse::*methodType)(void) const;
-       static methodType GetHttpStatusCodep;
-       int retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http12HttpResponse17GetHttpStatusCodeEv,
-                       GetHttpStatusCodep);
-
-       retVal = (this->*GetHttpStatusCodep)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetHttpStatusCode", VT_INT, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", "void");
-       return retVal;
-}
-
-Tizen::Base::String HttpResponse::GetStatusText(void) const
-{
-       typedef Tizen::Base::String (HttpResponse::*methodType)(void) const;
-       static methodType GetStatusTextp;
-       Tizen::Base::String retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net4Http12HttpResponse13GetStatusTextEv, GetStatusTextp);
-
-       retVal = (this->*GetStatusTextp)();
-       int nSize = retVal.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, retVal.GetPointer());
-
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetStatusText", VT_PTR,
-                       (unsigned int)&retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_RESPONSE, info, "s", "void");
-       return retVal;
-}
-
-Tizen::Base::String HttpResponse::GetVersion(void) const
-{
-       typedef Tizen::Base::String (HttpResponse::*methodType)(void) const;
-       static methodType GetVersionp;
-       Tizen::Base::String retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http12HttpResponse10GetVersionEv,
-                       GetVersionp);
-
-       retVal = (this->*GetVersionp)();
-       int nSize = retVal.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, retVal.GetPointer());
-
-       info.msg_buf = temp;
-       info.msg_total_size = nSize;
-       info.msg_pack_size = nSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : nSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetVersion", VT_PTR,
-                       (unsigned int)&retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_RESPONSE, info, "s", "void");
-       return retVal;
-}
-
-HttpHeader* HttpResponse::GetHeader(void) const
-{
-       typedef HttpHeader* (HttpResponse::*methodType)(void) const;
-       static methodType GetHeaderp;
-       HttpHeader* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http12HttpResponse9GetHeaderEv,
-                       GetHeaderp);
-       retVal = (this->*GetHeaderp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetHeader", VT_PTR, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_ALLOCATION,
-                       info, "s", "void");
-       return retVal;
-}
-
-Tizen::Base::ByteBuffer* HttpResponse::ReadBodyN(void)
-{
-       typedef Tizen::Base::ByteBuffer* (HttpResponse::*methodType)(void);
-       static methodType ReadBodyNp;
-       Tizen::Base::ByteBuffer* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http12HttpResponse9ReadBodyNEv,
-                       ReadBodyNp);
-       retVal = (this->*ReadBodyNp)();
-       if (retVal == NULL)
-               newerrno = 1;
-
-       int bufferSize = retVal->GetLimit();
-       Tizen::Base::ByteBuffer copybuffer;
-       copybuffer.Construct(bufferSize + 4);
-       copybuffer.CopyFrom(*retVal);
-
-       char* out = (char*) (copybuffer.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-       info.msg_total_size = bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::ReadBodyN", VT_PTR,
-                       (unsigned int)&retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_RESPONSE, info, "s", "void");
-       return retVal;
-}
-
-Tizen::Base::Collection::IList* HttpResponse::GetCookies(void) const
-{
-       typedef Tizen::Base::Collection::IList* (HttpResponse::*methodType)(
-                       void) const;
-       static methodType GetCookiesp;
-       Tizen::Base::Collection::IList* retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net4Http12HttpResponse10GetCookiesEv,
-                       GetCookiesp);
-
-       retVal = (this->*GetCookiesp)();
-       if (retVal == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::GetCookies", VT_PTR,
-                       (unsigned int)&retVal, (unsigned int)this, (unsigned int)this,
-                       HTTP_API_OTHER, info, "s", "void");
-       return retVal;
-}
-
-result HttpResponse::SetStatusCode(NetHttpStatusCode statusCode)
-{
-       typedef result (HttpResponse::*methodType)(NetHttpStatusCode statusCode);
-       static methodType SetStatusCodep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse13SetStatusCodeENS1_17NetHttpStatusCodeE,
-                       SetStatusCodep);
-
-       retVal = (this->*SetStatusCodep)(statusCode);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::SetStatusCode", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "d", statusCode);
-       return retVal;
-}
-
-result HttpResponse::SetHttpStatusCode(int statusCode)
-{
-       typedef result (HttpResponse::*methodType)(int statusCode);
-       static methodType SetHttpStatusCodep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse17SetHttpStatusCodeEi,
-                       SetHttpStatusCodep);
-
-       retVal = (this->*SetHttpStatusCodep)(statusCode);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::SetHttpStatusCode", VT_ULONG,
-                                 retVal, (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info, "d", statusCode);
-       return retVal;
-}
-
-result HttpResponse::SetStatusText(const Tizen::Base::String& statusText)
-{
-       typedef result (HttpResponse::*methodType)(
-                       const Tizen::Base::String& statusText);
-       static methodType SetStatusText;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse13SetStatusTextERKNS_4Base6StringE,
-                       SetStatusText);
-
-       retVal = (this->*SetStatusText)(statusText);
-
-       int nSize = statusText.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, statusText.GetPointer());
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::SetStatusText", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", temp);
-       return retVal;
-}
-
-result HttpResponse::SetVersion(const Tizen::Base::String& httpVersion)
-{
-       typedef result (HttpResponse::*methodType)(
-                       const Tizen::Base::String& httpVersion);
-       static methodType SetVersionp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse10SetVersionERKNS_4Base6StringE,
-                       SetVersionp);
-
-       retVal = (this->*SetVersionp)(httpVersion);
-
-       int nSize = httpVersion.GetLength();
-       char temp[nSize];
-       WcharToChar(temp, httpVersion.GetPointer());
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::SetVersion", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, HTTP_API_OTHER, info,
-                       "s", temp);
-       return retVal;
-}
-
-result HttpResponse::WriteBody(const Tizen::Base::ByteBuffer& body)
-{
-       typedef result (HttpResponse::*methodType)(
-                       const Tizen::Base::ByteBuffer& body);
-       static methodType WriteBodyp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse9WriteBodyERKNS_4Base10ByteBufferE,
-                       WriteBodyp);
-
-       retVal = (this->*WriteBodyp)(body);
-
-       int bufferSize = body.GetLimit();
-       char* pBuffer = (char*) (body.GetPointer());
-       Tizen::Base::String strData;
-       strData.SetCapacity(bufferSize);
-       strData.Append(pBuffer);
-       char* out = new char[bufferSize + sizeof(char)];
-       WcharToChar(out, strData.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-       info.msg_total_size = bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::WriteBody", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_RESPONSE,
-                                 info, "x", voidp_to_uint64(&body));
-       delete out;
-       return retVal;
-}
-
-result HttpResponse::Read(int headerLen, int bodyLen, int& rcvHeaderLen,
-               int& rcvBodyLen) {
-       typedef result (HttpResponse::*methodType)(int headerLen, int bodyLen,
-                       int& rcvHeaderLen, int& rcvBodyLen);
-       static methodType Readp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net4Http12HttpResponse4ReadEiiRiS3_,
-                       Readp);
-
-       retVal = (this->*Readp)(headerLen, bodyLen, rcvHeaderLen, rcvBodyLen);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::Read", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info,
-                                 "ddxx", headerLen, bodyLen,
-                                 voidp_to_uint64(&rcvHeaderLen),
-                                 voidp_to_uint64(&rcvBodyLen));
-       return retVal;
-}
-
-result HttpResponse::SetCookie(Tizen::Net::Http::HttpHeader* pHeader)
-{
-       typedef result (HttpResponse::*methodType)(
-                       Tizen::Net::Http::HttpHeader* pHeader);
-       static methodType SetCookiep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net4Http12HttpResponse9SetCookieEPNS1_10HttpHeaderE,
-                       SetCookiep);
-
-       retVal = (this->*SetCookiep)(pHeader);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("HttpResponse::SetCookie", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 HTTP_API_OTHER, info,
-                                 "x", voidp_to_uint64(&pHeader));
-       return retVal;
-}
-
-//
-//HttpResponse::~HttpResponse(void){
-//
-//}
-// HttpResponse
-
-class _HttpCookieStorageManagerImpl;
-class HttpCookieStorageManager {
-
-public:
-       result GetCookies(const Tizen::Base::String& url,
-                       Tizen::Base::String& cookies) const;
-       result RemoveCookies(const Tizen::Base::String& url);
-       result RemoveAllCookies();
-private:
-       HttpCookieStorageManager();
-       ~HttpCookieStorageManager();
-       HttpCookieStorageManager(const HttpCookieStorageManager& rhs);
-       HttpCookieStorageManager& operator =(const HttpCookieStorageManager& rhs);
-private:
-       friend class _HttpCookieStorageManagerImpl;
-       _HttpCookieStorageManagerImpl* __pHttpCookieStorageManagerImpl;
-};
-// HttpCookieStorageManager
-
-class _HttpRequestImpl;
-class IHttpEntity {
-public:
-       virtual ~IHttpEntity(void) {
-       }
-public:
-       virtual long long GetContentLength(void) const = 0;
-       virtual Tizen::Base::String GetContentType(void) const = 0;
-protected:
-       virtual bool HasNextData(void) = 0;
-       virtual Tizen::Base::ByteBuffer* GetNextDataN(int recommendedSize) = 0;
-protected:
-       virtual void IHttpEntity_Reserved1(void) {
-       }
-       virtual void IHttpEntity_Reserved2(void) {
-       }
-       virtual void IHttpEntity_Reserved3(void) {
-       }
-       friend class _HttpRequestImpl;
-};
-
-class IHttpTransactionEventListener {
-public:
-       virtual ~IHttpTransactionEventListener(void) {
-       }
-public:
-       virtual void OnTransactionReadyToRead(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, int availableBodyLen) = 0;
-       virtual void OnTransactionAborted(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, result r) = 0;
-       virtual void OnTransactionReadyToWrite(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, int recommendedChunkSize) = 0;
-       virtual void OnTransactionHeaderCompleted(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, int headerLen,
-                       bool bAuthRequired) = 0;
-       virtual void OnTransactionCompleted(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction) = 0;
-       virtual void OnTransactionCertVerificationRequiredN(
-                       HttpSession& httpSession, HttpTransaction& httpTransaction,
-                       Tizen::Base::String* pCert) = 0;
-       virtual bool OnTransactionCertVerificationRequestedN(
-                       HttpSession&, HttpTransaction&,
-                       Tizen::Base::Collection::IList* pCertList) {
-               std::unique_ptr < Tizen::Base::Collection::IList
-                               > upCertList(pCertList);
-               return false;
-       }
-protected:
-       virtual void IHttpTransactionEventListener_Reserved1(void) {
-       }
-
-};
-
-class IHttpProgressEventListener {
-public:
-       virtual ~IHttpProgressEventListener(void) {
-       }
-public:
-       virtual void OnHttpUploadInProgress(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, long long currentLength,
-                       long long totalLength) = 0;
-       virtual void OnHttpDownloadInProgress(HttpSession& httpSession,
-                       HttpTransaction& httpTransaction, long long currentLength,
-                       long long totalLength) = 0;
-protected:
-       virtual void IHttpProgressEventListener_Reserved1(void) {
-       }
-       virtual void IHttpProgressEventListener_Reserved2(void) {
-       }
-       virtual void IHttpProgressEventListener_Reserved3(void) {
-       }
-};
-
-class INetConnectionEventListener {
-public:
-       virtual ~INetConnectionEventListener(void) {
-       }
-public:
-       virtual void OnNetConnectionStarted(NetConnection& netConnection,
-                       result r) = 0;
-       virtual void OnNetConnectionStopped(NetConnection& netConnection,
-                       result r) = 0;
-       virtual void OnNetConnectionSuspended(NetConnection& netConnection) = 0;
-       virtual void OnNetConnectionResumed(NetConnection& netConnection) = 0;
-protected:
-       virtual void INetConnectionEventListener_Reserved1(void) {
-       }
-       virtual void INetConnectionEventListener_Reserved2(void) {
-       }
-};
-// INetConnectionEventListener
-
-}
-}
-} // namespace Tizen { namespace Net { namespace Http
diff --git a/probe_tizenapi/tizen_lifecycle.cpp b/probe_tizenapi/tizen_lifecycle.cpp
deleted file mode 100755 (executable)
index 86007b0..0000000
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (File::*c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <app.h>
-#include <Ecore.h>
-#include <FApp.h>
-#include <FBase.h>
-
-#include "daprobe.h"
-#include "dahelper.h"
-#include "probeinfo.h"
-#include "tizen_probe.h"
-
-#include "binproto.h"
-
-using namespace Tizen::Base;
-using namespace Tizen::Base::Collection;
-
-namespace Tizen { namespace App
-{
-
-//class _IAppImpl
-//{
-//     virtual void OnDeviceOrientationChanged(app_device_orientation_e orientation) = 0;
-//};
-
-class _AppImpl
-{
-       static void OnTerminate(void* user_data);
-//     static void OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data);
-};
-
-class _UiAppImpl
-//     : public Tizen::Base::Object
-//     , public _IAppImpl
-{
-       void OnBackground(void);
-       void OnForeground(void);
-//     virtual void OnDeviceOrientationChanged(app_device_orientation_e orientation);
-};
-
-class _AppInfo
-{
-       static void SetAppState(AppState appstate);
-};
-
-result UiApp::Execute(UiAppInstanceFactory pUiAppFactory,
-               const IList* pArguments)
-{
-       typedef result (*methodType)(UiAppInstanceFactory pFactory, const IList* pArgs);
-       static methodType uiapp_executep;
-       probeInfo_t     probeInfo;
-       unsigned long __attribute__((unused)) ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App5UiApp7ExecuteEPFPS1_vEPKNS_4Base10Collection5IListE,
-               LIBOSP_UIFW, uiapp_executep);
-
-       probeBlockStart();
-       if(gTraceInfo.exec_map.map_start == NULL)
-       {
-               get_map_address(CALLER_ADDRESS, &(gTraceInfo.exec_map.map_start),
-                                               &(gTraceInfo.exec_map.map_end));
-       }
-       setProbePoint(&probeInfo);
-       probeBlockEnd();
-
-       ret = uiapp_executep(pUiAppFactory, pArguments);
-
-       probeBlockStart();
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
-                         API_ID_result_UiApp__Execute_UiAppInstanceFactory_pUiAppFactory__const_IList__pArguments_,
-                         "pp", (uint64_t)(pUiAppFactory),
-                         voidp_to_uint64(pArguments));
-       PACK_COMMON_END('x', ret, 0, 0);
-       FLUSH_LOCAL_BUF();
-
-       probeBlockEnd();
-
-       return ret;
-}
-
-void _AppImpl::OnTerminate(void* user_data)
-{
-       typedef void (*methodType)(void*);
-       static methodType appimpl_onterminatep;
-       probeInfo_t     probeInfo;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App8_AppImpl11OnTerminateEPv, LIBOSP_APPFW, appimpl_onterminatep);
-
-       probeBlockStart();
-       setProbePoint(&probeInfo);
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
-                         API_ID_void__AppImpl__OnTerminate_void__user_data_,
-                         "p", voidp_to_uint64(user_data));
-       PACK_COMMON_END('v', 0, 0, 0);
-       FLUSH_LOCAL_BUF();
-
-       probeBlockEnd();
-
-       appimpl_onterminatep(user_data);
-}
-/*
-void _AppImpl::OnDeviceOrientationChanged(app_device_orientation_e orientation, void* user_data)
-{
-       typedef void (*methodType)(app_device_orientation_e, void*);
-       static methodType appimpl_ondeviceorientationchangedp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App8_AppImpl26OnDeviceOrientationChangedE24app_device_orientation_ePv,
-                       LIBOSP_APPFW, appimpl_ondeviceorientationchangedp);
-
-       probeBlockStart();
-       on_orientation_changed((int)orientation, false);
-       probeBlockEnd();
-
-       appimpl_ondeviceorientationchangedp(orientation, user_data);
-}
-*/
-void _AppInfo::SetAppState(AppState appState)
-{
-       typedef void (*methodType)(AppState appstate);
-       static methodType appinfo_setappstatep;
-       probeInfo_t     probeInfo;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App8_AppInfo11SetAppStateENS0_8AppStateE, LIBOSP_APPFW, appinfo_setappstatep);
-
-       probeBlockStart();
-       if(appState == RUNNING)
-       {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
-                                 API_ID_void__AppInfo__SetAppState_AppState_appState_,
-                                 "x", (uint64_t)(appState));
-               PACK_COMMON_END('v', 0, 0, 0);
-               FLUSH_LOCAL_BUF();
-       }
-       probeBlockEnd();
-
-       appinfo_setappstatep(appState);
-}
-
-void _UiAppImpl::OnBackground(void)
-{
-       typedef void (_UiAppImpl::*methodType)(void);
-       static methodType uiappimpl_onbackgroundp;
-       probeInfo_t     probeInfo;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App10_UiAppImpl12OnBackgroundEv, LIBOSP_UIFW, uiappimpl_onbackgroundp);
-
-       probeBlockStart();
-       SCREENSHOT_LOCK();
-       setProbePoint(&probeInfo);
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
-                         API_ID_void__UiAppImpl__OnBackground_void_,
-                         "", 0);
-       PACK_COMMON_END('v', 0, 0, 0);
-       FLUSH_LOCAL_BUF();
-
-       probeBlockEnd();
-
-       (this->*uiappimpl_onbackgroundp)();
-}
-
-void _UiAppImpl::OnForeground(void)
-{
-       typedef void (_UiAppImpl::*methodType)(void);
-       static methodType uiappimpl_onforegroundp;
-       probeInfo_t     probeInfo;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen3App10_UiAppImpl12OnForegroundEv, LIBOSP_UIFW, uiappimpl_onforegroundp);
-
-       probeBlockStart();
-       setProbePoint(&probeInfo);
-
-       PREPARE_LOCAL_BUF();
-       PACK_COMMON_BEGIN(MSG_PROBE_LIFECYCLE,
-                         API_ID_void__UiAppImpl__OnForeground_void_,
-                         "", 0);
-       PACK_COMMON_END('v', 0, 0, 0);
-       FLUSH_LOCAL_BUF();
-
-       SCREENSHOT_UNLOCK();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       (this->*uiappimpl_onforegroundp)();
-}
-
-/*
-void _UiAppImpl::OnDeviceOrientationChanged(app_device_orientation_e orientation)
-{
-       typedef void (*methodType)(_UiAppImpl* th, app_device_orientation_e orientation);
-       static methodType uiappimpl_ondeviceorientationchangedp;
-
-       GET_REAL_FUNC_TIZEN(_ZThn4_N5Tizen3App10_UiAppImpl26OnDeviceOrientationChangedE24app_device_orientation_e,
-                       LIBOSP_UIFW, uiappimpl_ondeviceorientationchangedp);
-
-       probeBlockStart();
-       on_orientation_changed((int)orientation, false);
-       probeBlockEnd();
-
-       uiappimpl_ondeviceorientationchangedp(static_cast<_UiAppImpl*>(dynamic_cast<_IAppImpl*>(this)), orientation);
-}
-*/
-} }    // end of namespace
diff --git a/probe_tizenapi/tizen_socket.cpp b/probe_tizenapi/tizen_socket.cpp
deleted file mode 100644 (file)
index 2b65d6d..0000000
+++ /dev/null
@@ -1,1099 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (File::*c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Hyunjong Park        <phjwithyou.park@samsung.com>
- * Juyoung Kim          <j0.kim@samsung.com>
- * Vitaliy Cherepanov   <v.cherepanov@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <FBase.h>
-#include <FBaseObject.h>
-#include <FBaseResult.h>
-#include <arpa/inet.h>
-#include "daprobe.h"
-#include "probeinfo.h"
-#include "dahelper.h"
-#include "dacollection.h"
-#include "tizen_probe.h"
-#include "../probe_socket/da_socket.h"
-#include "binproto.h"
-#include "api_id_mapping.h"
-
-static enum DaOptions _sopt = OPT_NETWORK;
-
-namespace Tizen {
-namespace Net {
-
-typedef int NetAccountId;
-
-enum NetAddressFamily {
-
-       NET_AF_IPV4 = 1, /**< The default @n An IPv4 address [RFC791] is represented in decimal format with dots as delimiters. */
-       NET_AF_IPV6, /**< An IPv6 address [RFC2373] is generally represented in hexadecimal numbers with colons as delimiters @n It can also be a combination of hexadecimal and decimal numbers with dots and colons as delimiters. */
-       NET_AF_ALPHANUMERIC, /**< A generic alphanumeric address (as defined by alphanum in [RFC2396]) */
-       NET_AF_APN, /**< A GPRS APN as defined in [GENFORM] */
-       NET_AF_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Address Family not set
-};
-
-enum NetConnectionState {
-       NET_CONNECTION_STATE_NONE, /**< The initial state */
-       NET_CONNECTION_STATE_STARTING, /**< The network connection is being established */
-       NET_CONNECTION_STATE_STARTED, /**< The network connection has been established */
-       NET_CONNECTION_STATE_STOPPING, /**< The network connection is being disconnected */
-       NET_CONNECTION_STATE_STOPPED, /**< The network connection has been disconnected */
-       NET_CONNECTION_STATE_SUSPENDED, /**< The network connection has been suspended */
-       NET_CONNECTION_STATE_SUSPEND = 5, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_CONNECTION_STATE_RESUMED, /**< The network connection is established, and recovered from SUSPEND state - enable to send/receive packet data */
-       NET_CONNECTION_STATE_AVAILABLE, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_CONNECTION_STATE_UNAVAILABLE, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-enum NetBearerType {
-       NET_BEARER_PS = 1, /**< The bearer type for the PS domain */
-       NET_BEARER_CS, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-       NET_BEARER_WIFI, /**< The bearer type for Wi-Fi */
-       NET_BEARER_WIFI_DIRECT, /**< The bearer type for Wi-Fi Direct @n
-        *      This bearer type cannot be tested on the Emulator. */
-       NET_BEARER_USB, /**< The bearer type for USB NDIS mode @n
-        *      Can use this bearer type via USB Tethering mode. @n
-        *      This bearer type cannot be tested on the Emulator. */
-       NET_BEARER_MMS, /**< The bearer type for MMS */
-       NET_BEARER_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Bearer Type not set
-};
-
-enum NetAddressScheme {
-       NET_ADDRESS_SCHEME_DYNAMIC = 1, /**< The Dynamic IP or DNS Address */
-       NET_ADDRESS_SCHEME_STATIC, /**< The Static IP or DNS Address */
-       NET_ADDRESS_SCHEME_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Address Scheme not set
-};
-
-enum NetProtocolType {
-       NET_PROTO_TYPE_IPV4 = 1, /**< The IPV4 type */
-       NET_PROTO_TYPE_PPP, /**< The PPP type */
-       NET_PROTO_TYPE_IPV6, /**< The IPV6 type, currently NOT supported */
-       NET_PROTO_TYPE_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. Network Protocol type not set
-};
-
-class _IpAddressImpl;
-class IpAddress {
-public:
-       virtual ~IpAddress(void);
-       static unsigned short HostToNetworkOrder(unsigned short host);
-       static unsigned long HostToNetworkOrder(unsigned long host);
-       static unsigned short NetworkToHostOrder(unsigned short network);
-       static unsigned long NetworkToHostOrder(unsigned long network);
-       virtual NetAddressFamily GetNetAddressFamily(void) const = 0;
-       virtual result GetAddress(Tizen::Base::ByteBuffer& ipAddr) const = 0;
-       virtual Tizen::Base::String ToString(void) const = 0;
-       virtual IpAddress* CloneN(void) const = 0;
-protected:
-       IpAddress(void);
-protected:
-       virtual void IpAddress_Reserved1(void) {
-       }
-       virtual void IpAddress_Reserved2(void) {
-       }
-       virtual void IpAddress_Reserved3(void) {
-       }
-       virtual void IpAddress_Reserved4(void) {
-       }
-       virtual void IpAddress_Reserved5(void) {
-       }
-private:
-       IpAddress(const IpAddress& rhs);
-       IpAddress& operator =(const IpAddress& rhs);
-protected:
-       _IpAddressImpl* _pIpAddressImpl;
-       friend class _IpAddressImpl;
-};
-// IpAddress
-
-class Ip4Address {
-public:
-       Tizen::Base::String ToString(void) const;
-       //unsigned long GetAddress(unsigned long& ipAddr) const;
-       unsigned long GetAddress(uint32_t *ipAddr) const;
-};
-
-Tizen::Base::String Ip4Address::ToString(void) const {
-       typedef Tizen::Base::String (Ip4Address::*methodType)(void) const;
-       static methodType ToStringp;
-       CALL_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net10Ip4Address8ToStringEv, ToStringp);
-       return (this->*ToStringp)();
-}
-
-/* INFO this is not original Ip4Address function */
-unsigned long Ip4Address::GetAddress( uint32_t *ipAddr) const {
-       unsigned long IP, res;
-       typedef unsigned long (Ip4Address::*methodType)(unsigned long& ipAddr) const;
-       static methodType GetAddresgp;
-       CALL_ORIGINAL_TIZEN_NET(_ZNK5Tizen3Net10Ip4Address10GetAddressERm,
-                               GetAddresgp);
-       res = (this->*GetAddresgp)(IP);
-       *ipAddr = ntohl(IP);
-       return res;
-}
-
-class NetEndPoint {
-public:
-       unsigned short GetPort(void) const;
-       IpAddress* GetAddress(void) const;
-};
-
-unsigned short NetEndPoint::GetPort(void) const {
-       typedef unsigned short (NetEndPoint::*methodType)(void) const;
-       static methodType GetPortp;
-       CALL_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net11NetEndPoint7GetPortEv, GetPortp);
-       return (this->*GetPortp)();
-}
-
-IpAddress* NetEndPoint::GetAddress(void) const {
-       typedef IpAddress *(NetEndPoint::*methodType)(void) const;
-       static methodType GetAddressp;
-       CALL_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net11NetEndPoint10GetAddressEv,
-                       GetAddressp);
-       return (this->*GetAddressp)();
-}
-
-class NetConnectionInfo;
-class INetConnectionEventListener;
-
-class _NetConnectionImpl;
-class NetConnection {
-public:
-       NetConnection(void);
-       virtual ~NetConnection(void);
-       result Construct(NetAccountId netAccountId);
-public:
-       result AddNetConnectionListener(INetConnectionEventListener& listener);
-       result RemoveNetConnectionListener(INetConnectionEventListener& listener);
-       result Start(void);
-       result Stop(void);
-       result Close(void);
-       NetAccountId GetNetAccountId(void) const;
-       const NetConnectionInfo* GetNetConnectionInfo(void) const;
-       static NetConnectionInfo* GetNetConnectionInfoN(NetAccountId netAccountId);
-       static Tizen::Base::Collection::IList* GetAllNetConnectionInfoN(void);
-       NetConnectionState GetConnectionState(void) const;
-private:
-       NetConnection(const NetConnection& rhs);
-       NetConnection& operator =(const NetConnection& rhs);
-private:
-       _NetConnectionImpl* __pNetConnectionImpl;
-       friend class _NetConnectionImpl;
-};
-
-class INetConnectionEventListener {
-public:
-       virtual ~INetConnectionEventListener(void) {
-       }
-public:
-       virtual void OnNetConnectionStarted(NetConnection& netConnection,
-                       result r) = 0;
-       virtual void OnNetConnectionStopped(NetConnection& netConnection,
-                       result r) = 0;
-       virtual void OnNetConnectionSuspended(NetConnection& netConnection) = 0;
-       virtual void OnNetConnectionResumed(NetConnection& netConnection) = 0;
-protected:
-       virtual void INetConnectionEventListener_Reserved1(void) {
-       }
-       virtual void INetConnectionEventListener_Reserved2(void) {
-       }
-};
-
-class _NetConnectionInfoImpl;
-class NetConnectionInfo {
-public:
-       NetConnectionInfo(void);
-       virtual ~NetConnectionInfo(void);
-       NetBearerType GetBearerType(void) const;
-       NetProtocolType GetProtocolType(void) const;
-       Tizen::Base::String GetAccessPointName(void) const;
-       NetAddressScheme GetLocalAddressScheme(void) const;
-       const IpAddress* GetLocalAddress(void) const;
-       NetAddressScheme GetDnsAddressScheme(void) const;
-       const IpAddress* GetPrimaryDnsAddress(void) const;
-       const IpAddress* GetSecondaryDnsAddress(void) const;
-       const IpAddress* GetSubnetMaskAddress(void) const;
-       const IpAddress* GetDefaultGatewayAddress(void) const;
-       NetConnectionInfo(const NetConnectionInfo& rhs);
-       NetConnectionInfo& operator =(const NetConnectionInfo& rhs);
-       virtual bool Equals(const Tizen::Base::Object& rhs) const;
-       virtual int GetHashCode(void) const;
-private:
-       _NetConnectionInfoImpl* __pNetConnectionInfoImpl;
-       friend class _NetConnectionInfoImpl;
-};
-
-}
-} //namespace Tizen { namespace Net {
-
-namespace Tizen {
-namespace Net {
-namespace Sockets {
-
-enum NetSocketAddressFamily {
-       //NET_SOCKET_AF_LOCAL = 1,                            /*< The local socket for loopback*/
-       NET_SOCKET_AF_IPV4 = 2, /**< An IP version 4 address family */
-       //NET_SOCKET_AF_IPV6,                                           /*< An IP version 6 address family */
-       NET_SOCKET_AF_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-//
-enum NetSocketType {
-       NET_SOCKET_TYPE_STREAM = 1, /**< The stream socket */
-       NET_SOCKET_TYPE_DATAGRAM, /**< The datagram socket */
-       NET_SOCKET_TYPE_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-//
-enum NetSocketProtocol {
-       NET_SOCKET_PROTOCOL_TCP = 1, /**< The TCP protocol */
-       NET_SOCKET_PROTOCOL_UDP, /**< The UDP protocol */
-       NET_SOCKET_PROTOCOL_SSL, /**< The SSL protocol */
-       NET_SOCKET_PROTOCOL_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-
-enum NetSocketIoctlCmd {
-       NET_SOCKET_FIONBIO = 1, /**< The command to set the non-blocking/blocking mode on a socket */
-       NET_SOCKET_FIONREAD, /**< The command to determine the amount of data pending in the network input buffer */
-       NET_SOCKET_FIONWRITE, /**< The functionality is not supported in this SDK */
-       NET_SOCKET_SIOCATMARK, /**< The command to determine whether all out-of-band data is read */
-       NET_SOCKET_IOCTLCMD_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-
-enum NetSocketOptLevel {
-       NET_SOCKET_IPPROTO_TCP = 1, /**< The socket options apply only to the TCP sockets */
-       NET_SOCKET_IPPROTO_IP, /**< The socket options apply only to the IP sockets */
-       NET_SOCKET_SOL_SOCKET, /**< The socket options apply to all the sockets */
-       NET_SOCKET_OPTLEVEL_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-//
-enum NetSocketOptName {
-       NET_SOCKET_TCP_NODELAY = 1, /**< The option name is Level: NET_SOCKET_IPPROTO_TCP - Set/Get is possible */
-       NET_SOCKET_TCP_MAXSEG, /**< The option name is Level: NET_SOCKET_IPPROTO_TCP - Set/Get is possible */
-       NET_SOCKET_IP_TTL, /**< The option name is Level: NET_SOCKET_IPPROTO_IP - Set/Get is possible */
-       NET_SOCKET_IP_TOS, /**< The option name is Level: NET_SOCKET_IPPROTO_IP - Set/Get is possible */
-       NET_SOCKET_IP_ADD_MEMBERSHIP, /**< The option name is Level: NET_SOCKET_IPPROTO_IP - Only Set is possible */
-       NET_SOCKET_IP_DROP_MEMBERSHIP, /**< The option name is Level: NET_SOCKET_IPPROTO_IP - Only Set is possible */
-       NET_SOCKET_SO_ACCEPTCONN, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Get is possible */
-       NET_SOCKET_SO_BROADCAST, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_DEBUG, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible (Currently, not supported)
-       NET_SOCKET_SO_DONTROUTE, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_ERROR, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Get is possible */
-       NET_SOCKET_SO_KEEPALIVE, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_LINGER, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_OOBINLINE, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_RCVBUF, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_RCVLOWAT, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible (Currently, not supported)
-       NET_SOCKET_SO_RCVTIMEO, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_REUSEADDR, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_SNDBUF, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_SNDLOWAT, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application. The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible (Currently, not supported)
-       NET_SOCKET_SO_SNDTIMEO, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_TYPE, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Get is possible */
-
-       //Secure Socket only
-       NET_SOCKET_SO_SSLVERSION, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_SSLCIPHERSUITEID, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Set/Get is possible */
-       NET_SOCKET_SO_SSLCERTVERIFY, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Set is possible */
-       NET_SOCKET_SO_SSLCERTID, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Set is possible */
-       NET_SOCKET_SO_SSLCLIENTCERTVERIFY, /**< The option name is Level: NET_SOCKET_SOL_SOCKET - Only Set is possible */
-       NET_SOCKET_OPTNAME_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-
-enum NetSocketClosedReason {
-       NET_SOCKET_CLOSED_REASON_NORMAL = 1, /**< A normal closed status by peer */
-       NET_SOCKET_CLOSED_REASON_TIMEOUT, /**< The connection attempt failed due to timeout */
-       NET_SOCKET_CLOSED_REASON_NETWORK_UNAVAILABLE, /**< The network is unavailable */
-       NET_SOCKET_CLOSED_REASON_SYSTEM, /**< An internal error has occurred */
-       NET_SOCKET_CLOSED_REASON_NO_CERTIFICATE, /**< The reason is there is no client's SSL certificate */
-       NET_SOCKET_CLOSED_REASON_BY_USER, /**< The connection closed by user */
-       NET_SOCKET_CLOSED_REASON_NONE = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
-};
-
-class Socket;
-
-class _LingerOptionImpl;
-class LingerOption {
-public:
-       LingerOption(bool enable, int seconds);
-       virtual ~LingerOption(void);
-       LingerOption(const LingerOption& rhs);
-       LingerOption& operator =(const LingerOption& rhs);
-       virtual bool Equals(const Tizen::Base::Object& obj) const;
-       virtual int GetHashCode(void) const;
-public:
-       void SetEnabled(bool on);
-       void SetLingerTime(int seconds);
-       int GetLingerTime(void) const;
-       bool IsEnabled(void) const;
-private:
-       LingerOption(void);
-private:
-       _LingerOptionImpl* __pLingerOptionImpl;
-       friend class _LingerOptionImpl;
-};
-
-class _IpMulticastRequestOptionImpl;
-class IpMulticastRequestOption {
-public:
-       IpMulticastRequestOption(const NetEndPoint& multicastAddress,
-                       const NetEndPoint& interfaceAddress);
-       virtual ~IpMulticastRequestOption(void);
-       IpMulticastRequestOption(const IpMulticastRequestOption& rhs);
-       IpMulticastRequestOption& operator =(const IpMulticastRequestOption& rhs);
-public:
-       result SetMulticastEndPoint(NetEndPoint& multicastAddress);
-       result SetInterfaceEndPoint(NetEndPoint& interfaceAddress);
-       const NetEndPoint* GetMulticastEndPoint(void) const;
-       const NetEndPoint* GetInterfaceEndPoint(void) const;
-       virtual bool Equals(const Tizen::Base::Object& obj) const;
-       virtual int GetHashCode(void) const;
-private:
-       IpMulticastRequestOption(void);
-private:
-       _IpMulticastRequestOptionImpl* __pIpMulticastRequestOptionImpl;
-       friend class _IpMulticastRequestOptionImpl;
-};
-
-class ISocketEventListener {
-public:
-       virtual ~ISocketEventListener(void) {
-       }
-public:
-       virtual void OnSocketConnected(Socket& socket) = 0;
-       virtual void OnSocketClosed(Socket& socket,
-                       NetSocketClosedReason reason) = 0;
-       virtual void OnSocketReadyToReceive(Socket& socket) = 0;
-       virtual void OnSocketReadyToSend(Socket& socket) = 0;
-       virtual void OnSocketAccept(Socket& socket) = 0;
-protected:
-       virtual void ISocketEventListener_Reserved1(void) {
-       }
-       virtual void ISocketEventListener_Reserved2(void) {
-       }
-};
-
-class Socket {
-public:
-       result Construct(NetSocketAddressFamily addressFamily,
-                       NetSocketType socketType, NetSocketProtocol protocol);
-       result Construct(const NetConnection& netConnection,
-                       NetSocketAddressFamily addressFamily, NetSocketType socketType,
-                       NetSocketProtocol protocol);
-       result Bind(const Tizen::Net::NetEndPoint& localEndPoint);
-       result Listen(int backLog);
-       result Connect(const Tizen::Net::NetEndPoint& remoteEndPoint);
-       Socket* AcceptN(void) const;
-       result Receive(Tizen::Base::ByteBuffer& buffer) const;
-       result Receive(void* pBuffer, int length, int& rcvdLength) const;
-       result ReceiveFrom(Tizen::Base::ByteBuffer& buffer,
-                       Tizen::Net::NetEndPoint& remoteEndPoint) const;
-       result ReceiveFrom(void* pBuffer, int length,
-                       Tizen::Net::NetEndPoint& remoteEndPoint, int& rcvdLength) const;
-       result Send(Tizen::Base::ByteBuffer& buffer);
-       result Send(void* pBuffer, int length, int& sentLength);
-       result SendTo(Tizen::Base::ByteBuffer& buffer,
-                       const Tizen::Net::NetEndPoint& remoteEndPoint);
-       result SendTo(void* pBuffer, int length,
-                       const Tizen::Net::NetEndPoint& remoteEndPoint, int& sentLength);
-       result Close(void);
-
-       result SetSockOpt(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, int optionValue);
-       result SetSockOpt(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, const LingerOption& optionValue);
-       result SetSockOpt(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName,
-                       const IpMulticastRequestOption& optionValue);
-       result Ioctl(NetSocketIoctlCmd cmd, unsigned long& value) const;
-       result AddSocketListener(ISocketEventListener& listener);
-       result AsyncSelectByListener(unsigned long socketEventType);
-       result RemoveSocketListener(ISocketEventListener& listener);
-       result GetSockOpt(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, int& optionValue) const;
-       result GetSockOpt(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, LingerOption& optionValue) const;
-};
-
-result Socket::Construct(NetSocketAddressFamily addressFamily,
-               NetSocketType socketType, NetSocketProtocol protocol) {
-       typedef result (Socket::*methodType)(NetSocketAddressFamily addressFamily,
-                       NetSocketType socketType, NetSocketProtocol protocol);
-       static methodType Constructp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket9ConstructENS1_22NetSocketAddressFamilyENS1_13NetSocketTypeENS1_17NetSocketProtocolE,
-                       Constructp);
-
-       retVal = (this->*Constructp)(addressFamily, socketType, protocol);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Construct", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN, 
-                       info, "ddd", addressFamily, socketType, protocol);
-
-       return retVal;
-}
-
-result Socket::Construct(const NetConnection& netConnection,
-               NetSocketAddressFamily addressFamily, NetSocketType socketType,
-               NetSocketProtocol protocol) {
-       typedef result (Socket::*methodType)(const NetConnection& netConnection,
-                       NetSocketAddressFamily addressFamily, NetSocketType socketType,
-                       NetSocketProtocol protocol);
-       static methodType Constructp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket9ConstructERKNS0_13NetConnectionENS1_22NetSocketAddressFamilyENS1_13NetSocketTypeENS1_17NetSocketProtocolE,
-                       Constructp);
-
-       retVal = (this->*Constructp)(netConnection, addressFamily, socketType,
-                       protocol);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Construct", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_FD_OPEN, 
-                       info, "xddd",
-                       (uint64_t)(&netConnection), addressFamily, socketType, protocol);
-
-       return retVal;
-}
-
-Socket* Socket::AcceptN(void) const {
-       typedef Socket* (Socket::*methodType)(void) const;
-       static methodType AcceptNp;
-       Socket* pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZNK5Tizen3Net7Sockets6Socket7AcceptNEv,
-                       AcceptNp);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::AcceptN", VT_NULL, NULL,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_START, 
-                       info, "s", "void");
-
-       pret = (this->*AcceptNp)();
-       if (pret == NULL)
-               newerrno = 1;
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::AcceptN", VT_PTR, pret,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_ACCEPT_END, 
-                       info, "s", "void");
-
-       return pret;
-}
-
-result Socket::Connect(const Tizen::Net::NetEndPoint& remoteEndPoint) {
-       typedef result (Socket::*methodType)(
-                       const Tizen::Net::NetEndPoint& remoteEndPoint);
-       static methodType Connectp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket7ConnectERKNS0_11NetEndPointE,
-                       Connectp);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) remoteEndPoint.GetAddress();
-
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
-       info.host_port = remoteEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-       retVal = (this->*Connectp)(remoteEndPoint);
-
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Connect", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_CONNECT,
-                       info, "s", addressInfo);
-
-       return retVal;
-}
-
-result Socket::Close(void) {
-       typedef result (Socket::*methodType)(void);
-       static methodType Closep;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net7Sockets6Socket5CloseEv, Closep);
-
-       retVal = (this->*Closep)();
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Close", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_FD_CLOSE, 
-                       info, "s", "void");
-
-       return retVal;
-}
-
-result Socket::Bind(const Tizen::Net::NetEndPoint& localEndPoint) {
-       typedef result (Socket::*methodType)(
-                       const Tizen::Net::NetEndPoint& localEndPoint);
-       static methodType Bindp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket4BindERKNS0_11NetEndPointE, Bindp);
-
-       retVal = (this->*Bindp)(localEndPoint);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) localEndPoint.GetAddress();
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, localEndPoint.GetPort());
-       info.host_port = localEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Bind", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_BIND, 
-                       info, "s", addressInfo);
-       return retVal;
-}
-
-result Socket::Listen(int backLog) {
-       typedef result (Socket::*methodType)(int backLog);
-       static methodType Listenp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET( _ZN5Tizen3Net7Sockets6Socket6ListenEi, Listenp);
-
-       retVal = (this->*Listenp)(backLog);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Listen", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_LISTEN, 
-                       info, "d", backLog);
-
-       return retVal;
-}
-
-result Socket::Receive(Tizen::Base::ByteBuffer& buffer) const {
-       typedef result (Socket::*methodType)(Tizen::Base::ByteBuffer& buffer) const;
-       static methodType Receivep;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket7ReceiveERNS_4Base10ByteBufferE,
-                       Receivep);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Receive", VT_NULL, NULL,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START,
-                       info, "x", (uint64_t)(&buffer));
-
-       pret = (this->*Receivep)(buffer);
-
-       info.msg_total_size = buffer.GetLimit();
-       info.msg_pack_size = info.msg_total_size;
-       info.msg_buf = (char*)(buffer.GetPointer());
-
-       if (info.msg_pack_size > SOCKET_SEND_SIZE)
-               info.msg_pack_size = SOCKET_SEND_SIZE;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Receive", VT_ULONG, pret,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
-                       info, "x", (uint64_t)(&buffer));
-       return pret;
-}
-
-result Socket::Receive(void* pBuffer, int length, int& rcvdLength) const {
-       typedef result (Socket::*methodType)(void* pBuffer, int length,
-                       int& rcvdLength) const;
-       static methodType Receivep;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket11ReceiveFromEPviRNS0_11NetEndPointERi,
-                       Receivep);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Receive", VT_NULL,
-                                                 NULL,
-                                                 (unsigned int)this,
-                                                 (unsigned int)this,
-                                                 SOCKET_API_RECV_START,
-                                                 info, "xdx",
-                                                 (uint64_t)(&pBuffer),
-                                                 length,
-                                                 (uint64_t)(rcvdLength));
-
-       pret = (this->*Receivep)(pBuffer, length, rcvdLength);
-       info.msg_buf = (char *)pBuffer;
-       info.msg_total_size = rcvdLength;
-       info.msg_pack_size = rcvdLength > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : rcvdLength;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Receive", VT_ULONG,
-                                               pret,
-                                               (unsigned int)this,
-                                               (unsigned int)this,
-                                               SOCKET_API_RECV_END,
-                                               info, "xdx",
-                                               (uint64_t)(&pBuffer), length,
-                                               (uint64_t)(rcvdLength));
-
-       return pret;
-}
-
-result Socket::ReceiveFrom(Tizen::Base::ByteBuffer& buffer,
-               Tizen::Net::NetEndPoint& remoteEndPoint) const {
-       typedef result (Socket::*methodType)(Tizen::Base::ByteBuffer& buffer,
-                       Tizen::Net::NetEndPoint& remoteEndPoint) const;
-       static methodType ReceiveFromp;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket11ReceiveFromERNS_4Base10ByteBufferERNS0_11NetEndPointE,
-                       ReceiveFromp);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) remoteEndPoint.GetAddress();
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
-       info.host_port = remoteEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::ReceiveFrom", VT_NULL,
-                       NULL, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_START,
-                       
-                       info, "xs", (uint64_t)(&buffer), temp);
-
-       pret = (this->*ReceiveFromp)(buffer, remoteEndPoint);
-
-       int bufferSize = buffer.GetLimit();
-       char* pBuffer = (char*) (buffer.GetPointer());
-       Tizen::Base::String strData;
-       strData.SetCapacity(bufferSize);
-       strData.Append(pBuffer);
-       char* out = new char[bufferSize];
-       WcharToChar(out, strData.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_total_size = bufferSize;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::ReceiveFrom", VT_ULONG,
-                       pret, (unsigned int)this, (unsigned int)this, SOCKET_API_RECV_END,
-                       info, "xs", (uint64_t)(&buffer), temp);
-       delete [] out;
-       return pret;
-}
-result Socket::ReceiveFrom(void* pBuffer, int length,
-               Tizen::Net::NetEndPoint& remoteEndPoint, int& rcvdLength) const {
-       typedef result (Socket::*methodType)(void* pBuffer, int length,
-                       Tizen::Net::NetEndPoint& remoteEndPoint, int& rcvdLength) const;
-       static methodType ReceiveFromp;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket11ReceiveFromEPviRNS0_11NetEndPointERi,
-                       ReceiveFromp);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) remoteEndPoint.GetAddress();
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
-       info.host_port = remoteEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::ReceiveFrom",
-                                                 VT_NULL,
-                                                 NULL, (unsigned int)this,
-                                                 (unsigned int)this,
-                                                 SOCKET_API_RECV_START,
-                                                 info, "xdsx",
-                                                 (uint64_t)(&pBuffer),
-                                                 length, temp,
-                                                 (uint64_t)(rcvdLength));
-
-       pret = (this->*ReceiveFromp)(pBuffer, length, remoteEndPoint, rcvdLength);
-
-       info.msg_buf = (char *)pBuffer;
-       info.msg_total_size = length;
-       info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::ReceiveFrom", VT_ULONG,
-                                               pret, (unsigned int)this,
-                                               (unsigned int)this,
-                                               SOCKET_API_RECV_END,
-                                               info, "xdsx",
-                                               (uint64_t)(&pBuffer),
-                                               length, temp,
-                                               (uint64_t)(rcvdLength));
-
-       return pret;
-}
-
-result Socket::Send(Tizen::Base::ByteBuffer& buffer) {
-       typedef result (Socket::*methodType)(Tizen::Base::ByteBuffer& buffer);
-       static methodType Sendp;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket4SendERNS_4Base10ByteBufferE, Sendp);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Send", VT_NULL, NULL,
-                                                 (unsigned int)this,
-                                                 (unsigned int)this,
-                                                 SOCKET_API_SEND_START,
-                                                 info, "x",
-                                                 (uint64_t)(&buffer));
-
-       pret = (this->*Sendp)(buffer);
-       int bufferSize = buffer.GetLimit();
-       char* pBuffer = (char*) (buffer.GetPointer());
-       Tizen::Base::String strData;
-       strData.SetCapacity(bufferSize);
-       strData.Append(pBuffer);
-       char* out = new char[bufferSize];
-       WcharToChar(out, strData.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_total_size = bufferSize;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Send", VT_ULONG, pret,
-                                               (unsigned int)this,
-                                               (unsigned int)this,
-                                               SOCKET_API_SEND_END,
-                                               info, "x",
-                                               (uint64_t)(&buffer));
-       delete [] out;
-       return pret;
-}
-
-result Socket::Send(void* pBuffer, int length, int& sentLength) {
-       typedef result (Socket::*methodType)(void* pBuffer, int length,
-                       int& sentLength);
-       static methodType Sendp;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZZN5Tizen3Net7Sockets6Socket4SendEPviRiE19__PRETTY_FUNCTION__,
-                       Sendp);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::Send", VT_NULL, NULL,
-                                                 (unsigned int)this,
-                                                 (unsigned int)this,
-                                                 SOCKET_API_SEND_START,
-                                                 info, "xdx",
-                                                 (uint64_t)(&pBuffer),
-                                                 length,
-                                                 (uint64_t)(&sentLength));
-
-       pret = (this->*Sendp)(pBuffer, length, sentLength);
-
-       info.msg_buf = (char *)pBuffer;
-       info.msg_total_size = length;
-       info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::Send", VT_ULONG, pret,
-                                               (unsigned int)this,
-                                               (unsigned int)this,
-                                               SOCKET_API_SEND_END,
-                                               info, "xdx",
-                                               (uint64_t)(&pBuffer), length,
-                                               (uint64_t)(&sentLength));
-
-       return pret;
-
-}
-
-result Socket::SendTo(Tizen::Base::ByteBuffer& buffer,
-               const Tizen::Net::NetEndPoint& remoteEndPoint) {
-       typedef result (Socket::*methodType)(Tizen::Base::ByteBuffer& buffer,
-                       const Tizen::Net::NetEndPoint& remoteEndPoint);
-       static methodType SendTop;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket6SendToERNS_4Base10ByteBufferERKNS0_11NetEndPointE,
-                       SendTop);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) remoteEndPoint.GetAddress();
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
-       info.host_port = remoteEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::SendTo", VT_NULL, NULL,
-                                                 (unsigned int)this,
-                                                 (unsigned int)this,
-                                                 SOCKET_API_SEND_START, 
-                                                 info, "xs",
-                                                 (uint64_t)(&buffer),
-                                                 temp);
-
-       pret = (this->*SendTop)(buffer, remoteEndPoint);
-
-       int bufferSize = buffer.GetLimit();
-       char* pBuffer = (char*) (buffer.GetPointer());
-       Tizen::Base::String strData;
-       strData.SetCapacity(bufferSize);
-       strData.Append(pBuffer);
-       char* out = new char[bufferSize];
-       WcharToChar(out, strData.GetPointer());
-
-       info.msg_buf = out;
-       info.msg_total_size = bufferSize;
-       info.msg_pack_size = bufferSize > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : bufferSize;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::SendTo", VT_ULONG, pret,
-                                               (unsigned int)this,
-                                               (unsigned int)this,
-                                               SOCKET_API_SEND_END,
-                                               info, "xs",
-                                               (uint64_t)(&buffer),
-                                               temp);
-       delete [] out;
-       return pret;
-}
-
-result Socket::SendTo(void* pBuffer, int length,
-               const Tizen::Net::NetEndPoint& remoteEndPoint, int& sentLength) {
-       typedef result (Socket::*methodType)(void* pBuffer, int length,
-                       const Tizen::Net::NetEndPoint& remoteEndPoint, int& sentLength);
-       static methodType SendTop;
-       result pret;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket6SendToEPviRKNS0_11NetEndPointERi,
-                       SendTop);
-
-       Ip4Address* iv4PeerAddr = (Ip4Address*) remoteEndPoint.GetAddress();
-       char temp[64];
-       WcharToChar(temp, iv4PeerAddr->ToString().GetPointer());
-       char addressInfo[64];
-       sprintf(addressInfo, "%s:%d", temp, remoteEndPoint.GetPort());
-       info.host_port = remoteEndPoint.GetPort();
-       iv4PeerAddr->GetAddress(&info.host_ip);
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_START("Socket::SendTo", VT_NULL, NULL,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_START, 
-                       info, "xdsx,",
-                       (unsigned int)&pBuffer, length, temp, (unsigned int)&sentLength);
-
-       pret = (this->*SendTop)(pBuffer, length, remoteEndPoint, sentLength);
-
-       info.msg_buf = (char *)pBuffer;
-       info.msg_total_size = length;
-       info.msg_pack_size = length > SOCKET_SEND_SIZE ? SOCKET_SEND_SIZE : length;
-
-       AFTER_ORIGINAL_TIZEN_SOCK_WAIT_FUNC_END("Socket::SendTo", VT_ULONG, pret,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_SEND_END,
-                       info, "xdsx,", (unsigned int)&pBuffer, length, temp,
-                       (unsigned int)&sentLength);
-
-       return pret;
-
-}
-
-//Option
-result Socket::AddSocketListener(ISocketEventListener& listener) {
-       typedef result (Socket::*methodType)(ISocketEventListener& listener);
-       static methodType AddSocketListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket17AddSocketListenerERNS1_20ISocketEventListenerE,
-                       AddSocketListenerp);
-
-       retVal = (this->*AddSocketListenerp)(listener);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::AddSocketListener", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
-                       "x", (unsigned int) &listener);
-
-       return retVal;
-}
-
-result Socket::AsyncSelectByListener(unsigned long socketEventType) {
-       typedef result (Socket::*methodType)(unsigned long socketEventType);
-       static methodType AsyncSelectByListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket21AsyncSelectByListenerEm,
-                       AsyncSelectByListenerp);
-
-       retVal = (this->*AsyncSelectByListenerp)(socketEventType);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::AsyncSelectByListener", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
-                       "x", socketEventType);
-
-       return retVal;
-}
-
-result Socket::Ioctl(NetSocketIoctlCmd cmd, unsigned long& value) const {
-       typedef result (Socket::*methodType)(NetSocketIoctlCmd cmd,
-                       unsigned long& value) const;
-       static methodType Ioctlp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket5IoctlENS1_17NetSocketIoctlCmdERm,
-                       Ioctlp);
-
-       retVal = (this->*Ioctlp)(cmd, value);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::Ioctl", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 SOCKET_API_OTHER, info,
-                                 "dx", cmd, (uint64_t)(&value));
-
-       return retVal;
-}
-
-result Socket::SetSockOpt(NetSocketOptLevel optionLevel,
-               NetSocketOptName optionName, int optionValue) {
-       typedef result (Socket::*methodType)(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, int optionValue);
-       static methodType SetSockOptp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket10SetSockOptENS1_17NetSocketOptLevelENS1_16NetSocketOptNameEi,
-                       SetSockOptp);
-
-       retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
-                       "ddd", optionLevel, optionName, optionValue);
-
-       return retVal;
-}
-result Socket::SetSockOpt(NetSocketOptLevel optionLevel,
-               NetSocketOptName optionName, const LingerOption& optionValue) {
-       typedef result (Socket::*methodType)(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, const LingerOption& optionValue);
-       static methodType SetSockOptp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket10SetSockOptENS1_17NetSocketOptLevelENS1_16NetSocketOptNameERKNS1_12LingerOptionE,
-                       SetSockOptp);
-
-       retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 SOCKET_API_OTHER, info,
-                                 "ddx", optionLevel, optionName,
-                                 (uint64_t)(&optionValue));
-
-       return retVal;
-}
-result Socket::SetSockOpt(NetSocketOptLevel optionLevel,
-               NetSocketOptName optionName,
-               const IpMulticastRequestOption& optionValue) {
-       typedef result (Socket::*methodType)(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName,
-                       const IpMulticastRequestOption& optionValue);
-       static methodType SetSockOptp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket10SetSockOptENS1_17NetSocketOptLevelENS1_16NetSocketOptNameERKNS1_12LingerOptionE,
-                       SetSockOptp);
-
-       retVal = (this->*SetSockOptp)(optionLevel, optionName, optionValue);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::SetSockOpt", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 SOCKET_API_OTHER, info,
-                                 "ddx", optionLevel, optionName,
-                                 (uint64_t)(&optionValue));
-
-       return retVal;
-}
-
-result Socket::GetSockOpt(NetSocketOptLevel optionLevel,
-               NetSocketOptName optionName, int& optionValue) const {
-       typedef result (Socket::*methodType)(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, int& optionValue) const;
-       static methodType GetSockOptp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket10GetSockOptENS1_17NetSocketOptLevelENS1_16NetSocketOptNameERi,
-                       GetSockOptp);
-
-       retVal = (this->*GetSockOptp)(optionLevel, optionName, optionValue);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::GetSockOpt", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 SOCKET_API_OTHER, info,
-                                 "ddx", optionLevel, optionName,
-                                 (uint64_t)(&optionValue));
-
-       return retVal;
-}
-
-result Socket::GetSockOpt(NetSocketOptLevel optionLevel,
-               NetSocketOptName optionName, LingerOption& optionValue) const {
-       typedef result (Socket::*methodType)(NetSocketOptLevel optionLevel,
-                       NetSocketOptName optionName, LingerOption& optionValue) const;
-       static methodType GetSockOptp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZNK5Tizen3Net7Sockets6Socket10GetSockOptENS1_17NetSocketOptLevelENS1_16NetSocketOptNameERNS1_12LingerOptionE,
-                       GetSockOptp);
-
-       retVal = (this->*GetSockOptp)(optionLevel, optionName, optionValue);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::GetSockOpt", VT_ULONG, retVal,
-                                 (unsigned int)this, (unsigned int)this,
-                                 SOCKET_API_OTHER, info,
-                                 "ddx", optionLevel, optionName,
-                                 (uint64_t)(&optionValue));
-
-       return retVal;
-}
-
-result Socket::RemoveSocketListener(ISocketEventListener& listener) {
-       typedef result (Socket::*methodType)(ISocketEventListener& listener);
-       static methodType RemoveSocketListenerp;
-       result retVal;
-
-       BEFORE_ORIGINAL_TIZEN_NET(
-                       _ZN5Tizen3Net7Sockets6Socket20RemoveSocketListenerERNS1_20ISocketEventListenerE,
-                       RemoveSocketListenerp);
-
-       retVal = (this->*RemoveSocketListenerp)(listener);
-
-       AFTER_ORIGINAL_TIZEN_SOCK("Socket::RemoveSocketListener", VT_ULONG, retVal,
-                       (unsigned int)this, (unsigned int)this, SOCKET_API_OTHER, info,
-                       "x", (uint64_t)(&listener));
-
-       return retVal;
-}
-
-}
-}
-} //namespace Tizen {namespace Net {namespace Sockets {
-
diff --git a/probe_tizenapi/tizen_sync.cpp b/probe_tizenapi/tizen_sync.cpp
deleted file mode 100755 (executable)
index a6cd977..0000000
+++ /dev/null
@@ -1,945 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Woojin Jung <woojin2.jung@samsung.com>
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <FBase.h>
-#include <string.h>
-#include "daprobe.h"
-#include "probeinfo.h"
-#include "dahelper.h"
-
-#include "binproto.h"
-
-static enum DaOptions _sopt = OPT_THREAD;
-
-namespace Tizen {
-namespace Base {
-namespace Runtime {
-
-result Mutex::Create(void) {
-       typedef result
-               (Mutex::*methodType)(void);
-       static methodType Createp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Createp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime5Mutex6CreateEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Mutex::Create");
-                       exit(0);
-               }
-
-               memcpy(&Createp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Createp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__Create_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_NEW);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Mutex::Create(const Tizen::Base::String& name) {
-       typedef result
-               (Mutex::*methodType)(const Tizen::Base::String& name);
-       static methodType Createp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Createp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime5Mutex6CreateERKNS0_6StringE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Mutex::Create");
-                       exit(0);
-               }
-
-               memcpy(&Createp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Createp)(name);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, name.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__Create_const_Tizen__Base__String__name_,
-                                 "s", temp);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_NEW);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Mutex::Release(void) {
-       typedef result
-               (Mutex::*methodType)(void);
-       static methodType Releasep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Releasep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime5Mutex7ReleaseEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Mutex::Release");
-                       exit(0);
-               }
-
-               memcpy(&Releasep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Releasep)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__Release_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_RELEASE);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Mutex::Acquire(void) {
-       typedef result
-               (Mutex::*methodType)(void);
-       static methodType Acquirep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Acquirep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime5Mutex7AcquireEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Mutex::Acquire");
-                       exit(0);
-               }
-
-               memcpy(&Acquirep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__Acquire_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_ACQUIRE_WAIT_START);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Acquirep)();
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__Acquire_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_ACQUIRE_WAIT_END);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Mutex::TryToAcquire(void) {
-       typedef result
-               (Mutex::*methodType)(void);
-       static methodType TryToAcquirep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!TryToAcquirep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime5Mutex12TryToAcquireEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Mutex::TryToAcquire");
-                       exit(0);
-               }
-
-               memcpy(&TryToAcquirep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*TryToAcquirep)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Mutex__TryToAcquire_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MUTEX, SYNC_API_TRY_ACQUIRE);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-
-result Semaphore::Create(int count) {
-       typedef result
-               (Semaphore::*methodType)(int count);
-       static methodType Createp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Createp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime9Semaphore6CreateEi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Semaphore::Create");
-                       exit(0);
-               }
-
-               memcpy(&Createp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Createp)(count);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__Create_int_count_,
-                                 "d", count);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_NEW);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Semaphore::Create(const Tizen::Base::String& name, int count) {
-       typedef result
-               (Semaphore::*methodType)(const Tizen::Base::String& name, int count);
-       static methodType Createp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Createp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime9Semaphore6CreateERKNS0_6StringEi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Semaphore::Create");
-                       exit(0);
-               }
-
-               memcpy(&Createp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Createp)(name, count);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, name.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__Create_const_Tizen__Base__String__name__int_count_,
-                                 "sd", temp, count);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_NEW);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-
-}
-
-result Semaphore::Acquire(long timeout) {
-       typedef result
-               (Semaphore::*methodType)(long timeout);
-       static methodType Acquirep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Acquirep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime9Semaphore7AcquireEl");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Semaphore::Acquire");
-                       exit(0);
-               }
-
-               memcpy(&Acquirep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__Acquire_long_timeout_,
-                                 "x", (uint64_t)(timeout));
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_START);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Acquirep)(timeout);
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__Acquire_long_timeout_,
-                                 "x", (uint64_t)(timeout));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_ACQUIRE_WAIT_END);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Semaphore::TryToAcquire(void) {
-       typedef result
-               (Semaphore::*methodType)(void);
-       static methodType TryToAcquirep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!TryToAcquirep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime9Semaphore12TryToAcquireEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Semaphore::TryToAcquire");
-                       exit(0);
-               }
-
-               memcpy(&TryToAcquirep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*TryToAcquirep)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__TryToAcquire_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_TRY_ACQUIRE);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Semaphore::Release(void) {
-       typedef result
-               (Semaphore::*methodType)(void);
-       static methodType Releasep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Releasep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime9Semaphore7ReleaseEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Semaphore::Release");
-                       exit(0);
-               }
-
-               memcpy(&Releasep, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Releasep)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Semaphore__Release_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_SEMAPHORE, SYNC_API_RELEASE);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-
-result Monitor::Construct(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor9ConstructEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Construct_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_NEW);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Monitor::Enter(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType Enterp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Enterp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor5EnterEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::Enter");
-                       exit(0);
-               }
-
-               memcpy(&Enterp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Enter_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_ACQUIRE_WAIT_START);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Enterp)();
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Enter_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_ACQUIRE_WAIT_END);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Monitor::Exit(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType Exitp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Exitp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor4ExitEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::Exit");
-                       exit(0);
-               }
-
-               memcpy(&Exitp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Exitp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                  API_ID_result_Monitor__Exit_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_RELEASE);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Monitor::Wait(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType Waitp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Waitp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor4WaitEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::Wait");
-                       exit(0);
-               }
-
-               memcpy(&Waitp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Wait_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_COND_WAIT_START);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Waitp)();
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Wait_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_COND_WAIT_END);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Monitor::Notify(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType Notifyp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Notifyp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor6NotifyEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::Notify");
-                       exit(0);
-               }
-
-               memcpy(&Notifyp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Notifyp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__Notify_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_NOTIFY);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Monitor::NotifyAll(void) {
-       typedef result
-               (Monitor::*methodType)(void);
-       static methodType NotifyAllp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!NotifyAllp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime7Monitor9NotifyAllEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Monitor::NotifyAll");
-                       exit(0);
-               }
-
-               memcpy(&NotifyAllp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*NotifyAllp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_SYNC,
-                                 API_ID_result_Monitor__NotifyAll_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_SYNC((unsigned int) this, SYNC_TIZEN_MONITOR, SYNC_API_NOTIFY_ALL);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-}
-}
-}
diff --git a/probe_tizenapi/tizen_thread.cpp b/probe_tizenapi/tizen_thread.cpp
deleted file mode 100755 (executable)
index 10c9e62..0000000
+++ /dev/null
@@ -1,1524 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (Thread::*c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Woojin Jung <woojin2.jung@samsung.com>
- * Yeongtaik Byeon <yeongtaik.byeon@samsung.com>
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <typeinfo>
-#include <cxxabi.h>
-#include <FBase.h>
-#include "daprobe.h"
-#include "probeinfo.h"
-#include "dahelper.h"
-
-#include "binproto.h"
-
-static enum DaOptions _sopt = OPT_THREAD;
-
-namespace Tizen {
-namespace Base {
-namespace Runtime {
-
-class _ThreadImpl {
-//public:
-//     virtual result Stop(void);
-protected:
-//     virtual result Finalize(void);
-       const Thread* GetThread(void) const;
-private:
-       static void* ThreadProc(void* pParam);
-//protected:
-//     Thread* _pThread;
-};
-//const Thread*
-//_ThreadImpl::GetThread(void) const
-//{
-//     typedef const Thread*
-//     (_ThreadImpl::*methodType)(void) const;
-//     static methodType GetThreadp = 0;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = false;
-//     void *tmpPtr;
-//
-//     if (!GetThreadp) {
-//             probeBlockStart();
-//             void* lib_handle = dlopen("libosp-appfw.so", RTLD_LAZY);
-//             if (lib_handle == NULL) {
-//                     perror("dlopen failed : libosp-appfw.so");
-//                     exit(0);
-//             }
-//             tmpPtr = dlsym(lib_handle, "_ZNK5Tizen4Base7Runtime11_ThreadImpl9GetThreadEv");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     perror("dlsym failed : Tizen::Base::Runtime::_ThreadImpl::GetThreadp");
-//                     exit(0);
-//             }
-//
-//             memcpy(&GetThreadp, &tmpPtr, sizeof(tmpPtr));
-//
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-//     //
-//     const Thread* ret = (this->*GetThreadp)();
-//     result res = GetLastResult();
-//     //
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "_ThreadImpl::GetThread", probeInfo.currentTime,
-//                             probeInfo.pID, probeInfo.tID);
-//
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,0x%x",ret);
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,%ld`,%d`,0`,%u`,0x%x`,%d`,%d`,`,", res,blockresult,
-//                             (unsigned int)CALLER_ADDRESS, (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//     return ret;
-//}
-
-void*
-_ThreadImpl::ThreadProc(void* params) {
-       typedef void*
-       (*methodType)(void*);
-       static methodType ThreadProcp = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = false;
-       void *tmpPtr;
-       void *ret;
-
-       if (!ThreadProcp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime11_ThreadImpl10ThreadProcEPv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::_ThreadImpl::ThreadProc");
-                       exit(0);
-               }
-
-               memcpy(&ThreadProcp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               _ThreadImpl* pSelf =(_ThreadImpl*)params;
-               const Thread* pThread = NULL;
-               if(pSelf != null){
-                       pThread = pSelf->GetThread();
-               }
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_void___ThreadImpl__ThreadProc_void__params_,
-                                 "p", voidp_to_uint64(params));
-               PACK_COMMON_END('p', 0, 0, blockresult);
-               PACK_THREAD((unsigned int)pThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_INTERNAL_START, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-               probingEnd();
-       }
-       // all probe should be reachable inside thread start_routine (user implemented Thread::Run)
-       ret = (ThreadProcp)(params);
-       //
-       if (postBlockBegin(blockresult)) {
-               probingStart();
-               setProbePoint(&probeInfo);
-
-               _ThreadImpl* pSelf =(_ThreadImpl*)params;
-               const Thread* pThread = NULL;
-               if(pSelf != null){
-                       pThread = pSelf->GetThread();
-               }
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_void___ThreadImpl__ThreadProc_void__params_,
-                                 "p", voidp_to_uint64(params));
-               PACK_COMMON_END('p', ret, 0, blockresult);
-               PACK_THREAD((unsigned int)pThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_INTERNAL_STOP, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return null;
-}
-//result _ThreadImpl::Stop(void) {
-//     typedef result
-//     (_ThreadImpl::*methodType)(void);
-//     static methodType Stopp = 0;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = true;
-//     void *tmpPtr;
-//
-//     if (!Stopp) {
-//             probeBlockStart();
-//             void* lib_handle = dlopen("libosp-appfw.so", RTLD_LAZY);
-//             if (lib_handle == NULL) {
-//                     perror("dlopen failed : libosp-appfw.so");
-//                     exit(0);
-//             }
-//             tmpPtr = dlsym(lib_handle, "_ZN5Tizen4Base7Runtime11_ThreadImpl4StopEv");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     perror("dlsym failed : Tizen::Base::Runtime::_ThreadImpl::Stopp");
-//                     exit(0);
-//             }
-//
-//             memcpy(&Stopp, &tmpPtr, sizeof(tmpPtr));
-//
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-//     //
-//     result ret= (this->*Stopp)();
-//     //
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "_ThreadImpl::Stop", probeInfo.currentTime,
-//                             probeInfo.pID, probeInfo.tID);
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,%ld`,%d`,0`,%u`,0x%x`,%d`,%d`,`,", ret, blockresult,
-//                             (unsigned int)CALLER_ADDRESS, (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_CLOSE);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//     return ret;
-//}
-//
-//result _ThreadImpl::Finalize(void) {
-//     typedef result
-//     (_ThreadImpl::*methodType)(void);
-//     static methodType Finalizep = 0;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = false;
-//     void *tmpPtr;
-//
-//     if (!Finalizep) {
-//             probeBlockStart();
-//             void* lib_handle = dlopen("libosp-appfw.so", RTLD_LAZY);
-//             if (lib_handle == NULL) {
-//                     perror("dlopen failed : libosp-appfw.so");
-//                     exit(0);
-//             }
-//             tmpPtr = dlsym(lib_handle, "_ZN5Tizen4Base7Runtime11_ThreadImpl8FinalizeEv");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     perror("dlsym failed : Tizen::Base::Runtime::_ThreadImpl::Finalizep");
-//                     exit(0);
-//             }
-//
-//             memcpy(&Finalizep, &tmpPtr, sizeof(tmpPtr));
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-//     //
-//     result ret= (this->*Finalizep)();
-//     //
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "_ThreadImpl::Finalize", probeInfo.currentTime,
-//                             probeInfo.pID, probeInfo.tID);
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,%ld", ret);
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,%ld`,%d`,0`,%u`,0x%x`,%d`,%d`,`,", ret, blockresult,
-//                             (unsigned int)CALLER_ADDRESS, (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_CLOSE);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//     return ret;
-//}
-//Thread::Thread(void) {
-//     typedef void (Thread::*methodType)();
-//     static methodType Threadp = 0;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = true;
-//     void *tmpPtr;
-//
-//     if (!Threadp) {
-//             probeBlockStart();
-//
-//             tmpPtr = dlsym(RTLD_NEXT, "_ZN5Tizen4Base7Runtime6ThreadC1Ev");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     log.type = 0;
-//                                                                                     log.length = 0;
-//                                                                                     log.data[0] = '\0';
-//                                                                                     log.length = sprintf(log.data,"dlsym failed : Tizen::Base::Runtime::Thread::Thread");
-//                     perror("dlsym failed : Tizen::Base::Runtime::Thread::Thread");
-//                     printLog(&log, MSG_MSG);
-//                     return;
-//             }
-//
-//             memcpy(&Threadp, &tmpPtr, sizeof(tmpPtr));
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-////
-//     (this->*Threadp)();
-////
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "Thread::Thread", probeInfo.currentTime,
-//                             probeInfo.pID, probeInfo.tID);
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,");
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,0`,%d`,0`,0x%x`,%d`,%d`,`,", blockresult,
-//                             (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_OPEN);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//}
-//
-//Thread::~Thread(void) {
-//     typedef void (Thread::*methodType)();
-//     static methodType ThreadDp = 0;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = true;
-//     void *tmpPtr;
-//
-//     if (!ThreadDp) {
-//             probeBlockStart();
-//
-//             void* lib_handle = dlopen("libosp-appfw.so", RTLD_LAZY);
-//             if (lib_handle == NULL) {
-//                     perror("dlopen failed : libosp-appfw.so");
-//                     exit(0);
-//             }
-//             tmpPtr = dlsym(lib_handle, "_ZN5Tizen4Base7Runtime6ThreadD0Ev");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     perror("dlsym failed : Tizen::Base::Runtime::Thread::~Thread");
-//                     exit(0);
-//             }
-//
-//             memcpy(&ThreadDp, &tmpPtr, sizeof(tmpPtr));
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-////
-//     (this->*ThreadDp)();
-////
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "Thread::~Thread", probeInfo.currentTime,
-//                             probeInfo.pID, probeInfo.tID);
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,");
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,0`,%d`,0`,0x%x`,%d`,%d`,`,", blockresult,
-//                             (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_CLOSE);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//}
-result Thread::Sleep(long milliSeconds) {
-       typedef result
-       (*methodType)(long);
-       static methodType Sleepp = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Sleepp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread5SleepEl");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Sleep");
-                       exit(0);
-               }
-
-               memcpy(&Sleepp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               Thread *currentThread;
-               currentThread = GetCurrentThread();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Sleep_long_milliSeconds_,
-                                 "x", (uint64_t)(milliSeconds));
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_THREAD((unsigned int)currentThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_WAIT_START, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       result ret = (Sleepp)(milliSeconds);
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               Thread *currentThread;
-               currentThread = GetCurrentThread();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Yield_void_,
-                                 "x", (uint64_t)(milliSeconds));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int)currentThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_WAIT_END, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-Thread* Thread::GetCurrentThread(void) {
-       typedef Thread*
-               (*methodType)(void);
-       static methodType GetCurrentThreadp = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!GetCurrentThreadp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread16GetCurrentThreadEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::GetCurrentThread");
-                       exit(0);
-               }
-
-               memcpy(&GetCurrentThreadp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       Thread *currentThread = (GetCurrentThreadp)();
-       result res = GetLastResult();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_Thread__Thread__GetCurrentThread_void_,
-                                 "", 0);
-               PACK_COMMON_END('p', voidp_to_uint64(currentThread),
-                               res, blockresult);
-               PACK_THREAD((unsigned int)currentThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return currentThread;
-}
-
-result Thread::Yield(void) {
-       typedef result
-               (*methodType)(void);
-       static methodType Yieldp = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Yieldp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread5YieldEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Yield");
-                       exit(0);
-               }
-
-               memcpy(&Yieldp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       result ret = (Yieldp)();
-       //
-       if (postBlockBegin(blockresult)) {
-               Thread *currentThread;
-               currentThread = GetCurrentThread();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Yield_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int)currentThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Thread::Exit(int exitCode) {
-       typedef result
-               (*methodType)(int exitCode);
-       static methodType Exitp = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Exitp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread4ExitEi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Exit");
-                       exit(0);
-               }
-
-               memcpy(&Exitp, &tmpPtr, sizeof(tmpPtr));
-
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               Thread *currentThread;
-               currentThread = GetCurrentThread();
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Exit_int_exitCode_,
-                                 "d", exitCode);
-               PACK_COMMON_END('n', 0, 0, blockresult);
-               PACK_THREAD((unsigned int)currentThread, THREAD_TIZENTHREAD_WORKER, THREAD_API_EXIT, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       result ret = (Exitp)(exitCode);
-       //
-       return ret;
-}
-
-result Thread::Construct(ThreadType threadType, long stackSize,
-               ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(ThreadType threadType, long stackSize,
-                       ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime6Thread9ConstructENS1_10ThreadTypeElNS1_14ThreadPriorityE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(threadType, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_ThreadType_threadType__long_stackSize__ThreadPriority_priority_,
-                                 "dxd", threadType, (uint64_t)(stackSize),
-                                 priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Construct(long stackSize, ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(long stackSize, ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW],
-                               "_ZN5Tizen4Base7Runtime6Thread9ConstructElNS1_14ThreadPriorityE");
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_long_stackSize__ThreadPriority_priority_,
-                                 "xd", (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Construct(const Tizen::Base::String &name, long stackSize,
-               ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(const Tizen::Base::String &name, long stackSize,
-                       ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime6Thread9ConstructERKNS0_6StringElNS1_14ThreadPriorityE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(name, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_,
-                                 "sxd", temp, (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Construct(const Tizen::Base::String &name, ThreadType threadType,
-               long stackSize, ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(const Tizen::Base::String &name, ThreadType threadType,
-                       long stackSize, ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime6Thread9ConstructERKNS0_6StringENS1_10ThreadTypeElNS1_14ThreadPriorityE");
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(name, threadType, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, name.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__ThreadType_threadType__long_stackSize__ThreadPriority_priority_,
-                                 "sdxd", temp, threadType,
-                                 (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Construct(IRunnable &target, long stackSize,
-               ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(IRunnable &target, long stackSize,
-                       ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime6Thread9ConstructERNS1_9IRunnableElNS1_14ThreadPriorityE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(target, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_IRunnable__target__long_stackSize__ThreadPriority_priority_,
-                                 "xxd", (uint64_t)(&target),
-                                 (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Construct(const Tizen::Base::String &name, IRunnable &target,
-               long stackSize, ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(const Tizen::Base::String &name, IRunnable &target,
-                       long stackSize, ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime6Thread9ConstructERKNS0_6StringERNS1_9IRunnableElNS1_14ThreadPriorityE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(name, target, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, name.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Construct_const_Tizen__Base__String__name__IRunnable__target__long_stackSize__ThreadPriority_priority_,
-                                 "sxxd", temp, (uint64_t)(&target),
-                                 (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Thread::GetExitCode(int &exitCode) const {
-       typedef result
-       (Thread::*methodType)(int &exitCode) const;
-       static methodType GetExitCodep = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-//     int exitOld = exitCode;
-
-       if (!GetExitCodep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW],
-                               "_ZNK5Tizen4Base7Runtime6Thread11GetExitCodeERi");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::GetExitCode");
-                       exit(0);
-               }
-
-               memcpy(&GetExitCodep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*GetExitCodep)(exitCode);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__GetExitCode_int__exitCode__const,
-                                 "d", exitCode);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-const Tizen::Base::String & Thread::GetName(void) const {
-       typedef const Tizen::Base::String &
-       (Thread::*methodType)(void) const;
-       static methodType GetNamep = 0;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!GetNamep) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZNK5Tizen4Base7Runtime6Thread7GetNameEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::GetName");
-                       exit(0);
-               }
-
-               memcpy(&GetNamep, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       const Tizen::Base::String& ret = (this->*GetNamep)();
-       result res = GetLastResult();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, ret.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_const_Tizen__Base__String___Thread__GetName_void__const,
-                                 "", 0);
-               PACK_COMMON_END('p', ret.GetPointer(), res, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result Thread::Join(void) {
-       typedef result
-       (Thread::*methodType)(void);
-       static methodType Joinp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Joinp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread4JoinEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Join");
-                       exit(0);
-               }
-
-               memcpy(&Joinp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Join_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', 0, 0, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_WAIT_START, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Joinp)();
-       //
-       if (postBlockBegin(blockresult)) {
-               setProbePoint(&probeInfo);
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Join_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_WAIT_END, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-//Tizen::Base::Object * Thread::Run(void) {
-//     typedef Tizen::Base::Object * (Thread::*methodType)(void);
-//     static methodType Runp = 0;
-//     Tizen::Base::Object * ret;
-//     probeInfo_t probeInfo;
-//     log_t log;
-//     int blockresult;
-//     bool bfiltering = true;
-//     void *tmpPtr;
-//     log.type = 0;
-//                             log.length = 0;
-//                             log.data[0] = '\0';
-//                             log.length = sprintf(log.data, "call Thread::Run");
-//                             printLog(&log, MSG_MSG);
-//                             return null;
-//     if (!Runp) {
-//             probeBlockStart();
-//             void* lib_handle = dlopen("libosp-appfw.so", RTLD_LAZY);
-//             if (lib_handle == NULL) {
-//                     perror("dlopen failed : libosp-appfw.so");
-//                     log.type = 0;
-//                     log.length = 0;
-//                     log.data[0] = '\0';
-//                     log.length = sprintf(log.data, "dlopen failed :libosp-appfw.so");
-//                     printLog(&log, MSG_MSG);
-//                     return null;
-//             }
-//             tmpPtr =
-//                             dlsym(
-//                                             RTLD_NEXT,
-//                                             "_ZN5Tizen4Base7Runtime6Thread3RunEv");
-//
-//             if (tmpPtr == NULL || dlerror() != NULL) {
-//                     perror("dlsym failed : Thread::Run");
-//                     log.type = 0;
-//                     log.length = 0;
-//                     log.data[0] = '\0';
-//                     log.length = sprintf(log.data, "dlsym failed : Thread::Run");
-//                     printLog(&log, MSG_MSG);
-//                     return null;
-//             }
-//
-//             memcpy(&Runp, &tmpPtr, sizeof(tmpPtr));
-//             probeBlockEnd();
-//     }
-//
-//     if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-//             setProbePoint(&probeInfo);
-//             preBlockEnd();
-//     }
-//     //
-//     ret = (this->*Runp)();
-//     //
-//     if (postBlockBegin(blockresult)) {
-//             log.type = 0;
-//             log.length = 0;
-//             log.data[0] = '\0';
-//             log.length = sprintf(log.data, "%d`,%d`,%s`,%lu`,%d`,%d", LC_THREAD,
-//                             probeInfo.eventIndex, "Thread::Run",
-//                             probeInfo.currentTime, probeInfo.pID, probeInfo.tID);
-//             //Input,ret
-//             log.length += sprintf(log.data + log.length, "`,`,0x%x",(unsigned int)ret;
-//             //PCAddr,errno,InternalCall,size,FD,FDType,FDApiType,FileSize,FilePath
-//
-//
-//             log.length += sprintf(log.data + log.length,
-//                             "`,0`,0`,%d`,0`,0x%x`,%d`,%d`,`,", blockresult,
-//                             (unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_OTHER);
-//             //callstack
-//             log.length += sprintf(log.data + log.length, "`,\ncallstack_start`,");
-//             getBacktraceString(&log, 4096 - log.length - 17);
-//             log.length += sprintf(log.data + log.length, "`,callstack_end");
-//
-//             printLog(&log, MSG_LOG);
-//             postBlockEnd();
-//     }
-//     return ret;
-//}
-
-result Thread::Start(void) {
-       typedef result (Thread::*methodType)(void);
-       static methodType Startp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Startp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread5StartEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Start");
-                       exit(0);
-               }
-
-               memcpy(&Startp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Startp)();
-       //
-       if (postBlockBegin(blockresult)) {
-               int status;
-               char *class_name = abi::__cxa_demangle(typeid(*this).name(),0,0,&status);
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Start_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_START, class_name);
-               FLUSH_LOCAL_BUF();
-               free(class_name);
-               postBlockEnd();
-       }
-       return ret;
-}
-result Thread::Stop(void) {
-       typedef result (Thread::*methodType)(void);
-       static methodType Stopp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Stopp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime6Thread4StopEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::Thread::Stop");
-                       exit(0);
-               }
-
-               memcpy(&Stopp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Stopp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_Thread__Stop_void_,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_WORKER, THREAD_API_STOP, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result EventDrivenThread::Construct(long stackSize, ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(long stackSize, ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW],
-                               "_ZN5Tizen4Base7Runtime17EventDrivenThread9ConstructElNS1_14ThreadPriorityE");
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::EventDrivenThread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_EventDrivenThread__Construct_long_stackSize__ThreadPriority_priority_,
-                                 "xd", (uint64_t)(stackSize), priority);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_EVENTDRIVEN, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-result EventDrivenThread::Construct(const Tizen::Base::String &name, long stackSize,
-               ThreadPriority priority) {
-       typedef result
-       (Thread::*methodType)(const Tizen::Base::String &name, long stackSize,
-                       ThreadPriority priority);
-       static methodType Constructp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-       char temp[50];
-
-       if (!Constructp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr =
-                               dlsym(
-                                               lib_handle[LIBOSP_APPFW],
-                                               "_ZN5Tizen4Base7Runtime17EventDrivenThread9ConstructERKNS0_6StringElNS1_14ThreadPriorityE");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::EventDrivenThread::Construct");
-                       exit(0);
-               }
-
-               memcpy(&Constructp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Constructp)(name, stackSize, priority);
-       //
-       if (postBlockBegin(blockresult)) {
-
-               WcharToChar(temp, name.GetPointer());
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_EventDrivenThread__Construct_const_Tizen__Base__String__name__long_stackSize__ThreadPriority_priority_,
-                                 "sx", temp, (uint64_t)(stackSize));
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_EVENTDRIVEN, THREAD_API_NEW, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-
-}
-
-result EventDrivenThread::Quit() {
-       typedef result (Thread::*methodType)(void);
-       static methodType Quitp = 0;
-       result ret;
-       probeInfo_t probeInfo;
-       int blockresult;
-       bool bfiltering = true;
-       void *tmpPtr;
-
-       if (!Quitp) {
-               probeBlockStart();
-               if(lib_handle[LIBOSP_APPFW] == NULL) {
-                       lib_handle[LIBOSP_APPFW] = dlopen(lib_string[LIBOSP_APPFW], RTLD_LAZY);
-                       if (lib_handle[LIBOSP_APPFW] == NULL) {
-                               perror("dlopen failed : libosp-appfw.so");
-                               exit(0);
-                       }
-               }
-               tmpPtr = dlsym(lib_handle[LIBOSP_APPFW], "_ZN5Tizen4Base7Runtime17EventDrivenThread4QuitEv");
-
-               if (tmpPtr == NULL || dlerror() != NULL) {
-                       perror("dlsym failed : Tizen::Base::Runtime::EventThread::Quit");
-                       exit(0);
-               }
-
-               memcpy(&Quitp, &tmpPtr, sizeof(tmpPtr));
-               probeBlockEnd();
-       }
-
-       if ((blockresult = preBlockBegin(CALLER_ADDRESS, bfiltering, _sopt)) != 0) {
-               setProbePoint(&probeInfo);
-               preBlockEnd();
-       }
-       //
-       ret = (this->*Quitp)();
-       //
-       if (postBlockBegin(blockresult)) {
-
-               PREPARE_LOCAL_BUF();
-               PACK_COMMON_BEGIN(MSG_PROBE_THREAD,
-                                 API_ID_result_EventDrivenThread__Quit__,
-                                 "", 0);
-               PACK_COMMON_END('x', ret, ret, blockresult);
-               PACK_THREAD((unsigned int) this, THREAD_TIZENTHREAD_EVENTDRIVEN, THREAD_API_STOP, THREAD_CLASS_BLANK);
-               FLUSH_LOCAL_BUF();
-
-               postBlockEnd();
-       }
-       return ret;
-}
-
-}
-}
-}
diff --git a/probe_ui/tizen_capture.cpp b/probe_ui/tizen_capture.cpp
deleted file mode 100755 (executable)
index 525016e..0000000
+++ /dev/null
@@ -1,376 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <Evas.h>
-
-#include <FUi.h>
-//#include <FMedia.h>
-
-#include "daprobe.h"
-#include "dahelper.h"
-#include "dacollection.h"
-#include "daerror.h"
-//#include "da_ui.h"
-#include "tizen_probe.h"
-
-using namespace Tizen::Base;
-using namespace Tizen::Ui;
-using namespace Tizen::Graphics;
-using namespace Tizen::Media;
-
-/*
-#define LIBUTILX       "libutilX.so.1"
-
-typedef void* (*utilx_create_screen_shot_type)(Display* dpy, int width, int height);
-typedef void (*utilx_release_screen_shot_type)(void);
-
-static Tizen::Graphics::Bitmap* sysutil_capture_screen()
-{
-       static utilx_create_screen_shot_type utilx_create_screen_shotp;
-       static utilx_release_screen_shot_type utilx_release_screen_shotp;
-       result r;
-       Bitmap* pBitmap = NULL;
-
-       if (unlikely(utilx_create_screen_shotp == NULL))
-       {
-               void* lib_handle = dlopen(LIBUTILX, RTLD_LAZY);
-               if (lib_handle == NULL) {
-                       SetLastResult(ERR_DLOPEN);
-                       return NULL;
-               }
-               utilx_create_screen_shotp = (utilx_create_screen_shot_type)dlsym(lib_handle, "utilx_create_screen_shot");
-               if (utilx_create_screen_shotp == NULL || dlerror() != NULL) {
-                       SetLastResult(ERR_DLSYM);
-                       return NULL;
-               }
-       }
-
-       if (unlikely(utilx_release_screen_shotp == NULL))
-       {
-               void* lib_handle = dlopen(LIBUTILX, RTLD_LAZY);
-               if (lib_handle == NULL) {
-                       SetLastResult(ERR_DLOPEN);
-                       return NULL;
-               }
-               utilx_release_screen_shotp = (utilx_release_screen_shot_type)dlsym(lib_handle, "utilx_release_screen_shot");
-               if (utilx_release_screen_shotp == NULL || dlerror() != NULL) {
-                       SetLastResult(ERR_DLSYM);
-                       return NULL;
-               }
-       }
-
-       Display* pDpy = XOpenDisplay(NULL);
-       if (pDpy == NULL)
-       {
-               SetLastResult(ERR_USER - 1);
-               return NULL;
-       }
-
-       int width = DisplayWidth(pDpy, DefaultScreen(pDpy));
-       int height = DisplayHeight(pDpy, DefaultScreen(pDpy));
-
-       void* pDump = utilx_create_screen_shotp(pDpy, width, height);
-       if (likely(pDump != NULL))
-       {
-               ByteBuffer buffer;
-               r = buffer.Construct(static_cast<byte*>(pDump), 0, width*height*4, width*height*4);\
-               if (likely(r == E_SUCCESS))
-               {
-                       Tizen::Graphics::Dimension dim(width, height);
-                       Bitmap* pBitmap  = new Bitmap();
-                       if (likely(pBitmap != NULL))
-                       {
-                               r = pBitmap->Construct(buffer, dim, BITMAP_PIXEL_FORMAT_ARGB8888);
-                               if (unlikely(r != E_SUCCESS))
-                               {
-                                       SetLastResult(r);
-                                       delete pBitmap;
-                                       pBitmap = NULL;
-                               }
-                               else { SetLastResult(E_SUCCESS); }
-                       }
-                       else { SetLastResult(ERR_OUTOFMEMORY); }
-               }
-               else { SetLastResult(r); }
-       }
-       else { SetLastResult(ERR_USER - 2); }
-
-       utilx_release_screen_shotp();
-
-       return pBitmap;
-}
-
-static Bitmap* getBitmapFromBuffer(void* pDump, int width, int height)
-{
-       result r;
-       ByteBuffer buffer;
-       Bitmap* pBitmap = NULL;
-
-       r = buffer.Construct(static_cast<byte*>(pDump), 0, width*height*4, width*height*4);
-       if (likely(r == E_SUCCESS))
-       {
-               Tizen::Graphics::Dimension dim(width, height);
-               pBitmap  = new Bitmap();
-               if (likely(pBitmap != NULL))
-               {
-                       r = pBitmap->Construct(buffer, dim, BITMAP_PIXEL_FORMAT_ARGB8888);
-                       if (unlikely(r != E_SUCCESS))
-                       {
-                               SetLastResult(r);
-                               delete pBitmap;
-                               pBitmap = NULL;
-                       }
-                       else { SetLastResult(E_SUCCESS); }
-               }
-               else { SetLastResult(ERR_OUTOFMEMORY); }
-       }
-       else { SetLastResult(r); }
-
-       return pBitmap;
-}
-
-// return 0 if succeed
-// return -1 if failed to capture
-int captureScreen()
-{
-       Image img;
-       Bitmap* bitmap;
-       probeInfo_t     probeInfo; log_t log;
-       result r;
-       int ret = 0, width, height;
-       char* capbuf;
-
-       probeBlockStart();
-
-       capbuf = captureScreenShotX(&width, &height);
-       if (capbuf != NULL)
-       {
-               bitmap = getBitmapFromBuffer((void*)capbuf, width, height);
-               if (bitmap != NULL)
-               {
-                       String dstPath;
-                       setProbePoint(&probeInfo);
-
-                       dstPath.Format(MAX_PATH_LENGTH, L"/tmp/da/%d.jpg", probeInfo.eventIndex);
-                       img.Construct();
-                       r = img.EncodeToFile(*bitmap, IMG_FORMAT_JPG, dstPath, true);
-                       if (r == E_SUCCESS)
-                       {
-                               INIT_LOG;
-                               APPEND_LOG_BASIC_NAME(LC_SNAPSHOT, "captureScreen");
-                               APPEND_LOG_COMMON_NONE(0);
-                               log.length += sprintf(log.data + log.length, "`,%S", dstPath.GetPointer());
-                               printLog(&log, MSG_LOG);
-                       }
-                       else
-                       {
-                               ret = -1;
-                       }
-
-                       delete bitmap;
-               }
-               else
-               {
-                       char buf[128];
-                       r = GetLastResult();
-                       sprintf(buf, "bitmap is null (%p, %d, %s)\n", capbuf, (int)r, GetErrorMessage(r));
-                       ret = -1;
-               }
-       }
-       else
-       {
-               ret = -1;
-       }
-
-       releaseScreenShotX();
-       probeBlockEnd();
-
-       return ret;
-}
-*/
-
-namespace Tizen { namespace Ui {
-/*
-class _EcoreEvas
-{
-public:
-       Evas* GetEvas(void) const;
-};
-
-class _EcoreEvasMgr
-{
-       void SetEcoreEvas(const _EcoreEvas& ecoreevas);
-};
-
-
-void _EcoreEvasMgr::SetEcoreEvas(const _EcoreEvas& ecoreevas)
-{
-       typedef void (_EcoreEvasMgr::*methodType)(const _EcoreEvas& ecoreevas);
-       static methodType _ecoreevasmgr_setecoreevasp;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui13_EcoreEvasMgr12SetEcoreEvasERKNS0_10_EcoreEvasE,
-                       LIBOSP_UIFW, _ecoreevasmgr_setecoreevasp);
-
-       probeBlockStart();
-       evas_event_callback_add(ecoreevas.GetEvas(),
-               EVAS_CALLBACK_RENDER_FLUSH_POST, _cb_render_post, NULL);
-       probeBlockEnd();
-
-       (this->*_ecoreevasmgr_setecoreevasp)(ecoreevas);
-}
-*/
-
-result Control::SetShowState(bool state)
-{
-       typedef result (Control::*methodType)(bool state);
-       static methodType control_setshowstatep;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui7Control12SetShowStateEb,
-                       LIBOSP_UIFW, control_setshowstatep);
-
-       ret = (this->*control_setshowstatep)(state);
-
-       probeBlockStart();
-       {
-               char *type, *classname;
-               if (find_uiobject_hash((void*)this, &type, &classname) == 1)
-               {
-                       if (strcmp(type, "Panel") == 0 || strcmp(type, "OverlayPanel") == 0 || strcmp(type, "ScrollPanel") == 0)
-                       {
-                               SCREENSHOT_SET();
-//                             SCREENSHOT_DONE();
-                       }
-                       else
-                       {
-                               // do nothing
-                       }
-               }
-               else
-               {
-                       // never happened
-               }
-       }
-       probeBlockEnd();
-
-       return ret;
-}
-
-namespace Controls {
-
-result Frame::SetCurrentForm(const Form& form)
-{
-       typedef result (Frame::*methodType)(const Form& form);
-       static methodType frame_setcurrentformp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5Frame14SetCurrentFormERKNS1_4FormE,
-                       LIBOSP_UIFW, frame_setcurrentformp);
-
-       ret = (this->*frame_setcurrentformp)(form);
-
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       return ret;
-}
-
-result Frame::SetCurrentForm(Form* pForm)
-{
-       typedef result (Frame::*methodType)(Form* pForm);
-       static methodType frame_setcurrentformp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui8Controls5Frame14SetCurrentFormEPNS1_4FormE,
-                       LIBOSP_UIFW, frame_setcurrentformp);
-
-       ret = (this->*frame_setcurrentformp)(pForm);
-
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       return ret;
-}
-
-
-}              // end of namespace Tizen::Ui::Controls
-
-namespace Animations {
-
-result FrameAnimator::SetCurrentForm(const Tizen::Ui::Controls::Form& form)
-{
-       typedef result (FrameAnimator::*methodType)(const Tizen::Ui::Controls::Form& form);
-       static methodType frameanimator_setcurrentformp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations13FrameAnimator14SetCurrentFormERKNS0_8Controls4FormE,
-                       LIBOSP_UIFW, frameanimator_setcurrentformp);
-
-       ret = (this->*frameanimator_setcurrentformp)(form);
-
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       return ret;
-}
-
-result FrameAnimator::SetCurrentForm(Tizen::Ui::Controls::Form* pForm)
-{
-       typedef result (FrameAnimator::*methodType)(Tizen::Ui::Controls::Form* pForm);
-       static methodType frameanimator_setcurrentformp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations13FrameAnimator14SetCurrentFormEPNS0_8Controls4FormE,
-                       LIBOSP_UIFW, frameanimator_setcurrentformp);
-
-       ret = (this->*frameanimator_setcurrentformp)(pForm);
-
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       return ret;
-}
-
-
-}              // end of namespace Tizen::Ui::Animations
-
-} }            // end of namespace Tizen::Ui
-
-
diff --git a/probe_ui/tizen_display.cpp b/probe_ui/tizen_display.cpp
deleted file mode 100644 (file)
index 49bd941..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-#include <FUi.h>
-
-#include "daprobe.h"
-#include "dahelper.h"
-#include "tizen_probe.h"
-
-namespace Tizen { namespace Ui { namespace Animations {
-
-class _RootVisualElement
-{
-};
-
-class _DisplayManager
-{
-//     bool RenderAll(bool check);
-//     bool Render(_RootVisualElement& root, bool check);
-       result PostRender(_RootVisualElement& root);
-//     result Flush(void);
-//     bool UpdateScene(bool force);
-};
-/*
-bool _DisplayManager::RenderAll(bool check)
-{
-       typedef bool (_DisplayManager::*methodtype)(bool check);
-       static methodtype mp;
-       bool ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations15_DisplayManager9RenderAllEb, LIBOSP_UIFW, mp);
-       probeBlockStart();
-       probeBlockEnd();
-
-       ret = (this->*mp)(check);
-
-       probeBlockStart();
-       probeBlockEnd();
-
-       return ret;
-}
-
-bool _DisplayManager::Render(_RootVisualElement& root, bool check)
-{
-       typedef bool (_DisplayManager::*methodtype)(_RootVisualElement& root, bool check);
-       static methodtype mp;
-       bool ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations15_DisplayManager6RenderERNS1_18_RootVisualElementEb, LIBOSP_UIFW, mp);
-       probeBlockStart();
-       probeBlockEnd();
-       ret = (this->*mp)(root, check);
-       probeBlockStart();
-       probeBlockEnd();
-
-       return ret;
-}
-*/
-result _DisplayManager::PostRender(_RootVisualElement& root)
-{
-       typedef result (_DisplayManager::*methodtype)(_RootVisualElement& root);
-       static methodtype mp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations15_DisplayManager10PostRenderERNS1_18_RootVisualElementE, LIBOSP_UIFW, mp);
-       probeBlockStart();
-       probeBlockEnd();
-
-       ret = (this->*mp)(root);
-
-       probeBlockStart();
-       SCREENSHOT_DONE();
-       probeBlockEnd();
-
-       return ret;
-}
-/*
-result _DisplayManager::Flush(void)
-{
-       typedef result (_DisplayManager::*methodtype)(void);
-       static methodtype mp;
-       result ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations15_DisplayManager5FlushEv, LIBOSP_UIFW, mp);
-       probeBlockStart();
-       probeBlockEnd();
-       ret = (this->*mp)();
-       probeBlockStart();
-       probeBlockEnd();
-
-       return ret;
-}
-
-bool _DisplayManager::UpdateScene(bool force)
-{
-       typedef bool (_DisplayManager::*methodtype)(bool force);
-       static methodtype mp;
-       bool ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui10Animations15_DisplayManager11UpdateSceneEb, LIBOSP_UIFW, mp);
-       probeBlockStart();
-       probeBlockEnd();
-       ret = (this->*mp)(force);
-       probeBlockStart();
-       probeBlockEnd();
-
-       return ret;
-}
-*/
-
-} } }  // end of namespace
diff --git a/probe_ui/tizen_frameani.cpp b/probe_ui/tizen_frameani.cpp
deleted file mode 100644 (file)
index e485db7..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- *
- */
-
-#include "daprobe.h"
-#include "dahelper.h"
-#include "tizen_frameani.h"
-
-DAFrameAnimationEventListener DAFrameAnimationEventListener::rInstance;
-
-DAFrameAnimationEventListener::DAFrameAnimationEventListener()
-{
-}
-
-DAFrameAnimationEventListener::~DAFrameAnimationEventListener()
-{
-}
-
-void DAFrameAnimationEventListener::OnFormTransitionAnimationFinished(FrameAnimator&,
-                                                                     Frame &, Form &, Form&)
-{
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-}
-
-void DAFrameAnimationEventListener::OnFormTransitionAnimationStarted(FrameAnimator&,
-                                                                    Frame&, Form&, Form&)
-{
-       probeBlockStart();
-       SCREENSHOT_UNSET();
-       probeBlockEnd();
-}
-
-void DAFrameAnimationEventListener::OnFormTransitionAnimationStopped(FrameAnimator&,
-                                                                    Frame&, Form&, Form&)
-{
-       probeBlockStart();
-       SCREENSHOT_SET();
-//     SCREENSHOT_DONE();
-       probeBlockEnd();
-}
-
-DAFrameAnimationEventListener& DAFrameAnimationEventListener::GetInstance(void)
-{
-       return rInstance;
-}
-
-IFrameAnimatorEventListener& GetFrameAnimatorEventListener()
-{
-       DAFrameAnimationEventListener& listener = DAFrameAnimationEventListener::GetInstance();
-       return static_cast<IFrameAnimatorEventListener&>(listener);
-}
diff --git a/probe_ui/tizen_scenemanager.cpp b/probe_ui/tizen_scenemanager.cpp
deleted file mode 100755 (executable)
index 5969127..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-/*
- *  DA probe
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:
- *
- * Jaewon Lim <jaewon81.lim@samsung.com>
- * Woojin Jung <woojin2.jung@samsung.com>
- * Juyoung Kim <j0.kim@samsung.com>
- * Anastasia Lyupa <a.lyupa@samsung.com>
- *
- * This library is free software; you can redistribute it and/or modify it under
- * the terms of the GNU Lesser General Public License as published by the
- * Free Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- * License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this library; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Contributors:
- * - S-Core Co., Ltd
- * - Samsung RnD Institute Russia
- *
- */
-
-#include <assert.h>
-#include <FBase.h>
-#include <FUi.h>
-
-#include "daprobe.h"
-#include "dacollection.h"      // for find_uiobject_hash
-#include "dahelper.h"          // for captureScreen
-#include "tizen_probe.h"
-
-#include "binproto.h"
-
-using namespace Tizen::Base;
-using namespace Tizen::Ui::Controls;
-using namespace Tizen::Ui::Scenes;
-
-int SceneManagerUsed = 0;
-
-class SceneManagerEventListener : public ISceneManagerEventListener
-{
-public:
-       virtual void OnSceneTransitionCompleted(const SceneId &previousSceneId, const SceneId &currentSceneId);
-       virtual void OnSceneTransitionStarted(const SceneId &currentSceneId, const SceneId &nextSceneId);
-       static SceneManagerEventListener& GetInstance();
-private:
-       static SceneManagerEventListener rInstance;
-       unsigned long startTime;
-};
-
-SceneManagerEventListener SceneManagerEventListener::rInstance;
-
-void SceneManagerEventListener::OnSceneTransitionCompleted(const SceneId &previousSceneId, const SceneId &currentSceneId)
-{
-       probeBlockStart();
-       {
-               SceneManager* scenemanager = SceneManager::GetInstance();
-
-               if (scenemanager->GetCurrentSceneId() == currentSceneId)
-               {
-                       if (isOptionEnabled(OPT_UI))
-                       {
-                               probeInfo_t     probeInfo;
-                               Scene* scene;
-                               String sceneid, formid, panelid;
-                               Form* pform;
-                               Panel* ppanel;
-                               unsigned long transition, user = 0;
-
-                               setProbePoint(&probeInfo);
-
-                               scene = scenemanager->GetCurrentScene();
-                               sceneid = scene->GetSceneId();
-                               formid = scene->GetFormId();
-                               panelid = scene->GetPanelId();
-                               pform = scene->GetForm();
-                               ppanel = scene->GetPanel();
-
-                               transition = (probeInfo.currentTime - startTime);
-
-                               char scene_name[PATH_MAX];
-                               WcharToChar(scene_name, sceneid.GetPointer());
-
-                               PREPARE_LOCAL_BUF();
-                               PACK_COMMON_BEGIN(MSG_PROBE_SCENE,
-                                                 API_ID_void_SceneManagerEventListener__OnSceneTransitionCompleted_const_SceneId__previousSceneId__const_SceneId__currentSceneId_,
-                                                 "pp",
-                                                 voidp_to_uint64(&previousSceneId),
-                                                 voidp_to_uint64(&currentSceneId));
-                               PACK_COMMON_END('v', 0, 0, 0);
-                               PACK_SCENE(scene_name, formid, pform, panelid, ppanel, transition, user);
-                               FLUSH_LOCAL_BUF();
-                       }
-               }
-               else
-               {
-                       // never happened
-                       assert(false);
-               }
-
-               SCREENSHOT_SET();
-//             SCREENSHOT_DONE();
-       }
-
-       SceneManagerUsed = 0;
-       probeBlockEnd();
-}
-
-void SceneManagerEventListener::OnSceneTransitionStarted(const SceneId&,
-                                                        const SceneId&)
-{
-       probeBlockStart();
-       SceneManagerUsed = 1;
-       startTime = getCurrentTime();
-       probeBlockEnd();
-}
-
-SceneManagerEventListener& SceneManagerEventListener::GetInstance()
-{
-       return rInstance;
-}
-
-
-namespace Tizen { namespace Ui { namespace Scenes {
-
-SceneManager* SceneManager::GetInstance(void)
-{
-       typedef SceneManager* (*methodType)(void);
-       static methodType scenemanager_getinstancep;
-       static int initialized = 0;
-       SceneManager* ret;
-
-       GET_REAL_FUNC_TIZEN(_ZN5Tizen2Ui6Scenes12SceneManager11GetInstanceEv, LIBOSP_UIFW, scenemanager_getinstancep);
-
-       ret = scenemanager_getinstancep();
-
-       probeBlockStart();
-       if (unlikely(initialized == 0))
-       {
-               if (likely(ret != NULL))
-               {
-                       ret->AddSceneManagerEventListener(SceneManagerEventListener::GetInstance());
-                       initialized = 1;
-               }
-       }
-       probeBlockEnd();
-
-       return ret;
-}
-
-
-} } }  // end of namespace