#include "cacommon.h"
#include "cathreadpool.h"
-#include "uarraylist.h"
#include "caedrinterface.h"
#include "jni.h"
#endif
/**
+ * EDR Socket Information for EDR transport
+ */
+typedef struct
+{
+ jobject deviceSocket; /**< Bluetooth device socket info */
+ jobject inputStream; /**< InputStream for read data */
+} CAEDRSocketInfo_t;
+
+/**
* Get address from device socket.
* @param[in] env JNI interface pointer.
* @param[in] bluetoothSocketObj bluetooth socket object.
/**
* Get device socket object from the list.
- * @param[in] idx index of device list.
+ * @param[in] index index of device list.
* @return Device socket object or NULL.
*/
-jobject CAEDRNativeGetDeviceSocket(uint32_t idx);
+jobject CAEDRNativeGetDeviceSocket(uint32_t index);
/**
* Get device socket address.
jobject CAEDRNativeGetDeviceSocketBaseAddr(JNIEnv *env, const char* remoteAddress);
/**
+ * Get input stream object from the list.
+ * @param[in] index index of device list.
+ * @return Input stream object or NULL.
+ */
+jobject CAEDRNativeGetInputStream(uint32_t index);
+
+/**
* Get length of device socket list.
* @return length of list.
*/