**breaking change** nlsr.conf: rename seq-dir as state-dir
update: conf file in seperate directory for runtime modification
refs: #4823
Change-Id: I5378d831294814e382ad23a9e522d0b576180f20
diff --git a/src/conf-parameter.hpp b/src/conf-parameter.hpp
index c1f6073..1ecf6c8 100644
--- a/src/conf-parameter.hpp
+++ b/src/conf-parameter.hpp
@@ -404,15 +404,26 @@
}
void
- setSeqFileDir(const std::string& ssfd)
+ setStateFileDir(const std::string& ssfd)
{
- m_seqFileDir = ssfd;
+ m_stateFileDir = ssfd;
}
const std::string&
- getSeqFileDir() const
+ getStateFileDir() const
{
- return m_seqFileDir;
+ return m_stateFileDir;
+ }
+
+ void setConfFileNameDynamic(const std::string& confFileDynamic)
+ {
+ m_confFileNameDynamic = confFileDynamic;
+ }
+
+ const std::string&
+ getConfFileNameDynamic() const
+ {
+ return m_confFileNameDynamic;
}
void
@@ -497,11 +508,14 @@
uint32_t m_maxFacesPerPrefix;
- std::string m_seqFileDir;
+ std::string m_stateFileDir;
+
ndn::time::milliseconds m_syncInterestLifetime;
int32_t m_syncProtocol;
+ std::string m_confFileNameDynamic;
+
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
static const uint64_t SYNC_VERSION;