The filter callback will be called for each entry in the tree with a
pointer to the entry and the provided payload; if the callback returns
non-zero, the entry will be filtered (removed from the builder).
@param bld Tree builder
@param filter Callback to filter entries
@param payload Extra data to pass to filter callback
@return 0 on success, non-zero callback return value, or error code
Selectively remove entries in the tree
The filter callback will be called for each entry in the tree with a pointer to the entry and the provided payload; if the callback returns non-zero, the entry will be filtered (removed from the builder).
@param bld Tree builder @param filter Callback to filter entries @param payload Extra data to pass to filter callback @return 0 on success, non-zero callback return value, or error code