Imported Upstream version 1.2.0
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / bt_le_adapter / android / caleutils.h
index 7f3e312..dd01468 100644 (file)
@@ -39,6 +39,7 @@ extern "C"
 #define CA_LE_AUTO_CONNECT_FLAG    1
 #define CA_LE_CONNECTION_STATE     2
 #define CA_LE_SEND_STATE           3
+#define CA_LE_DESCRIPTOR_FOUND     4
 
 /* Service UUID */
 static const char OIC_GATT_SERVICE_UUID[] = CA_GATT_SERVICE_UUID;
@@ -69,18 +70,6 @@ static const uint16_t STATE_SERVICE_CONNECTED = 2;
 static const uint16_t STATE_DISCONNECTED = 1;
 
 /**
- * get method ID for method Name and class
- * @param[in]   env              JNI interface pointer.
- * @param[in]   className        android class.
- * @param[in]   methodName       android method name.
- * @param[in]   methodFormat     method type of methodName.
- * @return  jmethodID of the method.
- */
-jmethodID CALEGetJNIMethodID(JNIEnv *env, const char* className,
-                             const char* methodName,
-                             const char* methodFormat);
-
-/**
  * get uuid(jni object) from uuid(character).
  * @param[in]   env              JNI interface pointer.
  * @param[in]   uuid             uuid(character).
@@ -172,6 +161,14 @@ jint CALEGetConstantsValue(JNIEnv *env, const char* classType, const char* name)
  */
 jobject CALEGetRemoteDevice(JNIEnv *env, jstring address);
 
+/**
+ * get address from gatt profile object.
+ * @param[in]   env                   JNI interface pointer.
+ * @param[in]   gatt                  gatt profile object.
+ * @return  LE address.
+ */
+jstring CALEGetAddressFromGatt(JNIEnv *env, jobject gatt);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif