diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-01-06 14:54:41 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-09 14:31:06 -0500 |
commit | bbf87bbd85be62183997516e4928fa1fdfcc70ff (patch) | |
tree | b6586ef4126b18ff3216d118d985bc1c809004d1 /server/util/btreemap.h | |
parent | 05ab26fa32d364c71b582d5bb72b5305b2554ef6 (diff) | |
download | sssd-bbf87bbd85be62183997516e4928fa1fdfcc70ff.tar.gz sssd-bbf87bbd85be62183997516e4928fa1fdfcc70ff.tar.bz2 sssd-bbf87bbd85be62183997516e4928fa1fdfcc70ff.zip |
Minor change to btreemap to use an enum for the return codes of btreemap_search_key.
Diffstat (limited to 'server/util/btreemap.h')
-rw-r--r-- | server/util/btreemap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/util/btreemap.h b/server/util/btreemap.h index 8452732f..941e36e5 100644 --- a/server/util/btreemap.h +++ b/server/util/btreemap.h @@ -1,4 +1,4 @@ -/* +/* SSSD Service monitor @@ -21,6 +21,13 @@ #ifndef BTREEMAP_H_ #define BTREEMAP_H_ +enum { + BTREEMAP_EMPTY = -2, + BTREEMAP_CREATE_LEFT, + BTREEMAP_FOUND, + BTREEMAP_CREATE_RIGHT +}; + typedef int (*btreemap_comparison_fn)(void *first, void *second); struct btreemap; int btreemap_search_key(struct btreemap *map, void *key, struct btreemap **node); |