mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Rename csync_abort -> async_request_abort. Add csync_resume.
This commit is contained in:
parent
ee5aaf76c5
commit
a75376e6a7
2 changed files with 16 additions and 2 deletions
|
@ -1179,9 +1179,14 @@ int csync_set_progress_callback(CSYNC* ctx, csync_progress_callback cb)
|
|||
|
||||
}
|
||||
|
||||
void csync_abort(CSYNC *ctx)
|
||||
void csync_request_abort(CSYNC *ctx)
|
||||
{
|
||||
ctx->abort = true;
|
||||
}
|
||||
|
||||
void csync_resume(CSYNC *ctx)
|
||||
{
|
||||
ctx->abort = false;
|
||||
}
|
||||
|
||||
/* vim: set ts=8 sw=2 et cindent: */
|
||||
|
|
11
src/csync.h
11
src/csync.h
|
@ -527,7 +527,16 @@ int csync_set_progress_callback(CSYNC *ctx, csync_progress_callback cb);
|
|||
*
|
||||
* @param ctx The csync context.
|
||||
*/
|
||||
void csync_abort(CSYNC *ctx);
|
||||
void csync_request_abort(CSYNC *ctx);
|
||||
|
||||
/**
|
||||
* @brief Clears the abort flag. Can be called from another thread.
|
||||
*
|
||||
* @param ctx The csync context.
|
||||
*/
|
||||
void csync_resume(CSYNC *ctx);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue