* retains ownership of the name prefix it sent.
*
* MT safe. This function grabs and releases @object's LOCK.
+ *
+ * Deprecated: deprecated because the name prefix has never actually been used
+ * for anything.
*/
+#ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+void gst_object_set_name_prefix (GstObject * object, const gchar * name_prefix);
+#endif
void
gst_object_set_name_prefix (GstObject * object, const gchar * name_prefix)
{
object->name_prefix = g_strdup (name_prefix); /* NULL gives NULL */
GST_OBJECT_UNLOCK (object);
}
+#endif /* GST_REMOVE_DEPRECATED */
/**
* gst_object_get_name_prefix:
* Returns: the name prefix of @object. g_free() after usage.
*
* MT safe. This function grabs and releases @object's LOCK.
+ *
+ * Deprecated: deprecated because the name prefix has never actually been used
+ * for anything.
*/
+#ifndef GST_REMOVE_DEPRECATED
+#ifdef GST_DISABLE_DEPRECATED
+gchar *gst_object_get_name_prefix (GstObject * object);
+#endif
gchar *
gst_object_get_name_prefix (GstObject * object)
{
return result;
}
+#endif /* GST_REMOVE_DEPRECATED */
/**
* gst_object_set_parent:
* @refcount: unused
* @lock: object LOCK
* @name: The name of the object
- * @name_prefix: used for debugging
+ * @name_prefix: unused
* @parent: this object's parent, weak ref
* @flags: use GST_OBJECT_IS_XXX macros to access the flags
*
GObject object;
/*< public >*/
- gint refcount;
+ gint refcount; /* unused (FIXME 0.11: remove) */
/*< public >*/ /* with LOCK */
GMutex *lock; /* object LOCK */
gchar *name; /* object name */
- gchar *name_prefix; /* used for debugging */
+ gchar *name_prefix; /* (un)used for debugging (FIXME 0.11: remove) */
GstObject *parent; /* this object's parent, weak ref */
guint32 flags;
/* name routines */
gboolean gst_object_set_name (GstObject *object, const gchar *name);
gchar* gst_object_get_name (GstObject *object);
+
+#ifndef GST_DISABLE_DEPRECATED
void gst_object_set_name_prefix (GstObject *object, const gchar *name_prefix);
gchar* gst_object_get_name_prefix (GstObject *object);
+#endif
/* parentage routines */
gboolean gst_object_set_parent (GstObject *object, GstObject *parent);