2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef _BT_SERVICE_TDS_H_
19 #define _BT_SERVICE_TDS_H_
22 #include <sys/types.h>
23 #include "bluetooth-api.h"
29 int _bt_tds_provider_register(const char *sender);
31 int _bt_tds_provider_unregister(const char *sender);
33 int _bt_tds_provider_transport_create(const char *sender, int transport, unsigned int tds_handle);
35 int _bt_tds_provider_transport_remove(const char *sender, unsigned int tds_handle);
37 int _bt_tds_provider_set_transport_data(char *sender, int tds_handle,
38 int transport_state, unsigned char *data, unsigned int len);
40 int _bt_tds_provider_set_manuf_data(char *sender, unsigned char *data, unsigned int len);
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);
45 void _bt_tds_handle_activation_request(const char *path, unsigned char org_id, unsigned char *buf, int len);
47 void _bt_tds_stop_by_terminated_process(char *name);
49 void _bt_tds_handle_adv_disabled(const char *sender, int adv_handle);
51 int _bt_tds_read_transport_data(int request_id, char *sender,
52 bluetooth_device_address_t *dev_addr, char *handle);
54 int _bt_tds_enable_control_point(int request_id, char *sender,
55 bluetooth_device_address_t *dev_addr, char *handle);
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);
61 void _bt_tds_check_indication(const char *path, GVariant *msg);
63 void _bt_tds_insert_seeker(char *sender, char *address);
65 void _bt_tds_delete_seeker(char *sender, char *address);
67 void _bt_clear_tds_seekers(void);
71 #endif /* __cplusplus */
72 #endif /*_BT_SERVICE_TDS_H_*/