[Pkg-owncloud-commits] [owncloud-client] 81/103: Csync: Add hook for checking if a file is in use already

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Apr 30 18:09:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit b39359c9291fa05d14d9639c7e5bf93b81dbaf4b
Author: Markus Goetz <markus at woboq.com>
Date:   Mon Apr 28 14:18:58 2014 +0200

    Csync: Add hook for checking if a file is in use already
---
 csync/src/csync_util.c | 7 +++++++
 csync/src/csync_util.h | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/csync/src/csync_util.c b/csync/src/csync_util.c
index cca764c..3381533 100644
--- a/csync/src/csync_util.c
+++ b/csync/src/csync_util.c
@@ -180,3 +180,10 @@ csync_vio_file_stat_t *csync_vio_convert_file_stat(csync_file_stat_t *st) {
 
   return vfs;
 }
+
+bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user
+bool csync_file_locked_or_open( const char *file) {
+    if (!csync_file_locked_or_open_ext)
+        return false;
+    return csync_file_locked_or_open_ext(file);
+}
diff --git a/csync/src/csync_util.h b/csync/src/csync_util.h
index 886408e..700332c 100644
--- a/csync/src/csync_util.h
+++ b/csync/src/csync_util.h
@@ -35,4 +35,6 @@ void csync_win32_set_file_hidden( const char *file, bool hidden );
 /* Convert a csync_file_stat_t to csync_vio_file_stat_t */
 csync_vio_file_stat_t *csync_vio_convert_file_stat(csync_file_stat_t *st);
 
+bool csync_file_locked_or_open( const char *file);
+
 #endif /* _CSYNC_UTIL_H */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list