File indexing completed on 2024-12-22 04:04:14
0001 /* Copyright (C) 2001-2019 Peter Selinger. 0002 This file is part of Potrace. It is free software and it is covered 0003 by the GNU General Public License. See the file COPYING for details. */ 0004 0005 /* functions to render a progress bar for main.c. We provide a 0006 standard and a simplified progress bar. */ 0007 0008 #ifndef PROGRESS_BAR_H 0009 #define PROGRESS_BAR_H 0010 0011 #include "potracelib.h" 0012 0013 /* structure to hold a progress bar interface */ 0014 struct progress_bar_s { 0015 int (*init)(potrace_progress_t *prog, const char *filename, int count); 0016 void (*term)(potrace_progress_t *prog); 0017 }; 0018 typedef struct progress_bar_s progress_bar_t; 0019 0020 extern progress_bar_t *progress_bar_vt100; 0021 extern progress_bar_t *progress_bar_simplified; 0022 0023 0024 0025 #endif /* PROGRESS_BAR_H */ 0026