aboutsummaryrefslogtreecommitdiff
path: root/scout.h
blob: aa1130cb40bbd1c6a2bb88cf024edf545b9ee20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _LIBSCOUT_H_
#define _LIBSCOUT_H_

struct scnode {
	struct scway *way;
	void *dat;
};

struct scway {
	const struct scnode *lto;
	struct scway *alt;
	int len;
};

struct scwaypoint {
	const struct scnode *nod;
	const struct scway *way;
	struct scwaypoint *nxt;
	int len;
};

struct scway *scaddway(struct scnode *, const struct scnode *, int);
struct scwaypoint *scout(const struct scnode *, const struct scnode *, struct scwaypoint *);

#endif