Remove the devider of genlist for IOT profile
[apps/native/ug-bluetooth-efl.git] / standard / bt-net-connection.h
1 /*
2 * ug-bluetooth-efl
3 *
4 * Copyright 2012 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 Flora License, Version 1.1 (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.tizenopensource.org/license
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software 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 <net_connection.h>
32 #include <notification.h>
33 #include "bt-type-define.h"
34
35 typedef struct {
36         connection_profile_h profile_h;
37         unsigned char *address;
38 } bt_net_profile_t;
39
40 int _bt_create_net_connection(void **net_connection);
41
42 int _bt_destroy_net_connection(void *net_connection);
43
44 void _bt_set_profile_state_changed_cb(void *profile, void *user_data);
45
46 void _bt_unset_profile_state_changed_cb(void *profile);
47
48 void *_bt_get_registered_net_profile(void *connection, unsigned char *address);
49
50 void *_bt_get_registered_net_profile_list(void *connection);
51
52 void *_bt_get_connected_net_profile(void *connection, unsigned char *address);
53
54 void _bt_free_net_profile_list(void *list);
55
56 int _bt_connect_net_profile(void *connection, void *profile, void *user_data);
57
58 int _bt_disconnect_net_profile(void *connection, void *profile, void *user_data);
59
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif /* __BT_NET_CONNECTION_H */