diff options
Diffstat (limited to 'src/estream.c')
-rw-r--r-- | src/estream.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/estream.c b/src/estream.c index d0f0ba9..752d22e 100644 --- a/src/estream.c +++ b/src/estream.c @@ -605,6 +605,17 @@ _gpgrt_set_syscall_clamp (void (*pre)(void), void (*post)(void)) _gpgrt_lock_set_lock_clamp (pre, post); } +/* + * Return the current sycall clamp functions. This can be used by + * other libraries which have blocking functions. + */ +void +_gpgrt_get_syscall_clamp (void (**r_pre)(void), void (**r_post)(void)) +{ + *r_pre = pre_syscall_func; + *r_post = post_syscall_func; +} + /* |