| 1 |
/* vim: set filetype=c: */ |
| 2 |
% ClassName |
| 3 |
GstObject |
| 4 |
% TYPE_CLASS_NAME |
| 5 |
GST_TYPE_OBJECT |
| 6 |
% includes |
| 7 |
% prototypes |
| 8 |
|
| 9 |
static void gst_replace_set_property (GObject * object, |
| 10 |
guint property_id, const GValue * value, GParamSpec * pspec); |
| 11 |
static void gst_replace_get_property (GObject * object, |
| 12 |
guint property_id, GValue * value, GParamSpec * pspec); |
| 13 |
static void gst_replace_dispose (GObject * object); |
| 14 |
static void gst_replace_finalize (GObject * object); |
| 15 |
|
| 16 |
% declare-class |
| 17 |
GObjectClass *gobject_class = G_OBJECT_CLASS (klass); |
| 18 |
% set-methods |
| 19 |
gobject_class->set_property = gst_replace_set_property; |
| 20 |
gobject_class->get_property = gst_replace_get_property; |
| 21 |
gobject_class->dispose = gst_replace_dispose; |
| 22 |
gobject_class->finalize = gst_replace_finalize; |
| 23 |
% methods |
| 24 |
|
| 25 |
void |
| 26 |
gst_replace_set_property (GObject * object, guint property_id, |
| 27 |
const GValue * value, GParamSpec * pspec) |
| 28 |
{ |
| 29 |
GstReplace *replace = GST_REPLACE (object); |
| 30 |
|
| 31 |
GST_DEBUG_OBJECT (replace, "set_property"); |
| 32 |
|
| 33 |
switch (property_id) { |
| 34 |
default: |
| 35 |
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |
| 36 |
break; |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
void |
| 41 |
gst_replace_get_property (GObject * object, guint property_id, |
| 42 |
GValue * value, GParamSpec * pspec) |
| 43 |
{ |
| 44 |
GstReplace *replace = GST_REPLACE (object); |
| 45 |
|
| 46 |
GST_DEBUG_OBJECT (replace, "get_property"); |
| 47 |
|
| 48 |
switch (property_id) { |
| 49 |
default: |
| 50 |
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); |
| 51 |
break; |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
void |
| 56 |
gst_replace_dispose (GObject * object) |
| 57 |
{ |
| 58 |
GstReplace *replace = GST_REPLACE (object); |
| 59 |
|
| 60 |
GST_DEBUG_OBJECT (replace, "dispose"); |
| 61 |
|
| 62 |
/* clean up as possible. may be called multiple times */ |
| 63 |
|
| 64 |
G_OBJECT_CLASS (gst_replace_parent_class)->dispose (object); |
| 65 |
} |
| 66 |
|
| 67 |
void |
| 68 |
gst_replace_finalize (GObject * object) |
| 69 |
{ |
| 70 |
GstReplace *replace = GST_REPLACE (object); |
| 71 |
|
| 72 |
GST_DEBUG_OBJECT (replace, "finalize"); |
| 73 |
|
| 74 |
/* clean up object here */ |
| 75 |
|
| 76 |
G_OBJECT_CLASS (gst_replace_parent_class)->finalize (object); |
| 77 |
} |
| 78 |
|
| 79 |
% end |
| 80 |
|