*
* @see mtp_get_storage_ids()
*/
-MTP_API int mtp_storageinfo_get_freespace(int device_handle, int storage_id, guint64 *freespace);
+MTP_API int mtp_storageinfo_get_freespace(int device_handle, int storage_id, unsigned long long *freespace);
/**
* @brief Get the max capacity of the storage information.
*
* @see mtp_get_storage_ids()
*/
-MTP_API int mtp_storageinfo_get_maxcapacity(int device_handle, int storage_id, guint64 *maxcapacity);
+MTP_API int mtp_storageinfo_get_maxcapacity(int device_handle, int storage_id, unsigned long long *maxcapacity);
/**
* @brief Get the storage type of the storage information.
Name: capi-network-mtp
Summary: A MTP library in Native API
-Version: 1.2.2
+Version: 1.2.3
Release: 1
Group: Network & Connectivity/Other
License: Apache-2.0
return ret;
}
-int mtp_storageinfo_get_freespace(int device_handle, int storage_id, guint64 *freespace)
+int mtp_storageinfo_get_freespace(int device_handle, int storage_id, unsigned long long *freespace)
{
int ret = MTP_ERROR_NONE;
/* precondition check end */
- ret = mtp_gdbus_storageinfo_get_freespace(device_handle, storage_id, freespace);
+ ret = mtp_gdbus_storageinfo_get_freespace(device_handle, storage_id, (guint64 *)freespace);
- TC_PRT("freespace %d", (int)*freespace);
+ TC_PRT("freespace %llu", *freespace);
_END();
return ret;
}
-int mtp_storageinfo_get_maxcapacity(int device_handle, int storage_id, guint64 *maxcapacity)
+int mtp_storageinfo_get_maxcapacity(int device_handle, int storage_id, unsigned long long *maxcapacity)
{
int ret = MTP_ERROR_NONE;
/* precondition check end */
- ret = mtp_gdbus_storageinfo_get_maxcapacity(device_handle, storage_id, maxcapacity);
+ ret = mtp_gdbus_storageinfo_get_maxcapacity(device_handle, storage_id, (guint64 *)maxcapacity);
- TC_PRT("maxcapacity %d", (int)*maxcapacity);
+ TC_PRT("maxcapacity %llu", *maxcapacity);
_END();
int storageinfo_test_get_freespace(void)
{
int ret = 0;
- guint64 value = 0;
+ unsigned long long value = 0;
BEGIN();
ret = mtp_storageinfo_get_freespace(handle, strg_handle, &value);
- TC_PRT("ret[%d]: freespace[%d]", ret, (int)value);
+ TC_PRT("ret[%d]: freespace[%llu]", ret, value);
END();
return ret;
int storageinfo_test_get_maxcapacity(void)
{
int ret = 0;
- guint64 value = 0;
+ unsigned long long value = 0;
BEGIN();
ret = mtp_storageinfo_get_maxcapacity(handle, strg_handle, &value);
- TC_PRT("ret[%d]: maxcapacity[%d]", ret, (int)value);
+ TC_PRT("ret[%d]: maxcapacity[%llu]", ret, value);
END();
return ret;
tc_table_t tc_table[] = {
/* manager api */
{"mtp_initialize", 1, manager_test_initialize},
- {"mtp_get_device_list", 2, manager_test_get_device_list},
+ {"mtp_get_device_list", 2, manager_test_get_device_list},
{"mtp_get_device_handle", 3, manager_test_get_device_handle},
{"mtp_get_storage_ids", 4, manager_test_get_storage_ids},
{"mtp_get_object_handles", 5, manager_test_get_object_handles},