Commit 6be2a53d authored by Yoni Fogel's avatar Yoni Fogel

Modified header

git-svn-id: file:///svn/tokudb@1858 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1faeb23d
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
MIT Press and McGraw-Hill, 2001. ISBN 0-262-03293-7 MIT Press and McGraw-Hill, 2001. ISBN 0-262-03293-7
*/ */
//Defines BOOL data type.
#include <brttypes.h> #include <brttypes.h>
/** \brief Range with value /** \brief Range with value
...@@ -92,7 +93,7 @@ int toku_rt_get_allow_overlaps(toku_range_tree* tree, BOOL* allowed); ...@@ -92,7 +93,7 @@ int toku_rt_get_allow_overlaps(toku_range_tree* tree, BOOL* allowed);
to overlap. to overlap.
\param user_malloc A user provided malloc(3) function. \param user_malloc A user provided malloc(3) function.
\param user_free A user provided free(3) function. \param user_free A user provided free(3) function.
\param user_realloc A user provided realloc(3) function. \param user_realloc A user provided realloc(3) function.
\return \return
- 0: Success. - 0: Success.
...@@ -109,7 +110,6 @@ int toku_rt_create(toku_range_tree** ptree, int (*end_cmp)(void*,void*), ...@@ -109,7 +110,6 @@ int toku_rt_create(toku_range_tree** ptree, int (*end_cmp)(void*,void*),
\return \return
- 0: Success. - 0: Success.
- EINVAL: If tree is NULL. - EINVAL: If tree is NULL.
- Other exit codes may be forwarded from underlying system calls.
*/ */
int toku_rt_close(toku_range_tree* tree /**< The range tree to free */); int toku_rt_close(toku_range_tree* tree /**< The range tree to free */);
...@@ -137,7 +137,8 @@ int toku_rt_close(toku_range_tree* tree /**< The range tree to free */); ...@@ -137,7 +137,8 @@ int toku_rt_close(toku_range_tree* tree /**< The range tree to free */);
- 0: Success. - 0: Success.
- EINVAL: If any pointer argument is NULL. If range.data != NULL. - EINVAL: If any pointer argument is NULL. If range.data != NULL.
If buflen == 0. If buflen == 0.
- Other exit codes may be forwarded from underlying system calls. - Other exit codes may be forwarded from underlying system calls but only
if buf is not large enough.
Growth direction: It may be useful in the future to add an extra out Growth direction: It may be useful in the future to add an extra out
parameter to specify whether more elements exist in the tree that overlap parameter to specify whether more elements exist in the tree that overlap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment