diff options
Diffstat (limited to 'java/BluetoothManager.java')
-rw-r--r-- | java/BluetoothManager.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/java/BluetoothManager.java b/java/BluetoothManager.java index 1e3d06d7..9de5a84c 100644 --- a/java/BluetoothManager.java +++ b/java/BluetoothManager.java @@ -41,9 +41,19 @@ public class BluetoothManager } public native BluetoothType getBluetoothType(); - public native BluetoothObject getObject(BluetoothType type, String name, + + public BluetoothObject getObject(BluetoothType type, String name, + String identifier, BluetoothObject parent) { + return getObject(type.ordinal(), name, identifier, parent); + } + private native BluetoothObject getObject(int type, String name, String identifier, BluetoothObject parent); - public native List<BluetoothObject> getObjects(BluetoothType type, String name, + + public List<BluetoothObject> getObjects(BluetoothType type, String name, + String identifier, BluetoothObject parent) { + return getObjects(type.ordinal(), name, identifier, parent); + } + private native List<BluetoothObject> getObjects(int type, String name, String identifier, BluetoothObject parent); /** Returns a list of BluetoothAdapters available in the system |