gst/gsttypefind.*: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType...
authorEdward Hervey <bilboed@bilboed.com>
Thu, 18 May 2006 14:25:00 +0000 (14:25 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 18 May 2006 14:25:00 +0000 (14:25 +0000)
Original commit message from CVS:
* gst/gsttypefind.c: (gst_type_find_get_type):
* gst/gsttypefind.h:
Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets
registered for GstTypeFind pointers. This allows wrapping the structure
in bindings (i.e. gst-python).

ChangeLog
gst/gsttypefind.c
gst/gsttypefind.h

index fb9c0bf..3f37f90 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-05-18  Edward Hervey  <edward@fluendo.com>
+
+       * gst/gsttypefind.c: (gst_type_find_get_type):
+       * gst/gsttypefind.h:
+       Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets
+       registered for GstTypeFind pointers. This allows wrapping the structure
+       in bindings (i.e. gst-python).
+
 2006-05-18  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gsttagsetter.c:
index 4c6d07f..a8ecca2 100644 (file)
 GST_DEBUG_CATEGORY_EXTERN (gst_type_find_debug);
 #define GST_CAT_DEFAULT gst_type_find_debug
 
+GType
+gst_type_find_get_type (void)
+{
+  static GType typefind_type = 0;
+
+  if (G_UNLIKELY (typefind_type == 0)) {
+    typefind_type = g_pointer_type_register_static ("GstTypeFind");
+  }
+  return typefind_type;
+}
+
 /**
  * gst_type_find_register:
  * @plugin: A #GstPlugin.
index 71a8a0e..c852b02 100644 (file)
@@ -29,6 +29,8 @@
 
 G_BEGIN_DECLS
 
+#define GST_TYPE_TYPE_FIND     (gst_type_find_get_type())
+
 typedef struct _GstTypeFind GstTypeFind;
 
 /**
@@ -86,6 +88,8 @@ struct _GstTypeFind {
   gpointer _gst_reserved[GST_PADDING];
 };
 
+GType          gst_type_find_get_type                  (void);
+
 /* typefind function interface */
 guint8 *       gst_type_find_peek                      (GstTypeFind *          find,
                                                         gint64                 offset,