aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am1
-rw-r--r--src/libplanfahr.c29
-rw-r--r--src/libplanfahr.h10
5 files changed, 11 insertions, 33 deletions
diff --git a/autogen.sh b/autogen.sh
index 74d59fe..1c0f8f3 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -8,7 +8,7 @@ REQUIRED_INTLTOOL_VERSION=0.35.0
PKG_NAME=planfahr
(test -f $srcdir/configure.ac \
- && test -f $srcdir/src/libplanfahr.c) || {
+ && test -f $srcdir/src/libplanfahr.h) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
diff --git a/configure.ac b/configure.ac
index 89339fa..1e744c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
AC_INIT(libplanfahr, 0.0.0)
-AC_CONFIG_SRCDIR(src/libplanfahr.c)
+AC_CONFIG_SRCDIR(src/libplanfahr.h)
AC_CONFIG_AUX_DIR([build-aux])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
diff --git a/src/Makefile.am b/src/Makefile.am
index da5878c..9956d9d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -18,7 +18,6 @@ PLANFAHR_HEADER_FILES = \
$(NULL)
PLANFAHR_SOURCE_FILES = \
- libplanfahr.c \
lpf-manager.c \
lpf-provider.c \
lpf-loc.c \
diff --git a/src/libplanfahr.c b/src/libplanfahr.c
deleted file mode 100644
index 219f532..0000000
--- a/src/libplanfahr.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * libplanfahr.c: access public transport time tables
- *
- * Copyright (C) 2014 Guido Günther
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Guido Günther <agx@sigxcpu.org>
- */
-
-#ifndef _LIBPLANFAHR
-#define _LIBPLANFAHR
-
-#include "lpf-manager.h"
-#include "lpf-provider.h"
-
-#endif /* _LIBPLANFAHR */
diff --git a/src/libplanfahr.h b/src/libplanfahr.h
index 8837115..518927a 100644
--- a/src/libplanfahr.h
+++ b/src/libplanfahr.h
@@ -20,6 +20,14 @@
* Author: Guido Günther <agx@sigxcpu.org>
*/
+#ifndef _LIBPLANFAHR
+#define _LIBPLANFAHR
-#include <config.h>
+#include "lpf-loc.h"
+#include "lpf-manager.h"
+#include "lpf-provider.h"
+#include "lpf-stop.h"
+#include "lpf-trip.h"
+#include "lpf-trip-part.h"
+#endif /* _LIBPLANFAHR */