diff options
Diffstat (limited to 'whole.c')
-rw-r--r-- | whole.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,9 +1,8 @@ /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- * * librsync -- the library for network deltas - * $Id$ * - * Copyright (C) 2000, 2001 by Martin Pool <mbp@sourcefrog.net> + * Copyright 2000, 2001, 2014 by Martin Pool <mbp@sourcefrog.net> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -100,16 +99,20 @@ rs_whole_run(rs_job_t *job, FILE *in_file, FILE *out_file) * * \param strong_len truncated length of strong checksums, in bytes * + * \param sig_magic A signature magic number indicating + * what format to use. + * * \sa rs_sig_begin() */ rs_result rs_sig_file(FILE *old_file, FILE *sig_file, size_t new_block_len, - size_t strong_len, rs_stats_t *stats) + size_t strong_len, rs_long_t sig_magic, + rs_stats_t *stats) { rs_job_t *job; rs_result r; - job = rs_sig_begin(new_block_len, strong_len); + job = rs_sig_begin(new_block_len, strong_len, sig_magic); r = rs_whole_run(job, old_file, sig_file); if (stats) memcpy(stats, &job->stats, sizeof *stats); |