]> err.no Git - mapper/blobdiff - src/path.h
Add header and cast properly.
[mapper] / src / path.h
index 12ed0ab82f0251639a8f78eb03d931f2418076f9..108c25a03d27d224df914cc33139549d994b775c 100644 (file)
@@ -2,12 +2,13 @@
 #define _PATH_H
 
 #include <glib.h>
+#include <gtk/gtk.h>
 
 #define MACRO_PATH_INIT(path) { \
-    (path).head = (path).tail = g_new(Point, ARRAY_CHUNK_SIZE); \
+    (path).head = (path).tail = g_new0(Point, ARRAY_CHUNK_SIZE); \
     *((path).tail) = _point_null; \
     (path).cap = (path).head + ARRAY_CHUNK_SIZE; \
-    (path).whead = g_new(WayPoint, ARRAY_CHUNK_SIZE); \
+    (path).whead = g_new0(WayPoint, ARRAY_CHUNK_SIZE); \
     (path).wtail = (path).whead - 1; \
     (path).wcap = (path).whead + ARRAY_CHUNK_SIZE; \
 }
@@ -76,4 +77,6 @@ Position _dest;
 void path_resize(Path *path, guint size);
 void path_wresize(Path *path, guint wsize);
 
+GtkListStore *path_generate_store(Path *path);
+
 #endif