com_android_bluetooth.h revision c1c259c0ace7195240f1443c805995bfe8692a72
1/* 2 * Copyright (C) 2012 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17#ifndef COM_ANDROID_BLUETOOTH_H 18#define COM_ANDROID_BLUETOOTH_H 19 20#include "JNIHelp.h" 21#include "jni.h" 22#include "hardware/hardware.h" 23#include "hardware/bluetooth.h" 24 25namespace android { 26 27void checkAndClearExceptionFromCallback(JNIEnv* env, 28 const char* methodName); 29 30const bt_interface_t* getBluetoothInterface(); 31 32JNIEnv* getCallbackEnv(); 33 34int register_com_android_bluetooth_hfp(JNIEnv* env); 35 36int register_com_android_bluetooth_a2dp(JNIEnv* env); 37 38int register_com_android_bluetooth_avrcp(JNIEnv* env); 39 40int register_com_android_bluetooth_hid(JNIEnv* env); 41 42int register_com_android_bluetooth_hdp(JNIEnv* env); 43 44int register_com_android_bluetooth_pan(JNIEnv* env); 45 46int register_com_android_bluetooth_gatt (JNIEnv* env); 47 48} 49 50#endif /* COM_ANDROID_BLUETOOTH_H */ 51