1 #include <vndk/window.h>
2
3 extern "C" {
4
5 AHardwareBuffer *
ANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer * anwb)6 ANativeWindowBuffer_getHardwareBuffer(ANativeWindowBuffer *anwb)
7 {
8 return nullptr;
9 }
10
11 void
AHardwareBuffer_acquire(AHardwareBuffer * buffer)12 AHardwareBuffer_acquire(AHardwareBuffer *buffer)
13 {
14 }
15
16 void
AHardwareBuffer_release(AHardwareBuffer * buffer)17 AHardwareBuffer_release(AHardwareBuffer *buffer)
18 {
19 }
20
21 void
AHardwareBuffer_describe(const AHardwareBuffer * buffer,AHardwareBuffer_Desc * outDesc)22 AHardwareBuffer_describe(const AHardwareBuffer *buffer,
23 AHardwareBuffer_Desc *outDesc)
24 {
25 }
26
27 int
AHardwareBuffer_allocate(const AHardwareBuffer_Desc * desc,AHardwareBuffer ** outBuffer)28 AHardwareBuffer_allocate(const AHardwareBuffer_Desc *desc,
29 AHardwareBuffer **outBuffer)
30 {
31 return 0;
32 }
33
34 const native_handle_t *
AHardwareBuffer_getNativeHandle(const AHardwareBuffer * buffer)35 AHardwareBuffer_getNativeHandle(const AHardwareBuffer *buffer)
36 {
37 return NULL;
38 }
39
40 void
ANativeWindow_acquire(ANativeWindow * window)41 ANativeWindow_acquire(ANativeWindow *window)
42 {
43 }
44
45 void
ANativeWindow_release(ANativeWindow * window)46 ANativeWindow_release(ANativeWindow *window)
47 {
48 }
49
50 int32_t
ANativeWindow_getFormat(ANativeWindow * window)51 ANativeWindow_getFormat(ANativeWindow *window)
52 {
53 return 0;
54 }
55
56 int
ANativeWindow_setSwapInterval(ANativeWindow * window,int interval)57 ANativeWindow_setSwapInterval(ANativeWindow *window, int interval)
58 {
59 return 0;
60 }
61
62 int
ANativeWindow_query(const ANativeWindow * window,ANativeWindowQuery query,int * value)63 ANativeWindow_query(const ANativeWindow *window,
64 ANativeWindowQuery query,
65 int *value)
66 {
67 return 0;
68 }
69
70 int
ANativeWindow_dequeueBuffer(ANativeWindow * window,ANativeWindowBuffer ** buffer,int * fenceFd)71 ANativeWindow_dequeueBuffer(ANativeWindow *window,
72 ANativeWindowBuffer **buffer,
73 int *fenceFd)
74 {
75 return 0;
76 }
77
78 int
ANativeWindow_queueBuffer(ANativeWindow * window,ANativeWindowBuffer * buffer,int fenceFd)79 ANativeWindow_queueBuffer(ANativeWindow *window,
80 ANativeWindowBuffer *buffer,
81 int fenceFd)
82 {
83 return 0;
84 }
85
ANativeWindow_cancelBuffer(ANativeWindow * window,ANativeWindowBuffer * buffer,int fenceFd)86 int ANativeWindow_cancelBuffer(ANativeWindow* window,
87 ANativeWindowBuffer* buffer,
88 int fenceFd) {
89 return 0;
90 }
91
92 int
ANativeWindow_setUsage(ANativeWindow * window,uint64_t usage)93 ANativeWindow_setUsage(ANativeWindow *window, uint64_t usage)
94 {
95 return 0;
96 }
97
98 int
ANativeWindow_setSharedBufferMode(ANativeWindow * window,bool sharedBufferMode)99 ANativeWindow_setSharedBufferMode(ANativeWindow *window,
100 bool sharedBufferMode)
101 {
102 return 0;
103 }
104 }
105