shithub: netgraph

ref: f31bebf7e813616b83b255d665bf1283abef5250
dir: /dat.h/

View raw version
typedef struct Tuple Tuple;
typedef struct Block Block;
typedef struct Sys Sys;
typedef struct Ipnet Ipnet;
typedef struct Pos Pos;

extern char *netdir;
extern char *systuples[];
extern int nsystuples;

extern int pagewidth;
extern int pageheight;

struct Pos {
	int x;
	int y;
};

struct Tuple {
	char *key;
	char *value;
	int ipnet; /* set by ipnet */
};

struct Block {
	Tuple *tuples;
	int ntuples;
	
	Pos p;
	int width;
	int height;
};

struct Sys {
	Block;
};

struct Ipnet {
	Block;
};