aboutsummaryrefslogtreecommitdiff
path: root/src/core/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file.h')
-rw-r--r--src/core/file.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file.h b/src/core/file.h
index 7969ae5f..3baa1ccd 100644
--- a/src/core/file.h
+++ b/src/core/file.h
@@ -84,4 +84,10 @@ extern bool nni_file_is_file(const char *);
// false if an error occurs, or the path references something else.
extern bool nni_file_is_dir(const char *);
+typedef struct nni_file_lockh nni_file_lockh;
+
+extern int nni_file_lock(const char *, nni_file_lockh **);
+
+extern void nni_file_unlock(nni_file_lockh *);
+
#endif // CORE_FILE_H