[libpeas] Make peas_engine_shutdown() semi-private



commit 776c94113e1f98e89676b65d06f06951a82d2b54
Author: Garrett Regier <alias301 gmail com>
Date:   Wed Feb 9 00:59:55 2011 -0800

    Make peas_engine_shutdown() semi-private

 libpeas/Makefile.am                 |    1 +
 libpeas/peas-engine-priv.h          |   31 +++++++++++++++++++++++++++++++
 libpeas/peas-engine.c               |    1 +
 libpeas/peas-engine.h               |    1 -
 peas-demo/peas-demo.c               |    2 --
 tests/libpeas-gtk/testing/testing.c |    2 +-
 tests/libpeas/engine.c              |    2 ++
 tests/libpeas/testing/testing.c     |    2 +-
 8 files changed, 37 insertions(+), 5 deletions(-)
---
diff --git a/libpeas/Makefile.am b/libpeas/Makefile.am
index 5252f90..340ade0 100644
--- a/libpeas/Makefile.am
+++ b/libpeas/Makefile.am
@@ -29,6 +29,7 @@ INST_H_FILES =			\
 NOINST_H_FILES =			\
 	peas-debug.h			\
 	peas-dirs.h			\
+	peas-engine-priv.h		\
 	peas-extension-priv.h		\
 	peas-extension-subclasses.h	\
 	peas-helpers.h			\
diff --git a/libpeas/peas-engine-priv.h b/libpeas/peas-engine-priv.h
new file mode 100644
index 0000000..eff5d25
--- /dev/null
+++ b/libpeas/peas-engine-priv.h
@@ -0,0 +1,31 @@
+/*
+ * peas-engine-priv.h
+ * This file is part of libpeas
+ *
+ * Copyright (C) 2011 - Garrett Regier
+ *
+ *  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_ENGINE_PRIV_H__
+#define __PEAS_ENGINE_PRIV_H__
+
+G_BEGIN_DECLS
+
+void peas_engine_shutdown (void);
+
+G_END_DECLS
+
+#endif /* __PEAS_ENGINE_PRIV_H__ */
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index f0bf234..a4ad0a0 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -28,6 +28,7 @@
 
 #include "peas-i18n.h"
 #include "peas-engine.h"
+#include "peas-engine-priv.h"
 #include "peas-plugin-info-priv.h"
 #include "peas-plugin-loader.h"
 #include "peas-object-module.h"
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index 27370ba..df56800 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -69,7 +69,6 @@ struct _PeasEngineClass {
 
 GType             peas_engine_get_type            (void) G_GNUC_CONST;
 PeasEngine       *peas_engine_get_default         (void);
-void              peas_engine_shutdown            (void);
 
 void              peas_engine_add_search_path     (PeasEngine      *engine,
                                                    const gchar     *module_dir,
diff --git a/peas-demo/peas-demo.c b/peas-demo/peas-demo.c
index 3c11753..20640cc 100644
--- a/peas-demo/peas-demo.c
+++ b/peas-demo/peas-demo.c
@@ -140,7 +140,5 @@ main (int    argc,
 
   gtk_widget_destroy (main_window);
 
-  peas_engine_shutdown ();
-
   return 0;
 }
diff --git a/tests/libpeas-gtk/testing/testing.c b/tests/libpeas-gtk/testing/testing.c
index 549fadc..65d29f1 100644
--- a/tests/libpeas-gtk/testing/testing.c
+++ b/tests/libpeas-gtk/testing/testing.c
@@ -28,7 +28,7 @@
 #include <glib.h>
 #include <girepository.h>
 
-#include "libpeas/peas-plugin-info-priv.h"
+#include "libpeas/peas-engine-priv.h"
 
 #include "testing.h"
 
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c
index ccc8217..5a250d6 100644
--- a/tests/libpeas/engine.c
+++ b/tests/libpeas/engine.c
@@ -27,6 +27,8 @@
 #include <glib.h>
 #include <libpeas/peas.h>
 
+#include "libpeas/peas-engine-priv.h"
+
 #include "testing/testing.h"
 
 typedef struct _TestFixture TestFixture;
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index c29e122..e3da2c4 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -28,7 +28,7 @@
 #include <glib.h>
 #include <girepository.h>
 
-#include "libpeas/peas-plugin-info-priv.h"
+#include "libpeas/peas-engine-priv.h"
 
 #include "testing.h"
 



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