Branch: Tag:

2018-02-01

2018-02-01 15:50:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

WebDAV: Extended API for find_locks().

A recursion value of -1 now causes find_locks() to only list
locks that are rooted at path or below, but not any above.
This can be used to find the locks to be invalidated if the
specified path were to be deleted.

Fixes some of [WS-160].

5:   #include <config.h>   #include <module.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.233 2009/02/23 17:30:03 mast Exp $"; + constant cvs_version="$Id$";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
396:    void invalidate_cache();    void clear_memory_caches();    string examine_return_mapping(mapping m); -  multiset(DAVLock) find_locks(string path, int(0..1) recursive, +  multiset(DAVLock) find_locks(string path, int(-1..1) recursive,    int(0..1) exclude_shared, RequestID id);    DAVLock|LockFlag check_locks(string path, int(0..1) recursive, RequestID id);    mapping(string:mixed) unlock_file(string path, DAVLock lock, RequestID|int(0..0) id);
3285:    string resource_id (string path, RequestID id);    string|int authenticated_user_id (string path, RequestID id);    multiset(DAVLock) find_locks(string path, -  int(0..1) recursive, +  int(-1..1) recursive,    int(0..1) exclude_shared,    RequestID id);    DAVLock|LockFlag check_locks(string path,