Ignore vconfkey value change for AVC mode on
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-adapter.h
index cbe40e0..aa03b6d 100644 (file)
@@ -1,13 +1,11 @@
 /*
- * bluetooth-frwk
- *
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
+ * 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.
  * You may obtain a copy of the License at
  *
- *              http://www.apache.org/licenses/LICENSE-2.0
+ *             http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  *
  */
 
+
 #ifndef _BT_SERVICE_ADAPTER_H_
 #define _BT_SERVICE_ADAPTER_H_
 
 #include <glib.h>
 #include <sys/types.h>
 #include "bluetooth-api.h"
+#include "alarm.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -35,12 +35,37 @@ typedef enum {
        BT_DEACTIVATING,
 } bt_status_t;
 
+typedef enum {
+       BT_LE_DEACTIVATED,
+       BT_LE_ACTIVATED,
+       BT_LE_ACTIVATING,
+       BT_LE_DEACTIVATING,
+} bt_le_status_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);
+
+int _bt_enable_adapter_le(void);
+
+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);
 
 void _bt_handle_adapter_removed(void);
@@ -49,10 +74,22 @@ int _bt_check_adapter(int *status);
 
 void *_bt_get_adapter_agent(void);
 
+void _bt_service_register_poweroff_event(void);
+
+void _bt_service_unregister_poweroff_event(void);
+
+void _bt_service_register_vconf_handler(void);
+
+void _bt_service_unregister_vconf_handler(void);
+
+gboolean _bt_is_deactivated_by_flight_ps_mode(void);
+
 void _bt_set_discovery_status(gboolean mode);
 
 int _bt_get_local_address(bluetooth_device_address_t *local_address);
 
+int _bt_get_local_version(bluetooth_version_t *local_version);
+
 int _bt_get_local_name(bluetooth_device_name_t *local_name);
 
 int _bt_set_local_name(char *local_name);
@@ -63,33 +100,89 @@ int _bt_get_discoverable_mode(int *mode);
 
 int _bt_set_discoverable_mode(int discoverable_mode, int timeout);
 
+gboolean _bt_is_connectable(void);
+
+int _bt_set_connectable(gboolean connectable);
+
 int _bt_start_discovery(void);
 
+int _bt_start_custom_discovery(bt_discovery_role_type_t role);
+
 int _bt_cancel_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);
 
+int _bt_enable_rssi(bluetooth_device_address_t *bd_addr, int link_type,
+               int low_threshold, int in_range_threshold, int high_threshold);
+
+int _bt_get_rssi_strength(bluetooth_device_address_t *bd_addr,
+               int link_type);
+
+gboolean _bt_get_advertising_params(bluetooth_advertising_params_t *params);
+
 gboolean _bt_get_cancel_by_user(void);
 
 void _bt_set_cancel_by_user(gboolean value);
 
-gboolean _bt_get_discovering_property(void);
+gboolean _bt_get_discovering_property(bt_discovery_role_type_t discovery_type);
 
 unsigned int _bt_get_discoverable_timeout_property(void);
 
+void _bt_adapter_set_status(bt_status_t status);
+
 bt_status_t _bt_adapter_get_status(void);
 
-void _bt_handle_flight_mode_noti(void);
+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);
+
+void _bt_set_disabled(int result);
+
+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_get_remote_found_devices(GArray **dev_list);
+int _bt_service_remove_alarm(alarm_id_t alarm_id);
 
+gint compare_alarm(gconstpointer list_data, gconstpointer data);
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */