Apply the initial codes for BT emulator
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-emul / include / bt-service-pbap.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *              http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 #ifndef BT_SERVICE_PBAP_H
19 #define BT_SERVICE_PBAP_H
20
21 #include <stdint.h>
22 #include <glib.h>
23 #include <unistd.h>
24 #include <dlog.h>
25 #include <stdio.h>
26
27 #undef LOG_TAG
28 #define LOG_TAG "BLUETOOTH_FRWK_SERVICE"
29 #define ERR(fmt, args...) SLOGE(fmt, ##args)
30
31 int _bt_pbap_connect(const bluetooth_device_address_t *address);
32
33 int _bt_pbap_disconnect(const bluetooth_device_address_t *address);
34
35 int _bt_pbap_get_phonebook_size(const bluetooth_device_address_t *address,
36                 int source, int type);
37
38 int _bt_pbap_get_phonebook(const bluetooth_device_address_t *address,
39                 int source, int type, bt_pbap_pull_parameters_t *app_param);
40
41 int _bt_pbap_get_list(const bluetooth_device_address_t *address, int source,
42                 int type, bt_pbap_list_parameters_t *app_param);
43
44 int _bt_pbap_pull_vcard(const bluetooth_device_address_t *address,
45                 int source, int type, bt_pbap_pull_vcard_parameters_t *app_param);
46
47 int _bt_pbap_phonebook_search(const bluetooth_device_address_t *address,
48                 int source, int type, bt_pbap_search_parameters_t *app_param);
49
50 #endif