Adding getNumberOfBranches method to sync logic
diff --git a/include/sync-logic.h b/include/sync-logic.h
index 5e32918..d0500c8 100644
--- a/include/sync-logic.h
+++ b/include/sync-logic.h
@@ -157,11 +157,14 @@
void
sendSyncData (const std::string &name,
DigestConstPtr digest, StateConstPtr state);
+
+ size_t
+ getNumberOfBranches () const;
private:
FullStatePtr m_state;
DiffStateContainer m_log;
- boost::recursive_mutex m_stateMutex;
+ mutable boost::recursive_mutex m_stateMutex;
std::string m_outstandingInterestName;
SyncInterestTable m_syncInterestTable;