[libtdm] Move unit tests from ws-testcase and change test framework
[platform/core/uifw/libtdm.git] / ut / stubs / tbm_stubs.h
1 #ifndef _TBM_STUBS_H
2 #define _TBM_STUBS_H
3
4 #include <tbm_type.h>
5 #include "tbm_bufmgr.h"
6 #include "tbm_surface_queue.h"
7
8 static int TBM_BUFMGR_DEINIT_CALLED;
9 static int TBM_BO_GET_USER_DATA_NULL;
10
11 struct _tbm_surface {
12         int temp;
13 };
14
15 struct _tbm_surface_queue {
16         int temp;
17 };
18
19 tbm_bufmgr tbm_bufmgr_init(int fd);
20
21 void tbm_bufmgr_deinit(tbm_bufmgr bufmgr);
22
23 tbm_bo tbm_surface_internal_get_bo(tbm_surface_h surface, int bo_idx);
24
25 int tbm_bo_get_user_data(tbm_bo bo, unsigned long key, void **data);
26
27 int tbm_bo_add_user_data(tbm_bo bo, unsigned long key,
28                                                         tbm_data_free data_free_func);
29
30 int tbm_bo_set_user_data(tbm_bo bo, unsigned long key, void *data);
31
32 void tbm_surface_internal_ref(tbm_surface_h surface);
33
34 void tbm_surface_internal_unref(tbm_surface_h surface);
35
36 #endif /* _TBM_STUBS_H */