X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fpokey%2Finterface.h;h=3720b227628217444356b2743ebacf9f6ed8766d;hp=199ca51627a6296194ebbe76b3cea6d086cbacf0;hb=04d33be4bd102de67bb6dba5c449e12fea0db4d2;hpb=b0a676988a8da3120e64ef0e1a4ea4c28b1511e1 diff --git a/src/pokey/interface.h b/src/pokey/interface.h index 199ca516..3720b227 100644 --- a/src/pokey/interface.h +++ b/src/pokey/interface.h @@ -17,17 +17,21 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: interface.h,v 1.1 2002/04/11 14:23:56 zarq Exp $ + $Id: interface.h,v 1.2 2002/04/28 12:46:26 zarq Exp $ */ #ifndef __TINC_INTERFACE_H__ #define __TINC_INTERFACE_H__ #include +#include +#include #include "node.h" #include "edge.h" +#define INTERFACE_FILE "pokey.glade" + typedef struct graph_t { struct graph_t *attractors[20]; struct graph_t *repellors[20]; @@ -36,20 +40,23 @@ typedef struct graph_t { node_t *node; } graph_t; -extern int build_graph; +struct if_subnet_data { + GnomeCanvasItem *item; /* The gnome canvas item associated with the line */ + GtkCTreeNode *ctn; +}; -void log_message(int, const char *, ...); -GtkCTreeNode *if_node_add(node_t *); -void if_node_del(node_t *); -void if_subnet_add(subnet_t *); -void if_subnet_del(subnet_t *); -void if_edge_add(edge_t *); -void if_edge_del(edge_t *); +struct if_node_data { + double x, y; + int visible; + int id; + GnomeCanvasItem *item; + GtkCTreeNode *ctn; + GladeXML *hi_xml; +}; -void if_build_graph(void); -void if_graph_add_node(node_t *); -void if_graph_add_edge(edge_t *); +extern int build_graph; +void if_build_graph(void); int init_interface(void); #endif /* __TINC_INTERFACE_H__ */