project.h

Go to the documentation of this file.
00001 /*
00002  * gEDA - GNU Electronic Design Automation
00003  * This file is a part of gerbv.
00004  *
00005  *   Copyright (C) 2000-2003 Stefan Petersen (spe@stacken.kth.se)
00006  *   Copyright (C) 2008 Dan McMahill
00007  *
00008  * $Id$
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
00023  */
00024  
00030 #ifndef PROJECT_H
00031 #define PROJECT_H
00032 
00033 typedef struct project_list_t {
00034     int layerno;
00035     char *filename;
00036     int rgb[3];
00037     char inverted;
00038     char is_pnp;
00039     char visible;
00040     gerbv_HID_Attribute *attr_list;
00041     int n_attr;
00042     struct project_list_t *next;
00043 } project_list_t;
00044 
00045 
00046 enum conv_type {
00047     MINGW_UNIX = 0,
00048     UNIX_MINGW = 1
00049 };
00050 
00051 
00052 /*
00053  * Reads a project from a file and returns a linked list describing the project
00054  */
00055 project_list_t *read_project_file(char const* filename);
00056 
00057 
00058 /* Writes a description of a project to a file
00059  * that can be parsed by read_project above */
00060 int write_project_file(gerbv_project_t *gerbvProject, char const* filename, project_list_t *project);
00061 
00062 #endif /* PROJECT_H */

Generated on Tue Aug 19 00:14:49 2008 for gerbv by  doxygen 1.5.6