1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Basis for the GST object hierarchy.
7 <!-- ##### SECTION Long_Description ##### -->
9 GstObject provides a root for the object hierarchy tree filed in by the
10 GST library. It is currently a thin wrapper on top of
11 <classname>GObject</classname>. It is an abstract class that is not
12 very usable on its own.
16 GstObject gives us basic refcounting, parenting functionality and locking.
19 gst_object_set_name() and gst_object_get_name() are used to set/get the name of the
23 <!-- ##### SECTION See_Also ##### -->
28 <!-- ##### ENUM GstObjectFlags ##### -->
33 @GST_DESTROYED: The object is flagged for destruction
34 @GST_FLOATING: The object is created but has no parent yet to manage it
35 @GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag
37 <!-- ##### STRUCT GstObject ##### -->
43 <!-- ##### MACRO GST_FLAGS ##### -->
45 This macro returns the entire set of flags for the object.
48 @obj: Object to return flags for.
51 <!-- ##### MACRO GST_FLAG_IS_SET ##### -->
53 This macro checks to see if the given flag is set.
56 @obj: GstSrc to check for flag in.
57 @flag: Flag to check for, must be a single bit in guint32.
60 <!-- ##### MACRO GST_FLAG_SET ##### -->
62 This macro sets the given bits.
65 @obj: Object to set flag in.
66 @flag: Flag to set, can by any number of bits in guint32.
69 <!-- ##### MACRO GST_FLAG_UNSET ##### -->
71 This macro usets the given bits.
74 @obj: Object to unset flag in.
75 @flag: Flag to set, must be a single bit in guint32.
78 <!-- ##### MACRO GST_LOCK ##### -->
80 This macro will obtain a lock on the object, making serialization
87 <!-- ##### MACRO GST_TRYLOCK ##### -->
89 This macro will try to obtain a lock on the object, but will return with
90 FALSE if it can't get it immediately.
93 @obj: Object to try to get a lock on.
96 <!-- ##### MACRO GST_UNLOCK ##### -->
98 This macro releases a lock on the object.
101 @obj: Object to unlock.
104 <!-- ##### MACRO GST_GET_LOCK ##### -->
106 Acquire a reference to the mutex of this object.
109 @obj: Object to get the mutex of.
112 <!-- ##### MACRO GST_OBJECT_PARENT ##### -->
114 Get the parent of this object
117 @obj: Object to get the parent of.
120 <!-- ##### MACRO GST_OBJECT_NAME ##### -->
122 Get the name of this object
125 @obj: Object to get the name of.
128 <!-- ##### MACRO GST_OBJECT_FLOATING ##### -->
130 Check if the object is floating.
133 @obj: The Object to check
136 <!-- ##### MACRO GST_OBJECT_DESTROYED ##### -->
138 Check if the object has been destroyed.
141 @obj: The Object to check
144 <!-- ##### FUNCTION gst_object_check_uniqueness ##### -->
154 <!-- ##### FUNCTION gst_object_set_parent ##### -->
163 <!-- ##### FUNCTION gst_object_get_parent ##### -->
172 <!-- ##### FUNCTION gst_object_set_name ##### -->
181 <!-- ##### FUNCTION gst_object_get_name ##### -->
190 <!-- ##### FUNCTION gst_object_unparent ##### -->
198 <!-- ##### FUNCTION gst_object_ref ##### -->
207 <!-- ##### FUNCTION gst_object_unref ##### -->
215 <!-- ##### FUNCTION gst_object_replace ##### -->
224 <!-- ##### FUNCTION gst_object_sink ##### -->
232 <!-- ##### FUNCTION gst_object_save_thyself ##### -->
242 <!-- ##### FUNCTION gst_object_restore_thyself ##### -->
251 <!-- ##### FUNCTION gst_object_get_path_string ##### -->
260 <!-- ##### FUNCTION gst_object_default_deep_notify ##### -->
271 <!-- ##### FUNCTION gst_class_signal_emit_by_name ##### -->
281 <!-- ##### FUNCTION gst_class_signal_connect ##### -->
293 <!-- ##### SIGNAL GstObject::deep-notify ##### -->
295 The deep notify signal is used to be notified of property changes.
296 it is typically attached to the toplevel bin to receive notifications
297 from all the elements contained in that bin.
300 @gstobject: the object which received the signal.
301 @arg1: the object that originated the signal
302 @arg2: the property that changed
304 <!-- ##### SIGNAL GstObject::object-saved ##### -->
306 Is trigered whenever a new object is saved to XML. You can connect to
307 this signal to insert custom XML tags into the core XML.
310 @gstobject: the object which received the signal.
311 @arg1: the xmlNodePtr of the parent node
313 <!-- ##### SIGNAL GstObject::parent-set ##### -->
315 Is emitted when the parent of an object is set.
318 @gstobject: the object which received the signal.
319 @arg1: the new parent
321 <!-- ##### SIGNAL GstObject::parent-unset ##### -->
323 Is emitted when the parent of an object is unset.
326 @gstobject: the object which received the signal.
327 @arg1: the old parent
329 <!-- ##### ARG GstObject:name ##### -->
331 The name of the object