+2005-12-20 Edward Hervey <edward@fluendo.com>
+
+ * gst/gstcaps.c: (gst_static_caps_get_type):
+ * gst/gstcaps.h:
+ Added gpointer GType for GstStaticCaps so we can wrap them in bindings.
+ * gst/gstpadtemplate.c: (gst_static_pad_template_get_type):
+ * gst/gstpadtemplate.h:
+ Added gpointer GType for GstStaticPadTemplate so we can wrap them in
+ bindings.
+
2005-12-18 Wim Taymans <wim@fluendo.com>
* libs/gst/base/gstadapter.c:
}
}
+GType
+gst_static_caps_get_type (void)
+{
+ static GType staticcaps_type = 0;
+
+ if (!staticcaps_type) {
+ staticcaps_type = g_pointer_type_register_static ("GstStaticCaps");
+ }
+ return staticcaps_type;
+}
+
+
/**
* gst_static_caps_get:
* @static_caps: the #GstStaticCaps to convert
#define GST_CAPS(object) ((GstCaps*)object)
#define GST_IS_CAPS(object) ((object) && (GST_CAPS(object)->type == GST_TYPE_CAPS))
+#define GST_TYPE_STATIC_CAPS (gst_static_caps_get_type())
+
/**
* GstCapsFlags:
* @GST_CAPS_FLAGS_ANY: Caps has no specific content, but can contain
GstCaps * gst_caps_make_writable (GstCaps *caps);
void gst_caps_unref (GstCaps* caps);
+GType gst_static_caps_get_type (void);
GstCaps * gst_static_caps_get (GstStaticCaps *static_caps);
/* manipulation */
return TRUE;
}
+GType
+gst_static_pad_template_get_type (void)
+{
+ static GType staticpadtemplate_type = 0;
+
+ if (!staticpadtemplate_type) {
+ staticpadtemplate_type =
+ g_pointer_type_register_static ("GstStaticPadTemplate");
+ }
+ return staticpadtemplate_type;
+}
+
/**
* gst_static_pad_template_get:
* @pad_template: the static pad template
typedef struct _GstPadTemplateClass GstPadTemplateClass;
typedef struct _GstStaticPadTemplate GstStaticPadTemplate;
+#define GST_TYPE_STATIC_PAD_TEMPLATE (gst_static_pad_template_get_type ())
+
#define GST_TYPE_PAD_TEMPLATE (gst_pad_template_get_type ())
#define GST_PAD_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD_TEMPLATE,GstPadTemplate))
#define GST_PAD_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD_TEMPLATE,GstPadTemplateClass))
/* templates and factories */
GType gst_pad_template_get_type (void);
+GType gst_static_pad_template_get_type (void);
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
GstPadDirection direction, GstPadPresence presence,