fix prevent violation
[framework/system/dynamic-analysis-probe.git] / probe_ui / tizen_capture.c
1 /*
2  *  DA probe
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: 
7  *
8  * Jaewon Lim <jaewon81.lim@samsung.com>
9  * Woojin Jung <woojin2.jung@samsung.com>
10  * Juyoung Kim <j0.kim@samsung.com>
11  * 
12  * This library is free software; you can redistribute it and/or modify it under
13  * the terms of the GNU Lesser General Public License as published by the
14  * Free Software Foundation; either version 2.1 of the License, or (at your option)
15  * any later version.
16  * 
17  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
19  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
20  * License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * along with this library; if not, write to the Free Software Foundation, Inc., 51
24  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  *
26  * Contributors:
27  * - S-Core Co., Ltd
28  * 
29  */
30
31 //#include <stdio.h>
32 //#include <stdlib.h>
33 //#include <string.h>
34 //#include <dlfcn.h>
35 //#include <stdbool.h>
36 //#include <memory.h>
37 //#include <errno.h>
38
39 #include <Evas.h>
40 #include <Elementary.h>
41 //#include <app.h>
42
43 #include "daprobe.h"
44 #include "probeinfo.h"
45 #include "da_ui.h"
46
47 Evas_Object *elm_win_add(Evas_Object *parent, const char* name, Elm_Win_Type type)
48 {
49         static Evas_Object * (*elm_win_addp)(Evas_Object *parent, const char* name, Elm_Win_Type type);
50
51         BEFORE_ORIGINAL_SNAPSHOT(elm_win_add, LIBELEMENTARY);
52         
53         ret = elm_win_addp(parent, name, type);
54         
55         AFTER_ORIGINAL_SNAPSHOT(ret);
56         
57         return ret;
58 }
59
60 Evas_Object *   elm_controlbar_add (Evas_Object *parent)
61 {
62         static Evas_Object * (*elm_controlbar_addp)(Evas_Object *parent);
63
64         BEFORE_ORIGINAL_SNAPSHOT(elm_controlbar_add, LIBELEMENTARY);
65
66         ret = elm_controlbar_addp(parent);
67         
68         AFTER_ORIGINAL_SNAPSHOT(ret);
69
70         return ret;
71         
72 //      ecore_evas_callback_post_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(parent)), _cbecore);
73 }
74
75 Evas_Object *elm_naviframe_add(Evas_Object *parent)
76 {
77         static Evas_Object * (*elm_naviframe_addp)(Evas_Object *parent);
78
79         BEFORE_ORIGINAL_SNAPSHOT(elm_naviframe_add, LIBELEMENTARY);
80
81         ret = elm_naviframe_addp(parent);
82         
83         AFTER_ORIGINAL_SNAPSHOT(ret);
84
85         return ret;
86 }
87
88 Evas_Object *elm_pager_add(Evas_Object *parent)
89 {
90         static Evas_Object * (*elm_pager_addp)(Evas_Object *parent);
91
92         BEFORE_ORIGINAL_SNAPSHOT(elm_pager_add, LIBELEMENTARY);
93
94         ret = elm_pager_addp(parent);
95         
96         AFTER_ORIGINAL_SNAPSHOT(ret);
97
98         return ret;
99 }