summaryrefslogtreecommitdiffstats
path: root/utils/include/bt_utils.h
diff options
context:
space:
mode:
authorMatthew Xie <mattx@google.com>2012-10-26 12:29:29 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-26 12:29:30 -0700
commit23ad5920f8c2dfdbd2bac8c4d7b244226a77c644 (patch)
tree21f8de49ed14d3f69c4c19438f22c3c5f46f9545 /utils/include/bt_utils.h
parent9ab1946281916b06df6cb2e5eb37ad12cd4dce4a (diff)
parent520b756328dcf4a54cf25f5d16177aa17fdbce31 (diff)
downloadexternal_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.zip
external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.gz
external_bluetooth_bluedroid-23ad5920f8c2dfdbd2bac8c4d7b244226a77c644.tar.bz2
Merge "Bump up priority of a few tasks that could affect a2dp" into jb-mr1-dev
Diffstat (limited to 'utils/include/bt_utils.h')
-rw-r--r--utils/include/bt_utils.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/utils/include/bt_utils.h b/utils/include/bt_utils.h
new file mode 100644
index 0000000..ef4fc18
--- /dev/null
+++ b/utils/include/bt_utils.h
@@ -0,0 +1,42 @@
+/******************************************************************************
+ *
+ * Copyright (C) 2009-2012 Broadcom Corporation
+ *
+ * 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
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ ******************************************************************************/
+
+#ifndef BT_UTILS_H
+#define BT_UTILS_H
+
+/*******************************************************************************
+** Type definitions
+********************************************************************************/
+
+typedef enum {
+ TASK_HIGH_MEDIA = 0,
+ TASK_HIGH_GKI_TIMER,
+ TASK_HIGH_BTU,
+ TASK_HIGH_HCI_WORKER,
+ TASK_HIGH_MAX
+} tHIGH_PRIORITY_TASK;
+
+/*******************************************************************************
+** Functions
+********************************************************************************/
+
+void bt_utils_init();
+void bt_utils_cleanup();
+void raise_priority_a2dp(tHIGH_PRIORITY_TASK high_task);
+
+#endif /* BT_UTILS_H */