Rough implementation of the state server. Now it is possible to request restore of a particular file
See state-server.h for more details on command syntax.
// <PREFIX_CMD> = /localhost/<user's-device-name>/"chronoshare"/"cmd"
// <PREFIX_CMD>/"restore"/"file"/<one-component-relative-file-name>/<version>/<file-hash>
<file-hash> component is used solely to disambiguate file version and
need not be specified in full (or specified at all, but the component
need to be present). The system will only check that specified file-hash
is a prefix of the real hash of the file
Change-Id: I7a4d15a04eb1a1c59a3412da46174441c61a45c0
diff --git a/src/action-log.h b/src/action-log.h
index f0ed9cd..fe96f10 100644
--- a/src/action-log.h
+++ b/src/action-log.h
@@ -99,6 +99,8 @@
ActionItemPtr
LookupAction (const Ccnx::Name &actionName);
+ FileItemPtr
+ LookupAction (const std::string &filename, sqlite3_int64 version, const Hash &filehash);
//
inline FileStatePtr