Apply tizen 3.0 based product patchsets
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-device.h
old mode 100755 (executable)
new mode 100644 (file)
index 7642a19..4a07f0f
@@ -1,11 +1,5 @@
 /*
- * Bluetooth-frwk
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
- *              Girishashok Joshi <girish.joshi@samsung.com>
- *              Chanyeol Park <chanyeol.park@samsung.com>
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -39,6 +33,10 @@ int _bt_bond_device(int request_id,
 
 int _bt_cancel_bonding(void);
 
+int _bt_passkey_reply(const char *passkey, gboolean authentication_reply);
+
+int _bt_passkey_confirmation_reply(gboolean confirmation_reply);
+
 int _bt_unbond_device(int request_id,
                        bluetooth_device_address_t *device_address,
                        GArray **out_param1);
@@ -60,28 +58,78 @@ int _bt_is_gatt_connected(bluetooth_device_address_t *device_address,
 int _bt_is_device_connected(bluetooth_device_address_t *device_address,
                        int connection_type, gboolean *is_connected);
 
+int _bt_get_connected_link(bluetooth_device_address_t *device_address,
+                       bluetooth_connected_link_t *connected);
+
+int _bt_set_pin_code(bluetooth_device_address_t *device_address,
+                       bluetooth_device_pin_code_t *pin_code);
+
+int _bt_unset_pin_code(bluetooth_device_address_t *device_address);
+
+int _bt_get_device_pin_code(const char *address, char *pin_code);
+
 gboolean _bt_is_device_creating(void);
 
 void _bt_set_autopair_status_in_bonding_info(gboolean is_autopair);
 
 bt_remote_dev_info_t *_bt_get_remote_device_info(char *address);
 
+bt_remote_dev_info_t *_bt_get_remote_device_info_by_object_path(const char *object_path);
+
+char *_bt_get_device_name(const char *address);
+
 gboolean _bt_is_bonding_device_address(const char *address);
 
-int _bt_connect_le_device(const bluetooth_device_address_t *bd_addr, gboolean auto_connect);
+void _bt_pending_connect_le_device(void);
+
+int _bt_connect_le_device(int req_id, const bluetooth_device_address_t *bd_addr,
+               gboolean auto_connect);
+
+int _bt_disconnect_le_device(int req_id,
+               const bluetooth_device_address_t *bd_addr);
 
-int _bt_disconnect_le_device(const bluetooth_device_address_t *bd_addr);
+void _bt_add_le_connected_dev_info(const char *address);
+void _bt_remove_le_connected_dev_info(const char *address);
+int _bt_remove_all_le_conn_param_info(const char *sender);
 
-int _bt_le_conn_update(unsigned char *device_address,
-                               guint16 interval_min, guint16 interval_max,
+int _bt_le_conn_update(const char *sender,
+                               unsigned char *device_address,
+                               float interval_min, float interval_max,
                                guint16 latency, guint16 time_out);
 
+int _bt_get_le_connection_parameter(bluetooth_le_connection_mode_t mode,
+               bluetooth_le_connection_param_t *param);
+
 int _bt_connect_profile(char *address, char *uuid,
                                                void *cb, gpointer func_data);
 
+int _bt_disconnect_all(char *address);
+
 int _bt_disconnect_profile(char *address, char *uuid,
                                                void *cb, gpointer func_data);
 
+int _bt_request_att_mtu(int request_id, bluetooth_device_address_t *device_address,
+                                                               unsigned int mtu);
+
+int _bt_get_att_mtu(bluetooth_device_address_t *device_address,
+                                                               unsigned int *mtu);
+
+int _bt_get_device_ida(bluetooth_device_address_t *device_address,
+                                                       bluetooth_device_address_t *id_address);
+
+int _bt_set_trust_profile(bluetooth_device_address_t *bd_addr,
+               bluetooth_trusted_profile_t profile, gboolean trust);
+
+int _bt_get_trust_profile(bluetooth_device_address_t *bd_addr,
+               bluetooth_trusted_profile_t profile, guint *trust);
+
+bluetooth_trusted_profile_t _bt_get_trusted_profile_enum(const char *uuid);
+
+int _bt_connect_le_ipsp_device(const bluetooth_device_address_t *bd_addr);
+
+int _bt_disconnect_le_ipsp_device(const bluetooth_device_address_t *bd_addr);
+
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */