hack to avoid using vector in callback for python binding
diff --git a/include/sync-logic.h b/include/sync-logic.h
index 7108054..7daede2 100644
--- a/include/sync-logic.h
+++ b/include/sync-logic.h
@@ -62,6 +62,7 @@
* @brief A wrapper for SyncApp, which handles ccnx related things (process
* interests and data)
*/
+
class SyncLogic
#ifdef NS3_MODULE
: public ns3::Application
@@ -71,6 +72,7 @@
//typedef boost::function< void ( const std::string &/*prefix*/, const SeqNo &/*newSeq*/, const SeqNo &/*oldSeq*/ ) > LogicUpdateCallback;
typedef boost::function< void (const std::vector<MissingDataInfo> & ) > LogicUpdateCallback;
typedef boost::function< void ( const std::string &/*prefix*/ ) > LogicRemoveCallback;
+ typedef boost::function< void (const std::string &)> LogicPerBranchCallback;
/**
* @brief Constructor
@@ -84,6 +86,9 @@
LogicUpdateCallback onUpdate,
LogicRemoveCallback onRemove);
+ SyncLogic (const std::string &syncPrefix,
+ LogicPerBranchCallback onUpdateBranch);
+
~SyncLogic ();
/**
@@ -179,6 +184,8 @@
std::string m_syncPrefix;
LogicUpdateCallback m_onUpdate;
LogicRemoveCallback m_onRemove;
+ LogicPerBranchCallback m_onUpdateBranch;
+ bool m_perBranch;
CcnxWrapperPtr m_ccnxHandle;
Scheduler m_scheduler;