aboutsummaryrefslogtreecommitdiff
path: root/scout.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-12 10:57:33 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-12 10:57:33 +0200
commit7895d874f5ad91e923e4642663f5c0022910aab9 (patch)
treeca0a7191f2bcd1d307604acee0aaa31a40d0f72b /scout.h
parentfefba3e4af914bb914aaaa389f5d033306e6a780 (diff)
downloadlibscout-master.tar.xz
Diffstat (limited to 'scout.h')
-rw-r--r--scout.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/scout.h b/scout.h
index fc625f2..594963c 100644
--- a/scout.h
+++ b/scout.h
@@ -9,26 +9,39 @@ struct scnode {
struct scway {
const struct scnode *lto;
struct scway *alt;
- int len;
+ float len;
+ void *dat;
};
struct scwaypoint {
const struct scnode *nod;
const struct scway *way;
struct scwaypoint *nxt;
- int len;
+ float len;
};
-struct scway *scaddway(struct scnode *, const struct scnode *, int);
+struct scnode *scnodalloc(void *);
+struct scway *scaddway(struct scnode *, const struct scnode *, float, void *data);
+int scisconnected(struct scnode *, struct scnode *);
struct scwaypoint *scout(const struct scnode *, const struct scnode *, struct scwaypoint *);
+void scdestroypath(struct scwaypoint *);
+
#ifdef __LIBSCOUT_INTERNAL__
+struct scway *__scnodgetway(const struct scnode *);
struct scwaypoint *__scallocwayp(const struct scnode *, const struct scway *);
-struct scwaypoint *__scstackfindgetend(struct scwaypoint *, const struct scway *);
-void __scstackfree(struct scwaypoint *);
-int __scstackgetlen(struct scwaypoint *);
+int __scstackfind(const struct scwaypoint *, const struct scway *);
+struct scwaypoint *__scstackgetend(struct scwaypoint *);
#endif // __LIBSCOUT_INTERNAL__
+#ifdef __LIBSCOUT_TYPEDEF__
+
+typedef struct scnode scnode;
+typedef struct scway scway;
+typedef struct scwaypoint scwaypoint;
+
+#endif
+
#endif // __LIBSCOUT__