diff options
Diffstat (limited to 'examples/dte/lock.h')
| -rw-r--r-- | examples/dte/lock.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/dte/lock.h b/examples/dte/lock.h new file mode 100644 index 0000000..9d2a90a --- /dev/null +++ b/examples/dte/lock.h @@ -0,0 +1,12 @@ +#ifndef LOCK_H +#define LOCK_H + +#include <stdbool.h> +#include <sys/types.h> +#include "util/macros.h" + +void init_file_locks_context(const char *fallback_dir, pid_t pid); +bool lock_file(const char *filename) WARN_UNUSED_RESULT; +void unlock_file(const char *filename); + +#endif |
