From 75d85549c6d2a5284593e20c21d61fc5d6200bca Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 8 Jun 2020 18:24:49 +0200 Subject: Add 'insert before id' to create and move commands. --- src/nodemanager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nodemanager.h') diff --git a/src/nodemanager.h b/src/nodemanager.h index f0bc81e..97d890f 100644 --- a/src/nodemanager.h +++ b/src/nodemanager.h @@ -45,12 +45,12 @@ public: void init(std::string filename); - NodeIdList createNode(nodeid_t parentid, nodeid_t *id) throw (std::exception); + NodeIdList createNode(nodeid_t parentid, nodeid_t *id, nodeid_t insertbeforeid) throw (std::exception); NodeIdList updateNode(nodeid_t id, const std::string &name, const std::string &value) throw (std::exception); NodeIdList removeNode(nodeid_t id) throw (std::exception); - NodeIdListPair moveNode(nodeid_t id, nodeid_t newParent) throw (std::exception); + NodeIdListPair moveNode(nodeid_t id, nodeid_t newParent, nodeid_t beforeId) throw (std::exception); NodeIdList subNodes(nodeid_t) throw (std::exception); -- cgit v1.2.3