Dispatcher now have all desired functions. Hopefully, after testing and debugging everything going to work
diff --git a/src/action-log.h b/src/action-log.h
index fec6e82..9833b92 100644
--- a/src/action-log.h
+++ b/src/action-log.h
@@ -25,6 +25,7 @@
#include "db-helper.h"
#include "sync-log.h"
#include "action-item.pb.h"
+#include "file-item.pb.h"
#include "ccnx-wrapper.h"
#include "ccnx-pco.h"
@@ -34,6 +35,10 @@
typedef boost::shared_ptr<ActionLog> ActionLogPtr;
typedef boost::shared_ptr<ActionItem> ActionItemPtr;
+typedef std::list<FileItem> FileItems;
+typedef boost::shared_ptr<FileItem> FileItemPtr;
+typedef boost::shared_ptr<FileItems> FileItemsPtr;
+
class ActionLog : public DbHelper
{
public:
@@ -64,9 +69,6 @@
ActionItemPtr
AddLocalActionDelete (const std::string &filename);
- bool
- KnownFileState(const std::string &filename, const Hash &hash);
-
//////////////////////////
// Remote operations //
//////////////////////////
@@ -98,7 +100,14 @@
ActionItemPtr
LookupAction (const Ccnx::Name &actionName);
+ ///////////////////////////
+ // File state operations //
+ ///////////////////////////
+ FileItemPtr
+ LookupFile (const std::string &filename);
+ FileItemsPtr
+ LookupFilesForHash (const Hash &hash);
public:
// for test purposes