Tizen 2.1 base
[apps/native/ug-bluetooth-efl.git] / include / bt-net-connection.h
1 /*
2  *  ug-setting-bluetooth-efl
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *           GirishAshok Joshi <girish.joshi@samsung.com>
8  *           DoHyun Pyun <dh79.pyun@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24 #ifndef __BT_NET_CONNECTION_H
25 #define __BT_NET_CONNECTION_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #include "bt-type-define.h"
32
33 int _bt_create_net_connection(void **net_connection);
34
35 int _bt_destroy_net_connection(void *net_connection);
36
37 void _bt_set_profile_state_changed_cb(void *profile, void *user_data);
38
39 void _bt_unset_profile_state_changed_cb(void *profile);
40
41 void *_bt_get_registered_net_profile(void *connection, unsigned char *address);
42
43 void *_bt_get_connected_net_profile(void *connection, unsigned char *address);
44
45 int _bt_connect_net_profile(void *connection, void *profile, void *user_data);
46
47 int _bt_disconnect_net_profile(void *connection, void *profile, void *user_data);
48
49 #ifdef __cplusplus
50 }
51 #endif
52 #endif /* __BT_NET_CONNECTION_H */