1 /****************************************************************************
2     Copyright (C) 1987-2015 by Jeffery P. Hansen
3 
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8 
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License along
15     with this program; if not, write to the Free Software Foundation, Inc.,
16     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 ****************************************************************************/
18 #ifndef __cpath_h
19 #define __cpath_h
20 
21 void cpath_clear();
22 void cpath_flush();
23 GWire *cpath_findGatePort(const char *Gname,const char *Pname,int n,GModuleDef *M);
24 GWire *cpath_findPort(const char *name,GModuleDef *M);
25 int cpath_highlightPath(GWire *w1,GWire *w2);
26 GWire *cpath_guessPort(GWire *w,GModuleDef *M,int isOut);
27 void cpath_close();
28 int cpath_command(const char *C);
29 void cpath_open();
30 void cpath_show(int n,const char *pelems[]);
31 void cpath_reshow();
32 void cpath_draw(int x1,int y1,int x2,int y2);
33 void cpath_flash();
34 void cpath_initNetDelayTable(void);
35 void cpath_flushNetDelayTable();
36 void cpath_registerNetAlias(const char *alias_name,const char *canon_name);
37 void cpath_registerNetDelay(const char *name,int fd,int bd);
38 int  cpath_getNetDelay(const char *name,int *fd,int *bd);
39 void cpath_mouseDown(EditState *es);
40 void cpath_mouseUp(EditState *es);
41 
42 #endif
43