aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-29 14:40:06 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:24:02 +0200
commit661c9e2444c097aad7e47b77df4fc2b10c346d04 (patch)
tree1d3481ae80822bd7ecbcbad534c2e64e9661496c /lib/public
parenta1372b2fb5acc51eacf70012a6702a96c78e61ff (diff)
downloadnextcloud-server-661c9e2444c097aad7e47b77df4fc2b10c346d04.tar.gz
nextcloud-server-661c9e2444c097aad7e47b77df4fc2b10c346d04.zip
add changeLock to the storage api
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files/storage.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php
index 68d00fab34c..ee160c50e89 100644
--- a/lib/public/files/storage.php
+++ b/lib/public/files/storage.php
@@ -429,4 +429,12 @@ interface Storage {
* @param \OCP\Lock\ILockingProvider $provider
*/
public function releaseLock($path, $type, ILockingProvider $provider);
+
+ /**
+ * @param string $path The path of the file to change the lock for
+ * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE
+ * @param \OCP\Lock\ILockingProvider $provider
+ * @throws \OCP\Lock\LockedException
+ */
+ public function changeLock($path, $type, ILockingProvider $provider);
}