/*
 *   zsync - client side rsync over http
 *   Copyright (C) 2004,2005 Colin Phipps <cph@moria.org.uk>
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the Artistic License v2 (see the accompanying 
 *   file COPYING for the full license terms), or, at your option, any later 
 *   version of the same license.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   COPYING file for details.
 */

struct progress {
  time_t starttime;
  time_t lasttime;
  float lastpcnt;
  long long lastdl;
};

extern int no_progress;

void do_progress(struct progress* p, float pcnt, long long newdl);

/* end_progress - done parameter is 0 for error, 1 for okay-but-incomplete, 2 for completed */
void end_progress(struct progress* p, int done);


syntax highlighted by Code2HTML, v. 0.9.1