aboutsummaryrefslogtreecommitdiffstats
path: root/common/dotlock.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-09-28 13:41:58 +0000
committerWerner Koch <[email protected]>2011-09-28 13:41:58 +0000
commited8e267859a00233fee89a6b1b7fb3d74ceced96 (patch)
treee74d7b7af18297021f1e7548899d07badb464a0a /common/dotlock.h
parentAllow arbitrary timeouts with dotlock. (diff)
downloadgnupg-ed8e267859a00233fee89a6b1b7fb3d74ceced96.tar.gz
gnupg-ed8e267859a00233fee89a6b1b7fb3d74ceced96.zip
Add a flag parameter to dotlock_create.
This allows us to extend this function in the future.
Diffstat (limited to 'common/dotlock.h')
-rw-r--r--common/dotlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/dotlock.h b/common/dotlock.h
index 5fb7891fa..666d0b72c 100644
--- a/common/dotlock.h
+++ b/common/dotlock.h
@@ -26,8 +26,8 @@ struct dotlock_handle;
typedef struct dotlock_handle *dotlock_t;
void dotlock_disable (void);
-dotlock_t dotlock_create (const char *file_to_lock);
-void dotlock_destroy ( dotlock_t h );
+dotlock_t dotlock_create (const char *file_to_lock, unsigned int flags);
+void dotlock_destroy (dotlock_t h);
int dotlock_take (dotlock_t h, long timeout);
int dotlock_release (dotlock_t h);
void dotlock_remove_lockfiles (void);