Adding version to FileState database (incompatible DB formats and protobuf FileItem messages!)
Change-Id: I12b785720b5f033e9f631d0b62eb9e7fdeea0270
diff --git a/src/file-state.h b/src/file-state.h
index 6c4ace2..0a8a7b2 100644
--- a/src/file-state.h
+++ b/src/file-state.h
@@ -48,7 +48,8 @@
* @brief Update or add a file
*/
void
- UpdateFile (const std::string &filename, const Hash &hash, const Ccnx::CcnxCharbuf &device_name, sqlite3_int64 seqno,
+ UpdateFile (const std::string &filename, sqlite3_int64 version,
+ const Hash &hash, const Ccnx::CcnxCharbuf &device_name, sqlite3_int64 seqno,
time_t atime, time_t mtime, time_t ctime, int mode, int seg_num);
/**
@@ -92,7 +93,7 @@
/**
* @brief Recursively lookup all files in the specified folder and call visitor(file) for each file
*/
- FileItemsPtr
+ bool
LookupFilesInFolderRecursively (const boost::function<void (const FileItem&)> &visitor, const std::string &folder, int offset=0, int limit=-1);
/**