From 2b172b9fa002ee83c5f19209fa31b1ce9ca814d1 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Fri, 9 Dec 2011 16:51:02 +0200 Subject: [PATCH] Add common header for the library It seems that the .gir file format cannot handle more than one header file. --- libsignon-glib/Makefile.am | 7 ++++++- libsignon-glib/signon-glib.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 libsignon-glib/signon-glib.h diff --git a/libsignon-glib/Makefile.am b/libsignon-glib/Makefile.am index 66ca278..b3b6db1 100644 --- a/libsignon-glib/Makefile.am +++ b/libsignon-glib/Makefile.am @@ -55,6 +55,7 @@ libsignon_glib_include_HEADERS = \ signon-identity.h \ signon-errors.h \ signon-enum-types.h \ + signon-glib.h \ $(signon_headers) # Headers with enums to be parsed with glib-mkenums; @@ -152,7 +153,11 @@ introspection_sources = \ Signon-1.0.gir: libsignon-glib.la Signon_1_0_gir_INCLUDES = GObject-2.0 -Signon_1_0_gir_SCANNERFLAGS = --identifier-prefix=Signon --symbol-prefix=signon +Signon_1_0_gir_SCANNERFLAGS = \ + --identifier-prefix=Signon \ + --symbol-prefix=signon \ + --c-include="libsignon-glib/signon-glib.h" \ + --warn-all Signon_1_0_gir_CFLAGS = $(DEPS_CFLAGS) Signon_1_0_gir_LIBS = libsignon-glib.la Signon_1_0_gir_FILES = $(introspection_sources) diff --git a/libsignon-glib/signon-glib.h b/libsignon-glib/signon-glib.h new file mode 100644 index 0000000..02b84bc --- /dev/null +++ b/libsignon-glib/signon-glib.h @@ -0,0 +1,35 @@ +/* vi: set et sw=4 ts=4 cino=t0,(0: */ +/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of libsignon-glib + * + * Copyright (C) 2011 Canonical Ltd. + * + * Contact: Alberto Mardegan + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * version 2.1 as published by the Free Software Foundation. + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA + */ + +#ifndef SIGNON_GLIB_H +#define SIGNON_GLIB_H + +#include +#include +#include +#include +#include +#include + +#endif /* SIGNON_GLIB_H */ -- 2.7.4