return IOTCON_ERROR_NONE;
}
-API int iotcon_get_device_info(const char *host_address,
+API int iotcon_find_device_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_device_info_cb cb,
void *user_data)
case IOTCON_CONNECTIVITY_IPV4:
case IOTCON_CONNECTIVITY_IPV6:
case IOTCON_CONNECTIVITY_ALL:
- ret = icl_ioty_get_device_info(host_address, connectivity_type, cb, user_data);
+ ret = icl_ioty_find_device_info(host_address, connectivity_type, cb, user_data);
if (IOTCON_ERROR_NONE != ret) {
- ERR("icl_ioty_get_device_info() Fail(%d)", ret);
+ ERR("icl_ioty_find_device_info() Fail(%d)", ret);
return ret;
}
break;
return IOTCON_ERROR_NONE;
}
-API int iotcon_get_platform_info(const char *host_address,
+API int iotcon_find_platform_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_platform_info_cb cb,
void *user_data)
case IOTCON_CONNECTIVITY_IPV4:
case IOTCON_CONNECTIVITY_IPV6:
case IOTCON_CONNECTIVITY_ALL:
- ret = icl_ioty_get_platform_info(host_address, connectivity_type, cb, user_data);
+ ret = icl_ioty_find_platform_info(host_address, connectivity_type, cb, user_data);
if (IOTCON_ERROR_NONE != ret) {
- ERR("icl_ioty_get_platform_info() Fail(%d)", ret);
+ ERR("icl_ioty_find_platform_info() Fail(%d)", ret);
return ret;
}
break;
return IOTCON_ERROR_NONE;
}
-int icl_ioty_get_device_info(const char *host_address,
+int icl_ioty_find_device_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_device_info_cb cb,
void *user_data)
return IOTCON_ERROR_NONE;
}
-int icl_ioty_get_platform_info(const char *host_address,
+int icl_ioty_find_platform_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_platform_info_cb cb,
void *user_data)
bool is_secure,
iotcon_found_resource_cb cb,
void *user_data);
-int icl_ioty_get_device_info(const char *host_address,
+int icl_ioty_find_device_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_device_info_cb cb,
void *user_data);
-int icl_ioty_get_platform_info(const char *host_address,
+int icl_ioty_find_platform_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_platform_info_cb cb,
void *user_data);
void *user_data);
/**
- * @brief Specifies the type of function passed to iotcon_get_device_info().
+ * @brief Specifies the type of function passed to iotcon_find_device_info().
* @details The @a result could be one of #iotcon_error_e.
*
* @since_tizen 3.0
* @param[in] result The result code (0 on success, other wise a negative error value)
* @param[in] user_data The user data to pass to the function
*
- * @pre iotcon_get_device_info() will invoke this callback function.
+ * @pre iotcon_find_device_info() will invoke this callback function.
*
- * @see iotcon_get_device_info()
+ * @see iotcon_find_device_info()
* @see iotcon_device_info_get_property()
*/
typedef void (*iotcon_device_info_cb)(iotcon_device_info_h device_info,
iotcon_error_e result, void *user_data);
/**
- * @brief Gets the device information of remote server, asynchronously.
+ * @brief Finds the device information of remote server, asynchronously.
* @details Request device information to server and pass the information by calling
* iotcon_device_info_cb().\n
* @a host_address could be #IOTCON_MULTICAST_ADDRESS for multicast.\n
* @see iotcon_device_info_get_property()
* @see iotcon_set_timeout()
*/
-int iotcon_get_device_info(const char *host_address,
+int iotcon_find_device_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_device_info_cb cb,
void *user_data);
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
* @see iotcon_device_info_cb()
- * @see iotcon_get_device_info()
+ * @see iotcon_find_device_info()
*/
int iotcon_device_info_get_property(iotcon_device_info_h device_info,
iotcon_device_info_e property, char **value);
/**
- * @brief Specifies the type of function passed to iotcon_get_platform_info().
+ * @brief Specifies the type of function passed to iotcon_find_platform_info().
* @details The @a result could be one of #iotcon_error_e.
*
* @since_tizen 3.0
* @param[in] result The result code (0 on success, other wise a negative error value)
* @param[in] user_data The user data to pass to the function
*
- * @pre iotcon_get_platform_info() will invoke this callback function.
+ * @pre iotcon_find_platform_info() will invoke this callback function.
*
- * @see iotcon_get_platform_info()
+ * @see iotcon_find_platform_info()
* @see iotcon_platform_info_get_property()
*/
typedef void (*iotcon_platform_info_cb)(iotcon_platform_info_h platform_info,
iotcon_error_e result, void *user_data);
/**
- * @brief Gets the platform information of remote server, asynchronously.
+ * @brief Finds the platform information of remote server, asynchronously.
* @details Request platform information to server and pass the information by calling
* iotcon_platform_info_cb().\n
* @a host_address could be #IOTCON_MULTICAST_ADDRESS for multicast.\n
* @see iotcon_platform_info_get_property()
* @see iotcon_set_timeout()
*/
-int iotcon_get_platform_info(const char *host_address,
+int iotcon_find_platform_info(const char *host_address,
iotcon_connectivity_type_e connectivity_type,
iotcon_platform_info_cb cb,
void *user_data);
* @retval #IOTCON_ERROR_INVALID_PARAMETER Invalid parameter
*
* @see iotcon_platform_info_cb()
- * @see iotcon_get_platform_info()
+ * @see iotcon_find_platform_info()
*/
int iotcon_platform_info_get_property(iotcon_platform_info_h platform_info,
iotcon_platform_info_e property, char **value);
*/
/**
- * @brief Connects to the iotcon service.
+ * @brief Initializes to the iotcon service.
* @details Call this function to start IoTCon.
*
* @since_tizen 3.0
int iotcon_initialize();
/**
- * @brief Disconnects from the iotcon service.
+ * @brief Deinitializes from the iotcon service.
* @details Frees the resources allocated to IoTCon.
*
* @since_tizen 3.0
/**
* @brief Gets the timeout seconds of asynchronous API.
- * @details This API get the timeout of iotcon_get_device_info(),
- * iotcon_get_platform_info(), iotcon_find_resource(),
+ * @details This API get the timeout of iotcon_find_device_info(),
+ * iotcon_find_platform_info(), iotcon_find_resource(),
* iotcon_remote_resource_get(), iotcon_remote_resource_put(),
* iotcon_remote_resource_post() and iotcon_remote_resource_delete().
*
/**
* @brief Sets the timeout seconds of asynchronous APIs.
- * @details This API set the timeout of iotcon_get_device_info(),
- * iotcon_get_platform_info(), iotcon_find_resource(),
+ * @details This API set the timeout of iotcon_find_device_info(),
+ * iotcon_find_platform_info(), iotcon_find_resource(),
* iotcon_remote_resource_get(), iotcon_remote_resource_put(),
* iotcon_remote_resource_post() and iotcon_remote_resource_delete().\n
* Default timeout interval value is 30.
return -1;
}
- ret = iotcon_get_device_info(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_ALL,
+ ret = iotcon_find_device_info(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_ALL,
_request_device_info, NULL);
if (IOTCON_ERROR_NONE != ret) {
- ERR("iotcon_get_device_info() Fail(%d)", ret);
+ ERR("iotcon_find_device_info() Fail(%d)", ret);
iotcon_deinitialize();
return -1;
}
- ret = iotcon_get_platform_info(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_ALL,
+ ret = iotcon_find_platform_info(IOTCON_MULTICAST_ADDRESS, IOTCON_CONNECTIVITY_ALL,
_request_platform_info, NULL);
if (IOTCON_ERROR_NONE != ret) {
- ERR("iotcon_get_platform_info() Fail(%d)", ret);
+ ERR("iotcon_find_platform_info() Fail(%d)", ret);
iotcon_deinitialize();
return -1;
}