mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-02 06:55:16 +00:00
[2292] Re-add version of find removed by accident
This one was not mutable, it just took Name as an argument.
This commit is contained in:
committed by
JINMEI Tatuya
parent
b31ee9e471
commit
fa5076be0c
@@ -1102,6 +1102,23 @@ public:
|
|||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// \brief Simple find returning immutable node.
|
||||||
|
///
|
||||||
|
/// Acts as described in the \ref find section, but returns immutable
|
||||||
|
/// node pointer.
|
||||||
|
template <typename CBARG>
|
||||||
|
Result find(const isc::dns::Name& name,
|
||||||
|
const DomainTreeNode<T>** node,
|
||||||
|
DomainTreeNodeChain<T>& node_path,
|
||||||
|
bool (*callback)(const DomainTreeNode<T>&, CBARG),
|
||||||
|
CBARG callback_arg) const
|
||||||
|
{
|
||||||
|
const isc::dns::LabelSequence ls(name);
|
||||||
|
Result ret = find(ls, node, node_path, callback,
|
||||||
|
callback_arg);
|
||||||
|
return (ret);
|
||||||
|
}
|
||||||
|
|
||||||
/// \brief Find with callback and node chain
|
/// \brief Find with callback and node chain
|
||||||
/// \anchor callback
|
/// \anchor callback
|
||||||
///
|
///
|
||||||
|
Reference in New Issue
Block a user