com_android_bluetooth.h revision ede67c26e7b2564ea35db6d9b3027a269c150e13
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_hid(JNIEnv* env);
39
40int register_com_android_bluetooth_hdp(JNIEnv* env);
41
42int register_com_android_bluetooth_pan(JNIEnv* env);
43
44}
45
46#endif /* COM_ANDROID_BLUETOOTH_H */
47