mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst/gsttypefind.*: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets registered for GstTypeFind p...
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).
This commit is contained in:
parent
38c16420e8
commit
d28f3fe4be
3 changed files with 23 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -38,6 +38,17 @@
|
|||
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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue