summaryrefslogtreecommitdiffstats
path: root/src/wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrap.c')
-rw-r--r--src/wrap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wrap.c b/src/wrap.c
index b007aeb..c6062f8 100644
--- a/src/wrap.c
+++ b/src/wrap.c
@@ -272,3 +272,20 @@ wrap_search_internal_get_entry(Slapi_DN *dn, char **attrs,
#endif
}
+static __thread int call_level = 0;
+
+int
+wrap_get_call_level(void)
+{
+ return call_level;
+}
+int
+wrap_inc_call_level(void)
+{
+ return ++call_level;
+}
+int
+wrap_dec_call_level(void)
+{
+ return --call_level;
+}