Branch: Tag:

2004-04-29

2004-04-29 19:30:02 by Martin Stjernholm <mast@lysator.liu.se>

Fixes in the lock interface and the default implementation.

Rev: server/base_server/module.pike:1.168
Rev: server/base_server/prototypes.pike:1.90

6:   #include <module.h>   #include <variables.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.89 2004/04/29 14:39:35 mast Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.90 2004/04/29 19:30:01 mast Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
167:    void|string owner,    )   //! Container for information about outstanding DAV write locks. No - //! field may change after the object has been created since - //! filesystem modules might store this info persistently. + //! field except @[owner] may change after the object has been created + //! since filesystem modules might store this info persistently.   {    //! @decl string locktoken;    //!
210:    //!    //! The owner identification (RFC 2518 12.10), or zero if unknown.    //! The content is XML in string form. +  //! +  //! @[RoxenModule.lock_file] may set this if it's zero, otherwise +  //! it shouldn't change.   }      class Configuration
1548:    multiset(DAVLock) find_all_locks(string path,    int(0..1) recursive,    RequestID id); -  DAVLock|int(-1..1) find_user_lock(string path, string user, RequestID id); -  multiset(DAVLock)|int(-1..1) recur_find_user_locks(string path, -  string user, -  RequestID id); -  void register_lock(string path, DAVLock lock, string user); -  DAVLock|mapping(string:mixed) lock_file(string path, -  string locktype, -  string lockscope, -  string locktoken, +  DAVLock|int(-2..1) check_locks(string path,    int(0..1) recursive, -  string user, +     RequestID id); -  +  mapping(string:mixed)|int(0..1) lock_file(string path, +  DAVLock lock, +  RequestID id); +  mapping(string:mixed) unlock_file (string path, +  DAVLock lock, +  RequestID id);    mapping(string:mixed)|int(-1..0)|Stdio.File find_file(string path,    RequestID id);    mapping(string:mixed) delete_file(string path, RequestID id);