Skip to content
Snippets Groups Projects
Commit e4a9bfa2 authored by Richard Cordovano's avatar Richard Cordovano
Browse files

Change position of device id param in TskAutoDb::addImageDetails for API consistency

parent 9045a534
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ uint8_t
return retval;
}
if (addImageDetails(a_deviceId, a_images, a_num)) {
if (addImageDetails(a_images, a_num, a_deviceId)) {
return 1;
}
return 0;
......@@ -183,7 +183,7 @@ uint8_t
img_ptrs[i] = img2;
}
if (addImageDetails(a_deviceId, img_ptrs, a_num)) {
if (addImageDetails(img_ptrs, a_num, a_deviceId)) {
//cleanup
for (int i = 0; i < a_num; ++i) {
free(img_ptrs[i]);
......@@ -207,13 +207,13 @@ uint8_t
/**
* Adds image details to the existing database tables.
*
* @param deviceId An ASCII-printable identifier for the device associated with the data source that is intended to be unique across multiple cases (e.g., a UUID).
* @param imgPaths The paths to the image splits
* @param numPaths The number of paths
* @param deviceId An ASCII-printable identifier for the device associated with the data source that is intended to be unique across multiple cases (e.g., a UUID).
* @return Returns 0 for success, 1 for failure
*/
uint8_t
TskAutoDb::addImageDetails(const char* deviceId, const char *const imgPaths[], int numPaths)
TskAutoDb::addImageDetails(const char *const imgPaths[], int numPaths, const char* deviceId)
{
string md5 = "";
#if HAVE_LIBEWF
......
......@@ -148,7 +148,7 @@ class TskAutoDb:public TskAuto {
uint32_t nextSequenceNo;
} UNALLOC_BLOCK_WLK_TRACK;
uint8_t addImageDetails(const char *, const char *const images[], int);
uint8_t addImageDetails(const char *const images[], int, const char *);
TSK_RETVAL_ENUM insertFileData(TSK_FS_FILE * fs_file,
const TSK_FS_ATTR *, const char *path,
const unsigned char *const md5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment