mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
more complete(?) XML description of example
Original commit message from CVS: more complete(?) XML description of example
This commit is contained in:
parent
a1d52b2aa6
commit
3dd77c5107
1 changed files with 47 additions and 3 deletions
|
@ -65,7 +65,7 @@ gst_object_destroy(object);
|
||||||
|
|
||||||
##### XML descriptions
|
##### XML descriptions
|
||||||
|
|
||||||
<setup name="new object">
|
<construct name="new object">
|
||||||
<variable>
|
<variable>
|
||||||
GstObject *object;
|
GstObject *object;
|
||||||
</variabls>
|
</variabls>
|
||||||
|
@ -95,6 +95,50 @@ gst_object_destroy(object);
|
||||||
gst_object_destroy(object);
|
gst_object_destroy(object);
|
||||||
</action>
|
</action>
|
||||||
</cleanup>
|
</cleanup>
|
||||||
</setup>
|
</construct>
|
||||||
|
|
||||||
. . .
|
<construct name="set object parent">
|
||||||
|
<variable>
|
||||||
|
GstObject *object;
|
||||||
|
</variable>
|
||||||
|
<variable>
|
||||||
|
GstObject *object;
|
||||||
|
</variable>
|
||||||
|
<precondition>
|
||||||
|
<assert>
|
||||||
|
object->parent == NULL
|
||||||
|
</assert>
|
||||||
|
</precondition>
|
||||||
|
<action>
|
||||||
|
gst_object_set_parent(object,parent);
|
||||||
|
</action>
|
||||||
|
<validation>
|
||||||
|
<assert>
|
||||||
|
object->parent == parent
|
||||||
|
</assert>
|
||||||
|
</validation>
|
||||||
|
</construct>
|
||||||
|
|
||||||
|
<test name="set object parent">
|
||||||
|
<variable>
|
||||||
|
GstObject *object;
|
||||||
|
<variable>
|
||||||
|
</variable>
|
||||||
|
GstObject *parent;
|
||||||
|
<variable>
|
||||||
|
</variable>
|
||||||
|
GstObject *curparent;
|
||||||
|
</variable>
|
||||||
|
<setup>
|
||||||
|
object = gst_object_new();
|
||||||
|
parent = gst_object_new();
|
||||||
|
gst_object_set_parent(object,parent);
|
||||||
|
</setup>
|
||||||
|
<action>
|
||||||
|
curparent = gst_element_get_parent(object);
|
||||||
|
</action>
|
||||||
|
<validation>
|
||||||
|
curparent == object->parent
|
||||||
|
curparent == parent
|
||||||
|
</validation>
|
||||||
|
</test>
|
||||||
|
|
Loading…
Reference in a new issue