Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / android_stub / android_stub.cpp
1 #include <cutils/properties.h>
2 #include <sync/sync.h>
3 #include <hardware/hardware.h>
4 #include <android/log.h>
5 #include <backtrace/Backtrace.h>
6
7 extern "C" {
8
9 int property_get(const char* key, char* value, const char* default_value)
10 {
11 return 0;
12 }
13
14 /* timeout in msecs */
15 int sync_wait(int fd, int timeout)
16 {
17 return 0;
18 }
19
20 /* From hardware/hardware.h */
21
22 int hw_get_module(const char *id, const struct hw_module_t **module)
23 {
24 return 0;
25 }
26
27 /* From android/log.h */
28
29 int __android_log_print(int prio, const char* tag, const char* fmt, ...)
30 {
31 return 0;
32 }
33
34 int __android_log_vprint(int prio, const char* tag, const char* fmt, va_list ap)
35 {
36 return 0;
37 }
38
39 }
40
41 /* From backtrace/Backtrace.h */
42
43 Backtrace*
44 Backtrace::Create(pid_t pid, pid_t tid, BacktraceMap* map)
45 {
46 return NULL;
47 }
48
49 std::string
50 backtrace_map_t::Name() const
51 {
52 return "";
53 }
54