Merge latest tizen_3.0 bug fix codes
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-tds.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_TDS_H_
19 #define _BT_SERVICE_TDS_H_
20
21 #include <glib.h>
22 #include <sys/types.h>
23 #include "bluetooth-api.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 int _bt_tds_provider_register(const char *sender);
30
31 int _bt_tds_provider_unregister(const char *sender);
32
33 int _bt_tds_provider_transport_create(const char *sender, int transport, unsigned int tds_handle);
34
35 int _bt_tds_provider_transport_remove(const char *sender, unsigned int tds_handle);
36
37 int _bt_tds_provider_set_transport_data(char *sender, int tds_handle,
38                 int transport_state, unsigned char *data, unsigned int len);
39
40 int _bt_tds_provider_set_manuf_data(char *sender, unsigned char *data, unsigned int len);
41
42 int _bt_tds_provider_send_activation_response(char *sender, unsigned int tds_handle,
43         bluetooth_device_address_t *address, int response, unsigned char *data, unsigned int len);
44
45 void _bt_tds_handle_activation_request(const char *path, unsigned char org_id, unsigned char *buf, int len);
46
47 void _bt_tds_stop_by_terminated_process(char *name);
48
49 void _bt_tds_handle_adv_disabled(const char *sender, int adv_handle);
50
51 int _bt_tds_read_transport_data(int request_id, char *sender,
52                         bluetooth_device_address_t *dev_addr, char *handle);
53
54 int _bt_tds_enable_control_point(int request_id, char *sender,
55                         bluetooth_device_address_t *dev_addr, char *handle);
56
57 int _bt_tds_activate_control_point(int request_id, char *sender,
58                         bluetooth_device_address_t *dev_addr, char *handle,
59                         unsigned char *param, int length);
60
61 void _bt_tds_check_indication(const char *path, GVariant *msg);
62
63 void _bt_tds_insert_seeker(char *sender, char *address);
64
65 void _bt_tds_delete_seeker(char *sender, char *address);
66
67 void _bt_clear_tds_seekers(void);
68
69 #ifdef __cplusplus
70 }
71 #endif /* __cplusplus */
72 #endif /*_BT_SERVICE_TDS_H_*/