Fix:vehicle_pipe:Made working with ondemand
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 3 Jan 2009 19:08:58 +0000 (19:08 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 3 Jan 2009 19:08:58 +0000 (19:08 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1883 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/vehicle/file/Makefile.am
navit/vehicle/file/vehicle_pipe.c [new file with mode: 0644]

index 51064ad..9407f58 100644 (file)
@@ -1,4 +1,7 @@
 include $(top_srcdir)/Makefile.inc
-AM_CPPFLAGS = @NAVIT_CFLAGS@ -I$(top_srcdir)/navit -DMODULE=vehicle_file
-modulevehicle_LTLIBRARIES = libvehicle_file.la
+AM_CPPFLAGS = @NAVIT_CFLAGS@ -I$(top_srcdir)/navit
+modulevehicle_LTLIBRARIES = libvehicle_file.la libvehicle_pipe.la
+libvehicle_file_la_CFLAGS=-DMODULE=vehicle_file
 libvehicle_file_la_SOURCES = vehicle_file.c
+libvehicle_pipe_la_CFLAGS=-DMODULE=vehicle_pipe
+libvehicle_pipe_la_SOURCES = vehicle_pipe.c
diff --git a/navit/vehicle/file/vehicle_pipe.c b/navit/vehicle/file/vehicle_pipe.c
new file mode 100644 (file)
index 0000000..0750ede
--- /dev/null
@@ -0,0 +1,27 @@
+/**
+ * Navit, a modular navigation system.
+ * Copyright (C) 2005-2008 Navit Team
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA  02110-1301, USA.
+ */
+
+#include "config.h"
+#include "plugin.h"
+
+void
+plugin_init(void)
+{
+       plugin_get_vehicle_type("file");
+}