aboutsummaryrefslogtreecommitdiffstats
path: root/common/dotlock.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-09-29 14:51:48 +0000
committerWerner Koch <[email protected]>2011-09-29 14:51:48 +0000
commitf61b5371c492b0685c179090372f35329e8a2028 (patch)
treecbc93056956ca13511298c0f7e80a6a81c648b63 /common/dotlock.h
parentMake dotlock.c thread-safe on pthread systems. (diff)
downloadgnupg-f61b5371c492b0685c179090372f35329e8a2028.tar.gz
gnupg-f61b5371c492b0685c179090372f35329e8a2028.zip
Add dotlock_get_fd and dotlock_set_fd.
Diffstat (limited to 'common/dotlock.h')
-rw-r--r--common/dotlock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/dotlock.h b/common/dotlock.h
index 666d0b72c..6ae7836c5 100644
--- a/common/dotlock.h
+++ b/common/dotlock.h
@@ -27,6 +27,8 @@ typedef struct dotlock_handle *dotlock_t;
void dotlock_disable (void);
dotlock_t dotlock_create (const char *file_to_lock, unsigned int flags);
+void dotlock_set_fd (dotlock_t h, int fd);
+int dotlock_get_fd (dotlock_t h);
void dotlock_destroy (dotlock_t h);
int dotlock_take (dotlock_t h, long timeout);
int dotlock_release (dotlock_t h);