Home | History | Annotate | Download | only in jni
      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 
     25 namespace android {
     26 
     27 void checkAndClearExceptionFromCallback(JNIEnv* env,
     28                                         const char* methodName);
     29 
     30 const bt_interface_t* getBluetoothInterface();
     31 
     32 JNIEnv* getCallbackEnv();
     33 
     34 int register_com_android_bluetooth_hfp(JNIEnv* env);
     35 
     36 int register_com_android_bluetooth_a2dp(JNIEnv* env);
     37 
     38 int register_com_android_bluetooth_avrcp(JNIEnv* env);
     39 
     40 int register_com_android_bluetooth_hid(JNIEnv* env);
     41 
     42 int register_com_android_bluetooth_hdp(JNIEnv* env);
     43 
     44 int register_com_android_bluetooth_pan(JNIEnv* env);
     45 
     46 int register_com_android_bluetooth_gatt (JNIEnv* env);
     47 
     48 }
     49 
     50 #endif /* COM_ANDROID_BLUETOOTH_H */
     51