]> git.lizzy.rs Git - libscout.git/blobdiff - scout.h
Done
[libscout.git] / scout.h
diff --git a/scout.h b/scout.h
index aa1130cb40bbd1c6a2bb88cf024edf545b9ee20a..594963cc02c35906e4bd524d61f6a4c972e7e29a 100644 (file)
--- a/scout.h
+++ b/scout.h
@@ -1,5 +1,5 @@
-#ifndef _LIBSCOUT_H_
-#define _LIBSCOUT_H_
+#ifndef __LIBSCOUT__
+#define __LIBSCOUT__
 
 struct scnode {
        struct scway *way;
@@ -9,17 +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 *);
+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__