CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_devices == NULL, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(device_count == NULL, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_get_storages(int mtp_device, int **mtp_storages, int* storage_count)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storages == NULL, MTP_ERROR_INVALID_PARAMETER);
cond_expr_ret(storage_count == NULL, MTP_ERROR_INVALID_PARAMETER);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_get_object_handles(int mtp_device, int mtp_storage, mtp_filetype_e file_type,
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
cond_expr_ret(object_handles == NULL, MTP_ERROR_INVALID_PARAMETER);
cond_expr_ret(object_count == NULL, MTP_ERROR_INVALID_PARAMETER);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
int mtp_delete_object(int mtp_device, int object_handle)
{
int ret = MTP_ERROR_NONE;
return ret;
}
+/* LCOV_EXCL_STOP */
int mtp_get_object(int mtp_device, int object_handle, char *dest_path)
{
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(dest_path == NULL, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_get_thumbnail(int mtp_device, int object_handle, char *dest_path)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(dest_path == NULL, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_add_mtp_event_cb(mtp_event_cb callback, void *user_data)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_deviceinfo_get_manufacturer_name(mtp_device, manufacturer_name);
TC_PRT("manufacturername %s", *manufacturer_name);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_deviceinfo_get_model_name(int mtp_device, char **model_name)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_deviceinfo_get_model_name(mtp_device, model_name);
TC_PRT("modelname %s", *model_name);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_deviceinfo_get_serial_number(int mtp_device, char **serial_number)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_deviceinfo_get_serial_number(mtp_device, serial_number);
TC_PRT("serial number %s", *serial_number);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_deviceinfo_get_device_version(int mtp_device, char **device_version)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_deviceinfo_get_device_version(mtp_device, device_version);
TC_PRT("device version %s", *device_version);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
int mtp_deviceinfo_get_bus_location(int mtp_device, int *bus_location)
{
int ret = MTP_ERROR_NONE;
return ret;
}
+/* LCOV_EXCL_STOP */
/* Storage Info */
int mtp_storageinfo_get_description(int mtp_device, int mtp_storage, char **description)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_storageinfo_get_free_space(int mtp_device, int mtp_storage, unsigned long long *free_space)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_storageinfo_get_max_capacity(int mtp_device, int mtp_storage, unsigned long long *max_capacity)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_storageinfo_get_storage_type(int mtp_device, int mtp_storage, mtp_storage_type_e *storage_type)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_storageinfo_get_volume_identifier(int mtp_device, int mtp_storage, char **volume_identifier)
CHECK_INIT();
CHECK_ACTIVATED();
cond_expr_ret(mtp_device == 0, MTP_ERROR_INVALID_PARAMETER);
+
+ /* LCOV_EXCL_START */
cond_expr_ret(mtp_storage == 0, MTP_ERROR_INVALID_PARAMETER);
/* precondition check end */
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
/* Object Info */
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_PARENT_OBJECT_HANDLE, parent_object_handle);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_storage(int mtp_device, int object_handle,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_STORAGE, mtp_storage);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_association_desc(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_ASSOCIATION_DESC, asso_desc);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_association_type(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_ASSOCIATION_TYPE, asso_type);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_size(int mtp_device, int object_handle, int *size)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_SIZE, size);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_date_created(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_DATE_CREATED, data_created);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_date_modified(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_DATE_MODIFIED, data_modified);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_file_type(int mtp_device, int object_handle, mtp_filetype_e *file_type)
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_FILE_TYPE, (int*)file_type);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_image_bit_depth(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_IMAGE_BIT_DEPTH, depth);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_image_pix_width(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_IMAGE_PIX_WIDTH, width);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_image_pix_height(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_IMAGE_PIX_HEIGHT, height);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_thumbnail_size(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_THUMBNAIL_SIZE, size);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_thumbnail_file_type(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_THUMBNAIL_FILE_TYPE, (int*)file_type);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_thumbnail_pix_height(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_THUMBNAIL_HEIGHT, height);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_thumbnail_pix_width(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property(mtp_device,
object_handle, MTP_PROPERTY_THUMBNAIL_WIDTH, width);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_file_name(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property_string(mtp_device,
object_handle, MTP_PROPERTY_FILENAME, filename);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
int mtp_objectinfo_get_keywords(int mtp_device,
/* precondition check end */
+ /* LCOV_EXCL_START */
ret = mtp_gdbus_objectinfo_get_property_string(mtp_device,
object_handle, MTP_PROPERTY_KEYWORDS, keywords);
_END();
return ret;
+ /* LCOV_EXCL_STOP */
}
+/* LCOV_EXCL_START */
int mtp_objectinfo_get_object_info(int mtp_device,
int object_handle, mtp_object_info **object_info)
{
return ret;
}
+/* LCOV_EXCL_STOP */