[libpeas] Add single-include headers.



commit 876c1416b72e02cf61c5fc1a7e6ddd955f513858
Author: Abderrahim Kitouni <a kitouni gmail com>
Date:   Fri Jul 2 01:01:38 2010 +0200

    Add single-include headers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622664

 libpeas/Makefile.am   |    8 ++++++--
 libpeas/peas.h        |   31 +++++++++++++++++++++++++++++++
 libpeasui/Makefile.am |    8 ++++++--
 libpeasui/peas-ui.h   |   27 +++++++++++++++++++++++++++
 4 files changed, 70 insertions(+), 4 deletions(-)
---
diff --git a/libpeas/Makefile.am b/libpeas/Makefile.am
index 43fde6c..24e5f90 100644
--- a/libpeas/Makefile.am
+++ b/libpeas/Makefile.am
@@ -23,7 +23,8 @@ INST_H_FILES =			\
 	peas-extension.h	\
 	peas-extension-set.h	\
 	peas-activatable.h	\
-	peas-engine.h
+	peas-engine.h		\
+	peas.h
 
 NOINST_H_FILES =		\
 	peas-debug.h		\
@@ -76,7 +77,10 @@ dist-hook:
 if HAVE_INTROSPECTION
   -include $(INTROSPECTION_MAKEFILE)
   INTROSPECTION_GIRS = Peas-1.0.gir
-  INTROSPECTION_SCANNER_ARGS = -I$(top_srcdir) --warn-all
+  INTROSPECTION_SCANNER_ARGS = \
+	-I$(top_srcdir) 		\
+	--c-include=libpeas/peas.h	\
+	--warn-all
 
   introspection_sources = $(INST_H_FILES) $(C_FILES)
 
diff --git a/libpeas/peas.h b/libpeas/peas.h
new file mode 100644
index 0000000..2643acb
--- /dev/null
+++ b/libpeas/peas.h
@@ -0,0 +1,31 @@
+/*
+ * peas.h
+ * This file is part of libpeas
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Library General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  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 Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PEAS_H__
+#define __PEAS_H__
+
+#include "peas-activatable.h"
+#include "peas-engine.h"
+#include "peas-extension.h"
+#include "peas-extension-base.h"
+#include "peas-extension-set.h"
+#include "peas-object-module.h"
+#include "peas-plugin-info.h"
+
+#endif
diff --git a/libpeasui/Makefile.am b/libpeasui/Makefile.am
index 81b2745..bfbb515 100644
--- a/libpeasui/Makefile.am
+++ b/libpeasui/Makefile.am
@@ -20,7 +20,8 @@ libpeasui_1_0_la_LIBADD = \
 INST_H_FILES = \
 	peas-ui-configurable.h		\
 	peas-ui-plugin-info.h		\
-	peas-ui-plugin-manager.h
+	peas-ui-plugin-manager.h	\
+	peas-ui.h
 
 libpeasui_1_0_la_SOURCES = \
 	peas-ui-configurable.c		\
@@ -34,7 +35,10 @@ header_DATA = $(INST_H_FILES)
 if HAVE_INTROSPECTION
   -include $(INTROSPECTION_MAKEFILE)
   INTROSPECTION_GIRS = PeasUI-1.0.gir
-  INTROSPECTION_SCANNER_ARGS = --add-include-path=$(top_builddir)/libpeas --warn-all
+  INTROSPECTION_SCANNER_ARGS = \
+	--add-include-path=$(top_builddir)/libpeas	\
+	--c-include=libpeasui/peas-ui.h			\
+	--warn-all
   INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)/libpeas
 
   introspection_sources = $(libpeasui_1_0_la_SOURCES)
diff --git a/libpeasui/peas-ui.h b/libpeasui/peas-ui.h
new file mode 100644
index 0000000..9192a9d
--- /dev/null
+++ b/libpeasui/peas-ui.h
@@ -0,0 +1,27 @@
+/*
+ * peas-ui.h
+ * This file is part of libpeas
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Library General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  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 Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __PEAS_UI_H__
+#define __PEAS_UI_H__
+
+#include "peas-ui-configurable.h"
+#include "peas-ui-plugin-info.h"
+#include "peas-ui-plugin-manager.h"
+
+#endif



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