diff options
Diffstat (limited to 'src/whole.h')
-rw-r--r-- | src/whole.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/whole.h b/src/whole.h index 98e082c..e872bc1 100644 --- a/src/whole.h +++ b/src/whole.h @@ -18,12 +18,32 @@ * License along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +/** \file whole.h + * Whole-file API driver functions. */ #ifndef WHOLE_H # define WHOLE_H # include <stdio.h> # include "librsync.h" +/** Run a job continuously, with input to/from the two specified files. + * + * The job should already be set up, and must be freed by the caller after + * return. If rs_inbuflen or rs_outbuflen are set, they will override the + * inbuflen and outbuflen arguments. + * + * \param job - the job instance to run. + * + * \param in_file - input file, or NULL if there is no input. + * + * \param out_file - output file, or NULL if there is no output. + * + * \param inbuflen - recommended input buffer size to use. + * + * \param outbuflen - recommended output buffer size to use. + * + * \return RS_DONE if the job completed, or otherwise an error result. */ rs_result rs_whole_run(rs_job_t *job, FILE *in_file, FILE *out_file, int inbuflen, int outbuflen); |