Ignore vconfkey value change for AVC mode on
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-adapter.h
index b68c649..aa03b6d 100644 (file)
@@ -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.
 #include <glib.h>
 #include <sys/types.h>
 #include "bluetooth-api.h"
+#include "alarm.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#define BT_LE_SCAN_INTERVAL_MIN 2.5
-#define BT_LE_SCAN_INTERVAL_MAX 10240
-#define BT_LE_SCAN_WINDOW_MIN 2.5
-#define BT_LE_SCAN_WINDOW_MAX 10240
-
 typedef enum {
        BT_DEACTIVATED,
        BT_ACTIVATED,
@@ -52,13 +42,16 @@ typedef enum {
        BT_LE_DEACTIVATING,
 } bt_le_status_t;
 
-typedef enum {
-       BT_LE_PASSIVE_SCAN = 0x00,
-       BT_LE_ACTIVE_SCAN
-} bt_le_discovery_type_t;
+int _bt_adapter_request_delayed(int function);
+
+int _bt_enable_adapter_check_status(void);
 
 int _bt_enable_adapter(void);
 
+int _bt_disable_adapter_check_status(void);
+
+void _bt_keep_bt_status_vconf(void);
+
 int _bt_disable_adapter(void);
 
 int _bt_recover_adapter(void);
@@ -69,6 +62,8 @@ int _bt_disable_adapter_le(void);
 
 int _bt_reset_adapter(void);
 
+void _bt_set_bluetooth_status(void);
+
 int _bt_enable_core(void);
 
 void _bt_handle_adapter_added(void);
@@ -79,17 +74,17 @@ int _bt_check_adapter(int *status);
 
 void *_bt_get_adapter_agent(void);
 
-void _bt_service_register_vconf_handler(void);
+void _bt_service_register_poweroff_event(void);
 
-void _bt_service_unregister_vconf_handler(void);
+void _bt_service_unregister_poweroff_event(void);
 
-void _bt_set_discovery_status(gboolean mode);
+void _bt_service_register_vconf_handler(void);
 
-void _bt_set_le_discovery_status(gboolean mode);
+void _bt_service_unregister_vconf_handler(void);
 
-void _bt_set_le_discovery_type(bt_le_discovery_type_t type);
+gboolean _bt_is_deactivated_by_flight_ps_mode(void);
 
-bt_le_discovery_type_t _bt_get_le_discovery_type(void);
+void _bt_set_discovery_status(gboolean mode);
 
 int _bt_get_local_address(bluetooth_device_address_t *local_address);
 
@@ -115,21 +110,19 @@ int _bt_start_custom_discovery(bt_discovery_role_type_t role);
 
 int _bt_cancel_discovery(void);
 
-int _bt_start_le_discovery(void);
-
-int _bt_stop_le_discovery(void);
-
 int _bt_get_bonded_devices(GArray **dev_list);
 
+int _bt_get_profile_connected_devices(char *profile_uuid, GArray **addr_list);
+
 int _bt_get_bonded_device_info(bluetooth_device_address_t *device_address,
                                bluetooth_device_info_t *dev_info);
 
+int _bt_is_alias_set(bluetooth_device_address_t *device_address, gboolean *is_alias_set);
+
 int _bt_get_timeout_value(int *timeout);
 
 gboolean _bt_is_discovering(void);
 
-gboolean _bt_is_le_discovering(void);
-
 int _bt_enable_rssi(bluetooth_device_address_t *bd_addr, int link_type,
                int low_threshold, int in_range_threshold, int high_threshold);
 
@@ -150,14 +143,16 @@ void _bt_adapter_set_status(bt_status_t status);
 
 bt_status_t _bt_adapter_get_status(void);
 
-void _bt_handle_flight_mode_noti(void);
-
-int _bt_get_remote_found_devices(GArray **dev_list);
-
 void _bt_adapter_set_le_status(bt_le_status_t status);
 
 bt_le_status_t _bt_adapter_get_le_status(void);
 
+void _bt_adapter_set_vconf_status(gboolean enable);
+
+void _bt_set_booting_time_flag(gboolean flag);
+
+void _bt_set_le_intended_status(gboolean value);
+
 void _bt_adapter_start_enable_timer(void);
 
 void _bt_adapter_start_le_enable_timer(void);
@@ -168,8 +163,26 @@ void _bt_set_le_disabled(int result);
 
 int _bt_set_le_privacy(gboolean set_privacy);
 
+int _bt_set_le_static_random_address(gboolean is_enable);
+
 int _bt_set_manufacturer_data(bluetooth_manufacturer_data_t *m_data);
 
+void _bt_start_log_dump(const char *path);
+
+int _bt_disable_cb(void);
+
+int _bt_get_enable_timer_id(void);
+
+void _bt_force_hci_dump(int timeout);
+
+typedef int (*bt_set_alarm_cb) (alarm_id_t alarm_id, void* user_param);
+
+int _bt_service_set_alarm(int timeout, bt_set_alarm_cb call_back,
+                               void *user_data, alarm_id_t *alarm_id);
+
+int _bt_service_remove_alarm(alarm_id_t alarm_id);
+
+gint compare_alarm(gconstpointer list_data, gconstpointer data);
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */