aboutsummaryrefslogtreecommitdiff
path: root/src/core/file.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-05 17:27:04 -0800
committerGarrett D'Amore <garrett@damore.org>2018-03-05 19:39:15 -0800
commitc4da7817b4c8dd71b2a07d4d1c46b486ec57eeb4 (patch)
treeb1166d49e6673fcbad28c0bd65630f5af37a86ab /src/core/file.h
parentb6298c28473acbed2f1429176c7cae4fb514d98b (diff)
downloadnng-c4da7817b4c8dd71b2a07d4d1c46b486ec57eeb4.tar.gz
nng-c4da7817b4c8dd71b2a07d4d1c46b486ec57eeb4.tar.bz2
nng-c4da7817b4c8dd71b2a07d4d1c46b486ec57eeb4.zip
fixes #265 nngcat should support persistent ZT nodes
fixes #267 zerotier transport should lock ZT_HOME
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