[Android] firefoxjds:
Down to two Errors... Hoping for help

Some one helped get me this far, but I cant seem to progress past these two points:

Error #1

packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp.cpp:164:74: error: too few arguments to function

if ( (status = sBluetoothA2dpInterface->init(&sBluetoothA2dpCallbacks)) != BT_STATUS_SUCCESS)

I've compared it to similar coding, I cant see where the problem lies, maybe someone can help.

Error #2 a) packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp :1136:26: error: 'const struct bt_interface_t' has no member named 'interop_database_clear'

sBluetoothInterface->interop_database_clear();

Heres the actual code its talking about:

static void interopDatabaseClearNative(JNIEnv *env, jobject obj) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

sBluetoothInterface->interop_database_clear();

}

Error #2 b) packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp :1150:26: error: 'const struct bt_interface_t' has no member named 'interop_database_add'

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

And here the actual code for this one:

}

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

env->ReleaseByteArrayElements(address, addr, 0);

}

And both pieces fit together like so:

static void interopDatabaseClearNative(JNIEnv *env, jobject obj) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

sBluetoothInterface->interop_database_clear();

}

static void interopDatabaseAddNative(JNIEnv *env, jobject obj, int feature,

jbyteArray address, int length) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

jbyte *addr = env->GetByteArrayElements(address, NULL);

if (addr == NULL) {

jniThrowIOException(env, EINVAL);

return;

}

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

env->ReleaseByteArrayElements(address, addr, 0);

}

I cant figure it out. The code looks fine to me, But I don't really understand code. Wondering if the computer is reading it properly. I would also really love to know how to edit it so I can continue my build. Really appreciate any help.

http://pastebin.com/PHWhmT6F

---------- Post added at 02:57 AM ---------- Previous post was at 01:58 AM ----------

Some one helped get me this far, but I cant seem to progress past these two points:

Error #1

packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp.cpp:164:74: error: too few arguments to function

if ( (status = sBluetoothA2dpInterface->init(&sBluetoothA2dpCallbacks)) != BT_STATUS_SUCCESS)

I've compared it to similar coding, I cant see where the problem lies, maybe someone can help.

Error #2 a) packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp :1136:26: error: 'const struct bt_interface_t' has no member named 'interop_database_clear'

sBluetoothInterface->interop_database_clear();

Heres the actual code its talking about:

static void interopDatabaseClearNative(JNIEnv *env, jobject obj) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

sBluetoothInterface->interop_database_clear();

}

Error #2 b) packages/apps/Bluetooth/jni/com_android_bluetooth_btservice_AdapterService.cpp :1150:26: error: 'const struct bt_interface_t' has no member named 'interop_database_add'

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

And here the actual code for this one:

}

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

env->ReleaseByteArrayElements(address, addr, 0);

}

And both pieces fit together like so:

static void interopDatabaseClearNative(JNIEnv *env, jobject obj) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

sBluetoothInterface->interop_database_clear();

}

static void interopDatabaseAddNative(JNIEnv *env, jobject obj, int feature,

jbyteArray address, int length) {

ALOGV("%s()", __FUNCTION__);

if (!sBluetoothInterface) return;

jbyte *addr = env->GetByteArrayElements(address, NULL);

if (addr == NULL) {

jniThrowIOException(env, EINVAL);

return;

}

sBluetoothInterface->interop_database_add(feature, (bt_bdaddr_t *)addr, length);

env->ReleaseByteArrayElements(address, addr, 0);

}

I cant figure it out. The code looks fine to me, But I don't really understand code. Wondering if the computer is reading it properly. I would also really love to know how to edit it so I can continue my build. Really appreciate any help.﻿