4 * Copyright (c) 2015 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Atul Kumar Rai <a.rai@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 #ifndef __BT_SERVICE_RFCOMM_CLIENT_H__
23 #define __BT_SERVICE_RFCOMM_CLIENT_H__
26 #include <sys/types.h>
27 #include "bluetooth-api.h"
33 int _bt_rfcomm_connect_using_uuid(bluetooth_device_address_t *device_address, char *remote_uuid);
34 int _bt_rfcomm_connect_using_channel(bluetooth_device_address_t *device_address, char *chan_str);
35 int _bt_rfcomm_socket_listen(char *svc_name, char *uuid, bool accept);
36 int _bt_rfcomm_conn_added(char *svc_name, int role, int socket_fd);
37 int _bt_rfcomm_conn_removed(char *svc_name, int role, int socket_fd);
38 void _bt_rfcomm_check_termination(const char *name);
42 #endif /* __cplusplus */
43 #endif /* __BT_SERVICE_RFCOMM_CLIENT_H__ */