#[repr(C)]pub struct svn_lock_t {
pub path: *const c_char,
pub token: *const c_char,
pub owner: *const c_char,
pub comment: *const c_char,
pub is_dav_comment: svn_boolean_t,
pub creation_date: apr_time_t,
pub expiration_date: apr_time_t,
}
Expand description
A lock object, for client & server to share.
A lock represents the exclusive right to add, delete, or modify a path. A lock is created in a repository, wholly controlled by the repository. A “lock-token” is the lock’s UUID, and can be used to learn more about a lock’s fields, and or/make use of the lock. Because a lock is immutable, a client is free to not only cache the lock-token, but the lock’s fields too, for convenience.
Note that the ‘is_dav_comment’ field is wholly ignored by every library except for mod_dav_svn. The field isn’t even marshalled over the network to the client. Assuming lock structures are created with apr_pcalloc(), a default value of 0 is universally safe.
@note in the current implementation, only files are lockable.
@since New in 1.2.
Fields§
§path: *const c_char
< the path this lock applies to
token: *const c_char
< unique URI representing lock
owner: *const c_char
< the username which owns the lock
comment: *const c_char
< (optional) description of lock
is_dav_comment: svn_boolean_t
< was comment made by generic DAV client?
creation_date: apr_time_t
< when lock was made
expiration_date: apr_time_t
< (optional) when lock will expire; If value is 0, lock will never expire.