summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-04 13:53:56 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-05-20 09:11:08 +0100
commit56ee365077878819a0c4d938d9385bb18b5386b3 (patch)
tree3ceff6618745366336b5f92df6585ae03b2aec1b
parentef1444cfe46ec9c037a60f6f135e492200421c3d (diff)
(mini)object: add MAY_BE_LEAKED flag
https://bugzilla.gnome.org/show_bug.cgi?id=766008
-rw-r--r--gst/gstminiobject.h4
-rw-r--r--gst/gstobject.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h
index bdb2e6107a..88eb080f39 100644
--- a/gst/gstminiobject.h
+++ b/gst/gstminiobject.h
@@ -124,6 +124,9 @@ typedef void (*GstMiniObjectNotify) (gpointer user_data, GstMiniObject * obj);
* gst_mini_object_lock() and gst_mini_object_unlock().
* @GST_MINI_OBJECT_FLAG_LOCK_READONLY: the object is permanently locked in
* READONLY mode. Only read locks can be performed on the object.
+ * @GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED: the object is expected to stay alive
+ * even after gst_deinit() has been called and so should be ignored by leak
+ * detection tools. (Since 1.10)
* @GST_MINI_OBJECT_FLAG_LAST: first flag that can be used by subclasses.
*
* Flags for the mini object
@@ -132,6 +135,7 @@ typedef enum
{
GST_MINI_OBJECT_FLAG_LOCKABLE = (1 << 0),
GST_MINI_OBJECT_FLAG_LOCK_READONLY = (1 << 1),
+ GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED = (1 << 2),
/* padding */
GST_MINI_OBJECT_FLAG_LAST = (1 << 4)
} GstMiniObjectFlags;
diff --git a/gst/gstobject.h b/gst/gstobject.h
index ad033e85e4..1ca60635bf 100644
--- a/gst/gstobject.h
+++ b/gst/gstobject.h
@@ -41,12 +41,16 @@ G_BEGIN_DECLS
/**
* GstObjectFlags:
+ * @GST_OBJECT_FLAG_MAY_BE_LEAKED: the object is expected to stay alive even
+ * after gst_deinit() has been called and so should be ignored by leak
+ * detection tools. (Since 1.10)
* @GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag
*
* The standard flags that an gstobject may have.
*/
typedef enum
{
+ GST_OBJECT_FLAG_MAY_BE_LEAKED = (1 << 0),
/* padding */
GST_OBJECT_FLAG_LAST = (1<<4)
} GstObjectFlags;