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 <!-- ##### SIGNAL GstObject::deep-notify ##### -->
45 The deep notify signal is used to be notified of property changes.
46 it is typically attached to the toplevel bin to receive notifications
47 from all the elements contained in that bin.
50 @gstobject: the object which received the signal.
51 @arg1: the object that originated the signal
52 @arg2: the property that changed
54 <!-- ##### SIGNAL GstObject::object-saved ##### -->
56 Is trigered whenever a new object is saved to XML. You can connect to
57 this signal to insert custom XML tags into the core XML.
60 @gstobject: the object which received the signal.
61 @arg1: the xmlNodePtr of the parent node
63 <!-- ##### SIGNAL GstObject::parent-set ##### -->
65 Is emitted when the parent of an object is set.
68 @gstobject: the object which received the signal.
71 <!-- ##### SIGNAL GstObject::parent-unset ##### -->
73 Is emitted when the parent of an object is unset.
76 @gstobject: the object which received the signal.
79 <!-- ##### ARG GstObject:name ##### -->
81 The name of the object
84 <!-- ##### MACRO GST_FLAGS ##### -->
86 This macro returns the entire set of flags for the object.
89 @obj: Object to return flags for.
92 <!-- ##### MACRO GST_FLAG_IS_SET ##### -->
94 This macro checks to see if the given flag is set.
97 @obj: GstSrc to check for flag in.
98 @flag: Flag to check for, must be a single bit in guint32.
101 <!-- ##### MACRO GST_FLAG_SET ##### -->
103 This macro sets the given bits.
106 @obj: Object to set flag in.
107 @flag: Flag to set, can by any number of bits in guint32.
110 <!-- ##### MACRO GST_FLAG_UNSET ##### -->
112 This macro usets the given bits.
115 @obj: Object to unset flag in.
116 @flag: Flag to set, must be a single bit in guint32.
119 <!-- ##### MACRO GST_LOCK ##### -->
121 This macro will obtain a lock on the object, making serialization
125 @obj: Object to lock.
128 <!-- ##### MACRO GST_TRYLOCK ##### -->
130 This macro will try to obtain a lock on the object, but will return with
131 FALSE if it can't get it immediately.
134 @obj: Object to try to get a lock on.
137 <!-- ##### MACRO GST_UNLOCK ##### -->
139 This macro releases a lock on the object.
142 @obj: Object to unlock.
145 <!-- ##### MACRO GST_GET_LOCK ##### -->
147 Acquire a reference to the mutex of this object.
150 @obj: Object to get the mutex of.
153 <!-- ##### MACRO GST_OBJECT_PARENT ##### -->
155 Get the parent of this object
158 @obj: Object to get the parent of.
161 <!-- ##### MACRO GST_OBJECT_NAME ##### -->
163 Get the name of this object
166 @obj: Object to get the name of.
169 <!-- ##### MACRO GST_OBJECT_FLOATING ##### -->
171 Check if the object is floating.
174 @obj: The Object to check
177 <!-- ##### MACRO GST_OBJECT_DESTROYED ##### -->
179 Check if the object has been destroyed.
182 @obj: The Object to check
185 <!-- ##### FUNCTION gst_object_check_uniqueness ##### -->
195 <!-- ##### FUNCTION gst_object_set_parent ##### -->
204 <!-- ##### FUNCTION gst_object_get_parent ##### -->
213 <!-- ##### FUNCTION gst_object_set_name ##### -->
222 <!-- ##### FUNCTION gst_object_get_name ##### -->
231 <!-- ##### FUNCTION gst_object_unparent ##### -->
239 <!-- ##### FUNCTION gst_object_ref ##### -->
248 <!-- ##### FUNCTION gst_object_unref ##### -->
256 <!-- ##### FUNCTION gst_object_replace ##### -->
265 <!-- ##### FUNCTION gst_object_sink ##### -->
273 <!-- ##### FUNCTION gst_object_save_thyself ##### -->
283 <!-- ##### FUNCTION gst_object_restore_thyself ##### -->
292 <!-- ##### FUNCTION gst_object_get_path_string ##### -->
301 <!-- ##### FUNCTION gst_object_default_deep_notify ##### -->
312 <!-- ##### FUNCTION gst_class_signal_emit_by_name ##### -->
322 <!-- ##### FUNCTION gst_class_signal_connect ##### -->