Rename csync_abort -> async_request_abort. Add csync_resume.

This commit is contained in:
Daniel Molkentin 2013-05-08 17:33:50 +02:00
parent ee5aaf76c5
commit a75376e6a7
2 changed files with 16 additions and 2 deletions

View file

@ -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: */

View file

@ -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
}