diff options
Diffstat (limited to 'src/wrap.c')
-rw-r--r-- | src/wrap.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; +} |