cIFace.h

00001 #ifndef CIFACE_H
00002 #define CIFACE_H
00003 
00004 /* 
00005  Copyright (C) 2008 Endre Bak <endrebak@yahoo.com>
00006 
00007  Licensed under the terms of the GNU General Public License, version
00008  2 or later.
00009 
00010 */
00011 
00012 #include <stdarg.h>
00013 
00014 #define SIDE_SOLDER             1
00015 #define SIDE_COMPONENT  2
00016 #define SIDE_BOTH               (SIDE_SOLDER|SIDE_COMPONENT)
00017 
00018 typedef struct CPin {
00019         const char *eName;
00020         int num, seq, x, y;
00021         int sideMask;
00022 } CPin;
00023 
00024 typedef struct CRat {
00025         int id, x0, y0, sideMask0, x1, y1, sideMask1;
00026 } CRat;
00027 
00028 extern void msg(const char * fmt,...);
00029 
00030 extern int getNetNameN();
00031 extern const char * getNetName(int idx);
00032 extern int getPinNameN(int netNameIdx);
00033 extern const char * getPinName(int netNameIdx, int pinIdx);
00034 
00035 extern CPin ** getPins();
00036 extern void freePins(CPin ** pinA);
00037 
00038 extern CRat ** getRats();
00039 extern void freeRats(CRat ** ratA);
00040 
00041 extern void selectRat(int idx);
00042 
00043 #endif

Generated on Tue Aug 17 15:28:04 2010 for pcb-plugins by  doxygen 1.4.6-NO