Modify the package version
[apps/native/ug-bluetooth-efl.git] / include / bt-contacts.h
1 /*
2 * ug-bluetooth-efl
3 *
4 * Copyright 2016 Samsung Electronics Co., Ltd
5 *
6 * Licensed under the Flora License, Version 1.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.tizenopensource.org/license
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20 #ifndef __BT_CONTACTS_WRAPPER_H__
21 #define __BT_CONTACTS_WRAPPER_H__
22
23 #ifndef BT_TV_PROFILE
24 #include <contacts.h>
25 #else //BT_TV_PROFILE
26 /* It is a mock contatct-service2 becuase TV profile have No contacts-service2.
27  * Note that even if it includes contacts - service2, the behavior is not chanaged
28  * because the code determines profile at runtime.
29  */
30 typedef int* contacts_record_h;
31 static inline void dummy_void()
32 {
33 }
34 static inline int dummy_int(int x)
35 {
36         return x;
37 }
38 #define contacts_vcard_make_from_my_profile(a, b) dummy_void()
39 #define contacts_vcard_make_from_person(a, b) dummy_void()
40 #define contacts_db_get_record(x, y, z) dummy_int(0)
41 #define contacts_record_destroy(a, b) dummy_void()
42 #define contacts_connect() dummy_int(-1)
43 static inline int contacts_disconnect()
44 {
45         return -1;
46 }
47 #define contacts_record_get_str_p(x, y, z) dummy_void()
48 #define CONTACTS_ERROR_NONE     (0)
49 #endif //BT_TV_PROFILE
50
51 #endif /* __BT_CONTACTS_WRAPPER_H__ */