The tree builder can be used to create or modify trees in memory and
write them as tree objects to the database.
If the source parameter is not null, the tree builder will be
initialized with the entries of the given tree.
If the source parameter is null, the tree builder will start with no
entries and will have to be filled manually.
@param out_ Pointer where to store the tree builder
@param repo Repository in which to store the object
@param source Source tree to initialize the builder (optional)
@return 0 on success; error code otherwise
Create a new tree builder.
The tree builder can be used to create or modify trees in memory and write them as tree objects to the database.
If the source parameter is not null, the tree builder will be initialized with the entries of the given tree.
If the source parameter is null, the tree builder will start with no entries and will have to be filled manually.
@param out_ Pointer where to store the tree builder @param repo Repository in which to store the object @param source Source tree to initialize the builder (optional) @return 0 on success; error code otherwise