2010-12-15 20:45:38 +00:00
|
|
|
/* vim: set filetype=c: */
|
2011-04-26 11:21:25 +00:00
|
|
|
% ClassName
|
|
|
|
GstObject
|
|
|
|
% TYPE_CLASS_NAME
|
|
|
|
GST_TYPE_OBJECT
|
2010-04-14 23:32:34 +00:00
|
|
|
% includes
|
|
|
|
% prototypes
|
|
|
|
|
|
|
|
static void gst_replace_set_property (GObject * object,
|
|
|
|
guint property_id, const GValue * value, GParamSpec * pspec);
|
|
|
|
static void gst_replace_get_property (GObject * object,
|
|
|
|
guint property_id, GValue * value, GParamSpec * pspec);
|
|
|
|
static void gst_replace_dispose (GObject * object);
|
|
|
|
static void gst_replace_finalize (GObject * object);
|
|
|
|
|
|
|
|
% declare-class
|
|
|
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
|
|
|
% set-methods
|
|
|
|
gobject_class->set_property = gst_replace_set_property;
|
|
|
|
gobject_class->get_property = gst_replace_get_property;
|
|
|
|
gobject_class->dispose = gst_replace_dispose;
|
|
|
|
gobject_class->finalize = gst_replace_finalize;
|
|
|
|
% methods
|
|
|
|
|
|
|
|
void
|
|
|
|
gst_replace_set_property (GObject * object, guint property_id,
|
|
|
|
const GValue * value, GParamSpec * pspec)
|
|
|
|
{
|
2011-04-14 18:53:16 +00:00
|
|
|
/* GstReplace *replace = GST_REPLACE (object); */
|
2010-04-14 23:32:34 +00:00
|
|
|
|
|
|
|
switch (property_id) {
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gst_replace_get_property (GObject * object, guint property_id,
|
|
|
|
GValue * value, GParamSpec * pspec)
|
|
|
|
{
|
2011-04-14 18:53:16 +00:00
|
|
|
/* GstReplace *replace = GST_REPLACE (object); */
|
2010-04-14 23:32:34 +00:00
|
|
|
|
|
|
|
switch (property_id) {
|
|
|
|
default:
|
|
|
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gst_replace_dispose (GObject * object)
|
|
|
|
{
|
2011-04-14 18:53:16 +00:00
|
|
|
/* GstReplace *replace = GST_REPLACE (object); */
|
2010-04-14 23:32:34 +00:00
|
|
|
|
|
|
|
/* clean up as possible. may be called multiple times */
|
|
|
|
|
2013-02-06 20:35:36 +00:00
|
|
|
G_OBJECT_CLASS (gst_replace_parent_class)->dispose (object);
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gst_replace_finalize (GObject * object)
|
|
|
|
{
|
2011-04-14 18:53:16 +00:00
|
|
|
/* GstReplace *replace = GST_REPLACE (object); */
|
2010-04-14 23:32:34 +00:00
|
|
|
|
|
|
|
/* clean up object here */
|
|
|
|
|
2013-02-06 20:35:36 +00:00
|
|
|
G_OBJECT_CLASS (gst_replace_parent_class)->finalize (object);
|
2010-04-14 23:32:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% end
|
|
|
|
|