Locks a resource identified by uri
, or, in case it's null
, by the URI defined in associated
Source.
It obtains a write lock with the given lock_scope
.
The owner
is used to identify the lock owner. When it's an http:// or https://, then it's referenced as DAV:href, otherwise
the value is treated as plain text. If it's null
, then the user name from the associated
Source is used.
The out_lock_token
can be refreshed with refresh_lock_sync
. Release the lock with unlock_sync. Free the returned
out_lock_token
with g_free, when no longer needed.
this | |
uri |
URI to lock, or |
lock_scope |
an WebDAVLockScope to define the scope of the lock |
lock_timeout |
timeout for the lock, in seconds, on 0 to infinity |
owner |
optional identificator of the owner of the lock, or |
out_lock_token |
return location of the obtained or refreshed lock token |
cancellable |
optional Cancellable object, or |
Whether succeeded. |