gnomemm r2157 - in gstreamermm/trunk: . tools/extra_defs_gen



Author: jaalburqu
Date: Tue Apr 14 00:12:35 2009
New Revision: 2157
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2157&view=rev

Log:
2009-04-13  Josà Alburquerque  <jaalburqu svn gnome org>

	* tools/extra_defs_gen/Makefile.am:
	* tools/extra_defs_gen/gst_type_is_a_pointer.cc:
	* tools/extra_defs_gen/gst_type_is_a_pointer.h: Removed these .h and
	.cc files because they contain only one function.
	* tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Defined the
	function here where it is used.

Removed:
   gstreamermm/trunk/tools/extra_defs_gen/gst_type_is_a_pointer.cc
   gstreamermm/trunk/tools/extra_defs_gen/gst_type_is_a_pointer.h
Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/tools/extra_defs_gen/Makefile.am
   gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc

Modified: gstreamermm/trunk/tools/extra_defs_gen/Makefile.am
==============================================================================
--- gstreamermm/trunk/tools/extra_defs_gen/Makefile.am	(original)
+++ gstreamermm/trunk/tools/extra_defs_gen/Makefile.am	Tue Apr 14 00:12:35 2009
@@ -1,8 +1,8 @@
 # Build the library, to be installed and used by other plug-in generating
 # modules:
 
-files_h = get_plugin_defs.h gst_type_is_a_pointer.h
-files_cc = get_plugin_defs.cc gst_type_is_a_pointer.cc
+files_h = get_plugin_defs.h
+files_cc = get_plugin_defs.cc
 
 if PLATFORM_WIN32
 no_undefined = -no-undefined

Modified: gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
==============================================================================
--- gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc	(original)
+++ gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc	Tue Apr 14 00:12:35 2009
@@ -19,8 +19,6 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include "gst_type_is_a_pointer.h"
-
 #include <gst/gst.h>
 #include <glibmm.h>
 #include <iostream>
@@ -110,6 +108,13 @@
   "GstVideoSink"
 };
 
+bool gst_type_is_a_pointer(GType gtype)
+{
+  return (g_type_is_a(gtype, G_TYPE_OBJECT) ||
+    g_type_is_a(gtype, G_TYPE_BOXED) ||
+    g_type_is_a(gtype, GST_TYPE_MINI_OBJECT));
+}
+
 Glib::ustring get_cast_macro(const Glib::ustring& typeName)
 {
   Glib::ustring result;



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