summaryrefslogtreecommitdiffstats
path: root/server/util/btreemap.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-01-06 14:54:41 -0500
committerSimo Sorce <idra@samba.org>2009-01-09 14:31:06 -0500
commitbbf87bbd85be62183997516e4928fa1fdfcc70ff (patch)
treeb6586ef4126b18ff3216d118d985bc1c809004d1 /server/util/btreemap.h
parent05ab26fa32d364c71b582d5bb72b5305b2554ef6 (diff)
downloadsssd-bbf87bbd85be62183997516e4928fa1fdfcc70ff.tar.gz
sssd-bbf87bbd85be62183997516e4928fa1fdfcc70ff.tar.xz
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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/util/btreemap.h b/server/util/btreemap.h
index 8452732f0..941e36e5b 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);