lock_sync


Description:

public bool lock_sync (string? uri, string depth, int32 lock_timeout, XmlDocument xml, out string out_lock_token, out Doc? out_xml_response, Cancellable? cancellable = null) throws Error

Locks a resource identified by uri, or, in case it's null, on the URI defined in associated Source.

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.

If provided, free the returned out_xml_response with xmlFreeDoc, when no longer needed.

Parameters:

this

an WebDAVSession

uri

URI to lock, or null to read from Source

depth

requested depth, can be one of WEBDAV_DEPTH_THIS or WEBDAV_DEPTH_INFINITY

lock_timeout

timeout for the lock, in seconds, on 0 to infinity

xml

an XML describing the lock request, with DAV:lockinfo root element

out_lock_token

return location of the obtained or refreshed lock token

out_xml_response

optional return location for the server response as xmlDocPtr

cancellable

optional Cancellable object, or null

Returns:

Whether succeeded.