Gst.MiniObject.prototype.set_qdata
function set_qdata(quark:GLib.Quark, data:gpointer, destroy:GLib.DestroyNotify):void { // Gjs wrapper for gst_mini_object_set_qdata() }
This sets an opaque, named pointer on a miniobject. The name is specified through a GLib.Quark (retrived e.g. via GLib.quark_from_static_string), and the pointer can be gotten back from the object with Gst.MiniObject.prototype.get_qdata until the object is disposed. Setting a previously set user data pointer, overrides (frees) the old pointer set, using #NULL as pointer essentially removes the data stored.
destroy may be specified which is called with data as argument when the object is disposed, or the data is being overwritten by a call to Gst.MiniObject.prototype.set_qdata with the same quark.
- quark
A GLib.Quark, naming the user data pointer
- data
An opaque user data pointer
- destroy
Function to invoke with data as argument, when data needs to be freed