blob: ce3bbb0287c8b0f87992c7d56ee74c0353247934 [file] [log] [blame]
Matthew Xie6c91bc02012-02-16 18:47:53 -08001/*
broodplank0c589302013-12-29 05:41:41 +01002 * Copyright (C) 2013 The Linux Foundation. All rights reserved
3 * Not a Contribution.
Zhihai Xuede67c22012-10-23 17:01:01 -07004 * 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 Xie6c91bc02012-02-16 18:47:53 -080017 */
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
27namespace android {
28
29void checkAndClearExceptionFromCallback(JNIEnv* env,
30 const char* methodName);
31
32const bt_interface_t* getBluetoothInterface();
33
34JNIEnv* getCallbackEnv();
35
36int register_com_android_bluetooth_hfp(JNIEnv* env);
37
broodplank0c589302013-12-29 05:41:41 +010038int register_com_android_bluetooth_hfpclient(JNIEnv* env);
39
Matthew Xie6c91bc02012-02-16 18:47:53 -080040int register_com_android_bluetooth_a2dp(JNIEnv* env);
41
Zhihai Xuc1c259c2013-03-14 11:51:06 -070042int register_com_android_bluetooth_avrcp(JNIEnv* env);
43
Matthew Xie35207a52012-03-21 23:11:40 -070044int register_com_android_bluetooth_hid(JNIEnv* env);
45
Matthew Xie676cb1b2012-03-22 17:32:29 -070046int register_com_android_bluetooth_hdp(JNIEnv* env);
47
fredc6654f5c2012-04-12 00:18:52 -070048int register_com_android_bluetooth_pan(JNIEnv* env);
49
Ganesh Ganapathi Batta03b83862013-02-05 15:38:27 -080050int register_com_android_bluetooth_gatt (JNIEnv* env);
51
Matthew Xie6c91bc02012-02-16 18:47:53 -080052}
53
54#endif /* COM_ANDROID_BLUETOOTH_H */