pub unsafe extern "C" fn svn_client_lock(
targets: *const apr_array_header_t,
comment: *const c_char,
steal_lock: svn_boolean_t,
ctx: *mut svn_client_ctx_t,
pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description
Lock @a targets in the repository. @a targets is an array of const char * paths - either all working copy paths or all URLs. All targets must be in the same repository.
If a target is already locked in the repository, no lock will be acquired unless @a steal_lock is TRUE, in which case the locks are stolen. @a comment, if non-NULL, is an xml-escapable description stored with each lock in the repository. Each acquired lock will be stored in the working copy if the targets are WC paths.
For each target @a ctx->notify_func2/notify_baton2 will be used to indicate whether it was locked. An action of #svn_wc_notify_locked means that the path was locked. If the path was not locked because it was out of date or there was already a lock in the repository, the notification function will be called with #svn_wc_notify_failed_lock, and the error passed in the notification structure.
Use @a pool for temporary allocations.
@since New in 1.2.