int mtp_storageinfo_get_description(mtp_device_h mtp_device, mtp_storage_h mtp_storage, char **description);
/**
- * @brief Gets the free space of the storage information.
+ * @brief Gets the free space of the storage information in bytes.
* @since_tizen 3.0
*
* @param [in] mtp_device The MTP device
* @param [in] mtp_storage The MTP storage
- * @param [out] free_space The free space of Storage information
+ * @param [out] free_space The free space of Storage information (bytes)
*
* @return 0 on success, otherwise a negative error value.
* @retval #MTP_ERROR_NONE Successful
int mtp_storageinfo_get_free_space(mtp_device_h mtp_device, mtp_storage_h mtp_storage, unsigned long long *free_space);
/**
- * @brief Gets the max capacity of the storage information.
+ * @brief Gets the max capacity of the storage information in bytes.
* @since_tizen 3.0
*
* @param [in] mtp_device The MTP device
* @param [in] mtp_storage The MTP storage
- * @param [out] max_capacity The max capacity of Storage information
+ * @param [out] max_capacity The max capacity of Storage information (bytes)
*
* @return 0 on success, otherwise a negative error value.
* @retval #MTP_ERROR_NONE Successful
if (__is_initialized == true && ref_count == 0) {
mtp_db_deinit();
+ mtp_gdbus_manager_remove_all_event_cb();
ret = mtp_gdbus_manager_deinitialize();
__is_initialized = false;
}
return MTP_ERROR_NONE;
}
+mtp_error_e mtp_gdbus_manager_remove_all_event_cb(void)
+{
+ g_slist_free_full(event_cb_list, g_free);
+ event_cb_list = NULL;
+
+ return MTP_ERROR_NONE;
+}
+
mtp_error_e mtp_gdbus_manager_initialize(void)
{
mtp_error_e result = MTP_ERROR_NONE;