From bbf87bbd85be62183997516e4928fa1fdfcc70ff Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 6 Jan 2009 14:54:41 -0500 Subject: Minor change to btreemap to use an enum for the return codes of btreemap_search_key. --- server/util/btreemap.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'server/util/btreemap.h') 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); -- cgit