1 /* Copyright (C) 2001-2017 Peter Selinger. 2 This file is part of Potrace. It is free software and it is covered 3 by the GNU General Public License. See the file COPYING for details. */ 4 5 /* functions to render a progress bar for main.c. We provide a 6 standard and a simplified progress bar. */ 7 8 #ifndef PROGRESS_BAR_H 9 #define PROGRESS_BAR_H 10 11 #include "potracelib.h" 12 13 /* structure to hold a progress bar interface */ 14 struct progress_bar_s { 15 int (*init)(potrace_progress_t *prog, const char *filename, int count); 16 void (*term)(potrace_progress_t *prog); 17 }; 18 typedef struct progress_bar_s progress_bar_t; 19 20 extern progress_bar_t *progress_bar_vt100; 21 extern progress_bar_t *progress_bar_simplified; 22 23 24 25 #endif /* PROGRESS_BAR_H */ 26 27