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> but it can be compiled against GTK+ with
12 a shim provided by the GStreamer library. It is an abstract class that is not
13 very usable on its own.
17 GstObject gives us basic refcounting, parenting functionality and locking.
20 gst_object_set_name() and gst_object_get_name() are used to set/get the name of the
24 <!-- ##### SECTION See_Also ##### -->
29 <!-- ##### ENUM GstObjectFlags ##### -->
36 @GST_OBJECT_FLAG_LAST:
38 <!-- ##### STRUCT GstObject ##### -->
44 <!-- ##### MACRO GST_FLAGS ##### -->
46 This macro returns the entire set of flags for the object.
49 @obj: Object to return flags for.
52 <!-- ##### MACRO GST_FLAG_IS_SET ##### -->
54 This macro checks to see if the given flag is set.
57 @obj: GstSrc to check for flag in.
58 @flag: Flag to check for, must be a single bit in guint32.
61 <!-- ##### MACRO GST_FLAG_SET ##### -->
63 This macro sets the given bits.
66 @obj: Object to set flag in.
67 @flag: Flag to set, can by any number of bits in guint32.
70 <!-- ##### MACRO GST_FLAG_UNSET ##### -->
72 This macro usets the given bits.
75 @obj: Object to unset flag in.
76 @flag: Flag to set, must be a single bit in guint32.
79 <!-- ##### MACRO GST_LOCK ##### -->
81 This macro will obtain a lock on the object, making serialization
88 <!-- ##### MACRO GST_TRYLOCK ##### -->
90 This macro will try to obtain a lock on the object, but will return with
91 FALSE if it can't get it immediately.
94 @obj: Object to try to get a lock on.
97 <!-- ##### MACRO GST_UNLOCK ##### -->
99 This macro releases a lock on the object.
102 @obj: Object to unlock.
105 <!-- ##### MACRO GST_GET_LOCK ##### -->
107 Acquire a reference to the mutex of this object.
110 @obj: Object to get the mutex of.
113 <!-- ##### MACRO GST_OBJECT_PARENT ##### -->
115 Get the parent of this object
118 @obj: Object to get the parent of.
121 <!-- ##### MACRO GST_OBJECT_NAME ##### -->
123 Get the name of this object
126 @obj: Object to get the name of.
129 <!-- ##### MACRO GST_OBJECT_FLOATING ##### -->
131 Check if the object is floating.
134 @obj: The Object to check
137 <!-- ##### MACRO GST_OBJECT_DESTROYED ##### -->
139 Check if the object has been destroyed.
142 @obj: The Object to check
145 <!-- ##### FUNCTION gst_object_check_uniqueness ##### -->
155 <!-- ##### FUNCTION gst_object_set_parent ##### -->
164 <!-- ##### FUNCTION gst_object_get_parent ##### -->
173 <!-- ##### FUNCTION gst_object_set_name ##### -->
182 <!-- ##### FUNCTION gst_object_get_name ##### -->
191 <!-- ##### FUNCTION gst_object_unparent ##### -->
199 <!-- ##### FUNCTION gst_object_ref ##### -->
208 <!-- ##### FUNCTION gst_object_unref ##### -->
216 <!-- ##### FUNCTION gst_object_sink ##### -->
224 <!-- ##### FUNCTION gst_object_destroy ##### -->
232 <!-- ##### FUNCTION gst_object_save_thyself ##### -->
242 <!-- ##### FUNCTION gst_object_restore_thyself ##### -->
251 <!-- ##### FUNCTION gst_object_get_path_string ##### -->
260 <!-- ##### FUNCTION gst_class_signal_emit_by_name ##### -->
270 <!-- ##### FUNCTION gst_class_signal_connect ##### -->
282 <!-- ##### SIGNAL GstObject::parent-set ##### -->
287 @gstobject: the object which received the signal.
288 @arg1: the new parent
290 <!-- ##### SIGNAL GstObject::object-saved ##### -->
292 Is trigered whenever a new object is saved to XML. You can connect to
293 this signal to insert custom XML tags into the core XML.
296 @gstobject: the object which received the signal.
297 @arg1: the xmlNodePtr of the parent node