Matthew Xie | 6c91bc0 | 2012-02-16 18:47:53 -0800 | [diff] [blame] | 1 | /* |
broodplank | 0c58930 | 2013-12-29 05:41:41 +0100 | [diff] [blame] | 2 | * Copyright (C) 2013 The Linux Foundation. All rights reserved |
| 3 | * Not a Contribution. |
Zhihai Xu | ede67c2 | 2012-10-23 17:01:01 -0700 | [diff] [blame] | 4 | * Copyright (C) 2012 The Android Open Source Project |
| 5 | * |
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
Matthew Xie | 6c91bc0 | 2012-02-16 18:47:53 -0800 | [diff] [blame] | 17 | */ |
| 18 | |
| 19 | #ifndef COM_ANDROID_BLUETOOTH_H |
| 20 | #define COM_ANDROID_BLUETOOTH_H |
| 21 | |
| 22 | #include "JNIHelp.h" |
| 23 | #include "jni.h" |
| 24 | #include "hardware/hardware.h" |
| 25 | #include "hardware/bluetooth.h" |
| 26 | |
| 27 | namespace android { |
| 28 | |
| 29 | void checkAndClearExceptionFromCallback(JNIEnv* env, |
| 30 | const char* methodName); |
| 31 | |
| 32 | const bt_interface_t* getBluetoothInterface(); |
| 33 | |
| 34 | JNIEnv* getCallbackEnv(); |
| 35 | |
| 36 | int register_com_android_bluetooth_hfp(JNIEnv* env); |
| 37 | |
broodplank | 0c58930 | 2013-12-29 05:41:41 +0100 | [diff] [blame] | 38 | int register_com_android_bluetooth_hfpclient(JNIEnv* env); |
| 39 | |
Matthew Xie | 6c91bc0 | 2012-02-16 18:47:53 -0800 | [diff] [blame] | 40 | int register_com_android_bluetooth_a2dp(JNIEnv* env); |
| 41 | |
Zhihai Xu | c1c259c | 2013-03-14 11:51:06 -0700 | [diff] [blame] | 42 | int register_com_android_bluetooth_avrcp(JNIEnv* env); |
| 43 | |
Matthew Xie | 35207a5 | 2012-03-21 23:11:40 -0700 | [diff] [blame] | 44 | int register_com_android_bluetooth_hid(JNIEnv* env); |
| 45 | |
Matthew Xie | 676cb1b | 2012-03-22 17:32:29 -0700 | [diff] [blame] | 46 | int register_com_android_bluetooth_hdp(JNIEnv* env); |
| 47 | |
fredc | 6654f5c | 2012-04-12 00:18:52 -0700 | [diff] [blame] | 48 | int register_com_android_bluetooth_pan(JNIEnv* env); |
| 49 | |
Ganesh Ganapathi Batta | 03b8386 | 2013-02-05 15:38:27 -0800 | [diff] [blame] | 50 | int register_com_android_bluetooth_gatt (JNIEnv* env); |
| 51 | |
Matthew Xie | 6c91bc0 | 2012-02-16 18:47:53 -0800 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | #endif /* COM_ANDROID_BLUETOOTH_H */ |