Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aecb2c5f authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Remove function when Bluetooth is not present in the hardware.

Change-Id: I3892044723402597b7db1f7df683c08804c1fb96
parent 595ca706
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -928,8 +928,8 @@ static jboolean discoverServicesNative(JNIEnv *env, jobject object,
    return JNI_FALSE;
}

static jintArray extract_handles(JNIEnv *env, DBusMessage *reply) {
#ifdef HAVE_BLUETOOTH
static jintArray extract_handles(JNIEnv *env, DBusMessage *reply) {
    jint *handles;
    jintArray handleArray = NULL;
    int len;
@@ -950,9 +950,8 @@ static jintArray extract_handles(JNIEnv *env, DBusMessage *reply) {
        LOG_AND_FREE_DBUS_ERROR(&err);
    }
    return handleArray;
#endif
    return NULL;
}
#endif

static jintArray addReservedServiceRecordsNative(JNIEnv *env, jobject object,
                                                jintArray uuids) {