change Copyright headers, change line endings to Unix format
[platform/core/system/swap-probe.git] / include / probeinfo.h
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  * Anastasia Lyupa <a.lyupa@samsung.com>
12  * 
13  * This library is free software; you can redistribute it and/or modify it under
14  * the terms of the GNU Lesser General Public License as published by the
15  * Free Software Foundation; either version 2.1 of the License, or (at your option)
16  * any later version.
17  * 
18  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
19  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
21  * License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public License
24  * along with this library; if not, write to the Free Software Foundation, Inc., 51
25  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26  *
27  * Contributors:
28  * - S-Core Co., Ltd
29  * - Samsung RnD Institute Russia
30  * 
31  */
32
33 #ifndef __PROBEINFO_H__
34 #define __PROBEINFO_H__
35
36 #ifdef __cplusplus
37 extern "C"{
38 #endif
39
40 #define         VT_INT                  1
41 #define         VT_UINT                 2
42 #define         VT_LONG                 3
43 #define         VT_ULONG                4
44 #define         VT_STR                  5
45 #define         VT_CHAR                 6
46 #define         VT_PTR                  7
47 #define         VT_NULL                 8
48 #define         VT_OFF_T                9
49 #define         VT_SIZE_T               10
50 #define         VT_SSIZE_T              11
51 #define         VT_SOCKLEN_T    12
52 #define         VT_UINT16_T             13
53 #define         VT_UINT32_T             14
54 #define         VT_UINT64_T             15
55 #define         VT_MODE_T               16
56 #define         VT_DEV_T                17
57
58 #define         LC_MEMORY               1
59 #define         LC_UICREATE             2
60 #define         LC_UIEVENT              3
61 #define         LC_USERFUNC             4
62 #define         LC_RESOURCE             5
63 #define         LC_LIFECYCLE    6
64 #define         LC_SNAPSHOT             7
65 #define         LC_SCENE                8
66 #define         LC_DEVICE               9
67 #define         LC_ALLOCMEM             10
68 #define         LC_SAMPLE               11
69 #define         LC_THREAD               12
70 #define         LC_CUSTOM               13
71 #define         LC_SYNC                 14
72
73 #define         FD_FILE         0
74 #define         FD_SOCKET       1
75
76 #define         FD_API_OPEN                             0
77 #define         FD_API_CLOSE                    1
78 #define         FD_API_READ                             2
79 #define         FD_API_WRITE                    3
80 #define         FD_API_DIRECTORY                4
81 #define         FD_API_PERMISSION               5
82 #define         FD_API_OTHER                    6
83 #define         FD_API_SEND                             7
84 #define         FD_API_RECEIVE                  8
85 #define         FD_API_OPTION                   9
86 #define         FD_API_MANAGE                   10
87 #define         FD_API_INTERNAL_START   11
88 #define         FD_API_INTERNAL_CLOSE   12
89 #define         FD_API_WAIT                             13
90 #define         FD_API_INTERNAL_WAIT    14
91
92 #define         MEMORY_API_ALLOC        0
93 #define         MEMORY_API_FREE         1
94 #define         MEMORY_API_MANAGE       2
95
96 //#define               SNAPSHOT_API_WIN                        0
97 //#define               SNAPSHOT_API_CONTROLBAR         1
98 //#define               SNAPSHOT_API_NAVIFRAME          2
99 //#define               SNAPSHOT_API_PAGER                      3
100
101 #define         EVENT_TYPE_DOWN         0
102 #define         EVENT_TYPE_UP           1
103 #define         EVENT_TYPE_MOVE         2
104
105 #define         USERFUNC_ENTER          0
106 #define         USERFUNC_EXIT           1
107
108 #define         THREAD_PTHREAD                                  0
109 #define         THREAD_OSPTHREAD_WORKER                 1
110 #define         THREAD_OSPTHREAD_EVENTDRIVEN    2
111
112 #define         THREAD_API_NEW                                  0
113 #define         THREAD_API_START                                1
114 #define         THREAD_API_STOP                                 2
115 #define         THREAD_API_EXIT                                 3
116 #define         THREAD_API_WAIT_START                   4
117 #define         THREAD_API_WAIT_END                             5
118 #define         THREAD_API_INTERNAL_START               6
119 #define         THREAD_API_INTERNAL_STOP                7
120 #define         THREAD_API_OTHER                                8
121
122 #define         SYNC_OSP_MUTEX                                  0
123 #define         SYNC_OSP_MONITOR                                1
124 #define         SYNC_OSP_SEMAPHORE                              2
125 #define         SYNC_PTHREAD_MUTEX                              3
126 #define         SYNC_PTHREAD_COND_VARIABLE              4
127 #define         SYNC_PTHREAD_RWLOCK                             5
128 #define         SYNC_PTHREAD_SPINLOCK                   6
129 #define         SYNC_PTHREAD_BARRIER                    7
130
131 #define         SYNC_API_NEW                                    0
132 #define         SYNC_API_ACQUIRE_WAIT_START             1
133 #define         SYNC_API_ACQUIRE_WAIT_END               2
134 #define         SYNC_API_RELEASE                                3
135 #define         SYNC_API_TRY_ACQUIRE                    4
136 #define         SYNC_API_COND_WAIT_START                5
137 #define         SYNC_API_COND_WAIT_END                  6
138 #define         SYNC_API_NOTIFY                                 7
139 #define         SYNC_API_NOTIFY_ALL                             8
140 #define         SYNC_API_OTHER                                  9
141
142 enum MessageType
143 {
144         MSG_DEVICE = 1,
145         MSG_TIME,
146         MSG_SAMPLE,
147         MSG_LOG = 5,
148         MSG_IMAGE = 6,
149         MSG_TERMINATE = 7,
150         MSG_PID = 8,
151         MSG_MSG = 9,
152         MSG_ALLOC = 10,
153         MSG_ERROR = 11,
154         MSG_STOP = 101,
155         MSG_CONFIG = 103
156 };
157
158 enum DaOptions
159 {
160         OPT_ALWAYSOFF   =       0x00000000,
161         OPT_ALLOC               =       0x00000008,
162         OPT_FILE                =       0x00000010,
163         OPT_THREAD              =       0x00000020,
164         OPT_UI                  =       0x00000040,
165         OPT_SNAPSHOT    =       0x00000080,
166         OPT_EVENT               =       0x00000100,
167         OPT_RECORD              =       0x00000200,
168         OPT_ALWAYSON    =       0x11111111
169 };
170
171
172 #ifdef __cplusplus
173 }
174 #endif
175
176 #endif