X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Fsrc%2Fbt_le_adapter%2Fandroid%2Fcaleserver.h;h=516075e3f686e31d2ea540ce6b4c84cd3dbeb8ac;hb=8229635f6d207516ccbbdf23b13be164e0fc1787;hp=46d6b513a4f01c0c824e6b12a4e59f2ae7e6238a;hpb=8198d7c028dfa5f21dd08a9fae1b2ff60534daed;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/src/bt_le_adapter/android/caleserver.h b/resource/csdk/connectivity/src/bt_le_adapter/android/caleserver.h index 46d6b51..516075e 100644 --- a/resource/csdk/connectivity/src/bt_le_adapter/android/caleserver.h +++ b/resource/csdk/connectivity/src/bt_le_adapter/android/caleserver.h @@ -45,10 +45,9 @@ typedef void (*CAPacketReceiveCallback)(const char *address, const uint8_t *data /** * initialize server for BLE. - * @param[in] handle thread pool handle object. * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). */ -CAResult_t CALEServerInitialize(ca_thread_pool_t handle); +CAResult_t CALEServerInitialize(); /** * terminate client for BLE. @@ -129,8 +128,9 @@ CAResult_t CALEServerCreateJniInterfaceObject(); /** * start advertise in gatt server. + * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). */ -CAResult_t CALEStartAdvertise(); +CAResult_t CALEServerStartAdvertise(); /** * start advertise in gatt server. @@ -139,7 +139,13 @@ CAResult_t CALEStartAdvertise(); * advertisement result. * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). */ -CAResult_t CALEServerStartAdvertise(JNIEnv *env, jobject advertiseCallback); +CAResult_t CALEServerStartAdvertiseImpl(JNIEnv *env, jobject advertiseCallback); + +/** + * stop advertise in gatt server. + * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). + */ +CAResult_t CALEServerStopAdvertise(); /** * stop advertise in gatt server. @@ -148,7 +154,7 @@ CAResult_t CALEServerStartAdvertise(JNIEnv *env, jobject advertiseCallback); * advertisement result. * @return ::CA_STATUS_OK or ERROR CODES (::CAResult_t error codes in cacommon.h). */ -CAResult_t CALEServerStopAdvertise(JNIEnv *env, jobject advertiseCallback); +CAResult_t CALEServerStopAdvertiseImpl(JNIEnv *env, jobject advertiseCallback); /** * open a gatt server. @@ -318,6 +324,19 @@ CAResult_t CALEServerInitConditionVaraibles(); */ void CALEServerTerminateConditionVaraibles(); +/** + * check connection status. + * @param[in] address the address of the remote device. + * @return true or false. + */ +bool CALEServerIsConnected(const char* address); + +/** + * get MTU size. + * @param[in] address the address of the remote device. + * @return mtu size negotiated from remote device. + */ +uint16_t CALEServerGetMtuSize(const char* address); #ifdef __cplusplus } /* extern "C" */ #endif