summaryrefslogtreecommitdiff
path: root/pfxtree.h
diff options
context:
space:
mode:
Diffstat (limited to 'pfxtree.h')
-rw-r--r--pfxtree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pfxtree.h b/pfxtree.h
index 7e1614f..70d9326 100644
--- a/pfxtree.h
+++ b/pfxtree.h
@@ -103,6 +103,14 @@ PrefixTree *
pt_new(void);
/**
+ * @brief Copies a prefix tree.
+ * @param src The prefix tree to be copied.
+ * @return The copied tree, or NULL on failure.
+ */
+PrefixTree *
+pt_copy(const PrefixTree *src);
+
+/**
* @brief Frees an allocated prefix tree (and its child nodes).
* @param self The tree to free.
*/