diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-03-03 22:04:37 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-03-05 16:38:53 +0100 |
commit | 77c5360d6de8e48b7b64bcbd74e64c02c9b75366 (patch) | |
tree | 41c274104238030b67ad1cf8f4e426fcb9d786d6 | |
parent | 1bd1be7b3f3daa0db7bf9ae210164a3b9616b279 (diff) |
Export types via our only public header
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/libplanfahr.c | 29 | ||||
-rw-r--r-- | src/libplanfahr.h | 10 |
5 files changed, 11 insertions, 33 deletions
@@ -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 */ |