[libgweather] Add a global gweather.h header file



commit 7907c3e894a86dda2b3087c34e5cca651e84beec
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 16 10:45:42 2013 +0100

    Add a global gweather.h header file
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693471

 doc/libgweather-sections.txt |    2 ++
 libgweather/Makefile.am      |    4 +++-
 libgweather/gweather.h       |   33 +++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/doc/libgweather-sections.txt b/doc/libgweather-sections.txt
index c9f9f89..df00013 100644
--- a/doc/libgweather-sections.txt
+++ b/doc/libgweather-sections.txt
@@ -1,3 +1,5 @@
+<INCLUDE>libgweather/gweather.h</INCLUDE>
+
 <SECTION>
 <FILE>gweathertimezonemenu</FILE>
 <TITLE>GWeatherTimezoneMenu</TITLE>
diff --git a/libgweather/Makefile.am b/libgweather/Makefile.am
index 008dfbc..93fc6e1 100644
--- a/libgweather/Makefile.am
+++ b/libgweather/Makefile.am
@@ -12,9 +12,11 @@ AM_CPPFLAGS =                        \
 AM_CFLAGS = $(WARN_CFLAGS)
 
 gweather_new_headers = \
+       gweather.h \
        gweather-location.h location-entry.h \
        gweather-timezone.h timezone-menu.h \
        gweather-weather.h gweather-enums.h
+
 libgweatherincdir = $(includedir)/libgweather-3.0/libgweather
 libgweatherinc_HEADERS = \
        $(gweather_new_headers)         \
@@ -93,7 +95,7 @@ CLEANFILES = $(schema_DATA) $(noinst_PROGRAMS) $(BUILT_SOURCES)
 # Introspection
 -include $(INTROSPECTION_MAKEFILE)
 INTROSPECTION_GIRS =
-INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir)
+INTROSPECTION_SCANNER_ARGS = --warn-all --add-include-path=$(srcdir) --c-include=libgweather/gweather.h
 INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
 
 if HAVE_INTROSPECTION
diff --git a/libgweather/gweather.h b/libgweather/gweather.h
new file mode 100644
index 0000000..de5c89d
--- /dev/null
+++ b/libgweather/gweather.h
@@ -0,0 +1,33 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/* gweather.h
+ *
+ * Copyright 2008, Red Hat, Inc.
+ *
+ * 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, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GWEATHER_H__
+#define __GWEATHER_H__
+
+#ifndef GWEATHER_I_KNOW_THIS_IS_UNSTABLE
+#error "libgweather should only be used if you understand that it's subject to change, and is not supported 
as a fixed API/ABI or as part of the platform"
+#endif
+
+#include <libgweather/gweather-location.h>
+#include <libgweather/gweather-timezone.h>
+#include <libgweather/gweather-weather.h>
+#include <libgweather/location-entry.h>
+
+#endif /* __GWEATHER_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]