Removed use of fgets() to read files and gerb_file approved file operations.
[geda-gerbv/spe.git] / src / gerb_stats.h
blobf1ce7f5d9ef3e11eae4d2ecf7b69eca7001fd4e5
1 /*
2 * gEDA - GNU Electronic Design Automation
3 * gerbv_stats.h -- a part of gerbv.
5 * Copyright (C) 2007 Stuart Brorson (sdb@cloud9.net)
7 * $Id$
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
24 /** \file gerb_stats.h
25 \brief Header info for the statistics generating functions for RS274X files
26 \ingroup libgerbv
29 #ifndef gerb_stats_H
30 #define gerb_stats_H
34 /* =================== Prototypes ================ */
35 gerbv_error_list_t *gerbv_stats_new_error_list(void);
36 void gerbv_stats_add_error(gerbv_error_list_t *error_list_in,
37 int layer, const char *error_text,
38 gerbv_message_type_t type);
40 gerbv_aperture_list_t *gerbv_stats_new_aperture_list(void);
41 void gerbv_stats_add_aperture(gerbv_aperture_list_t *aperture_list_in,
42 int layer, int number, gerbv_aperture_type_t type,
43 double parameter[5]);
44 void gerbv_stats_add_to_D_list(gerbv_aperture_list_t *D_list_in,
45 int number);
46 int gerbv_stats_increment_D_list_count(gerbv_aperture_list_t *D_list_in,
47 int number,
48 int count,
49 gerbv_error_list_t *error);
51 #endif /* gerb_stats_H */