2000-12-28 22:12:02 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
* 2000 Wim Taymans <wtay@chello.be>
|
2005-03-07 18:27:42 +00:00
|
|
|
* 2005 Wim Taymans <wim@fluendo.com>
|
2000-12-28 22:12:02 +00:00
|
|
|
*
|
|
|
|
* gstobject.h: Header for base GstObject
|
2000-01-30 09:03:00 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2000-01-30 09:03:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_OBJECT_H__
|
|
|
|
#define __GST_OBJECT_H__
|
|
|
|
|
2001-10-17 10:21:27 +00:00
|
|
|
#include <gst/gstconfig.h>
|
2001-06-25 01:20:11 +00:00
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
#include <glib-object.h>
|
2001-10-17 10:21:27 +00:00
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2005-10-15 16:33:09 +00:00
|
|
|
#define GST_TYPE_OBJECT (gst_object_get_type ())
|
2003-12-13 16:58:29 +00:00
|
|
|
#define GST_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_OBJECT))
|
|
|
|
#define GST_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_OBJECT))
|
|
|
|
#define GST_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_OBJECT, GstObjectClass))
|
|
|
|
#define GST_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_OBJECT, GstObject))
|
|
|
|
#define GST_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_OBJECT, GstObjectClass))
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_OBJECT_CAST(obj) ((GstObject*)(obj))
|
|
|
|
#define GST_OBJECT_CLASS_CAST(klass) ((GstObjectClass*)(klass))
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
|
|
|
* GstObjectFlags:
|
2016-05-04 11:53:56 +00:00
|
|
|
* @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)
|
2005-09-23 14:31:21 +00:00
|
|
|
* @GST_OBJECT_FLAG_LAST: subclasses can add additional flags starting from this flag
|
|
|
|
*
|
2005-09-27 20:40:35 +00:00
|
|
|
* The standard flags that an gstobject may have.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2001-05-25 21:00:07 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
2016-05-04 11:53:56 +00:00
|
|
|
GST_OBJECT_FLAG_MAY_BE_LEAKED = (1 << 0),
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
/* padding */
|
|
|
|
GST_OBJECT_FLAG_LAST = (1<<4)
|
2004-03-15 14:43:35 +00:00
|
|
|
} GstObjectFlags;
|
2000-12-15 01:57:34 +00:00
|
|
|
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* GST_OBJECT_REFCOUNT:
|
2005-11-04 20:12:01 +00:00
|
|
|
* @obj: a #GstObject
|
2005-10-08 14:48:17 +00:00
|
|
|
*
|
2005-10-15 15:30:24 +00:00
|
|
|
* Get access to the reference count field of the object.
|
2005-10-08 14:48:17 +00:00
|
|
|
*/
|
2005-09-20 11:09:50 +00:00
|
|
|
#define GST_OBJECT_REFCOUNT(obj) (((GObject*)(obj))->ref_count)
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* GST_OBJECT_REFCOUNT_VALUE:
|
2005-11-04 20:12:01 +00:00
|
|
|
* @obj: a #GstObject
|
2005-10-08 14:48:17 +00:00
|
|
|
*
|
2005-10-15 15:30:24 +00:00
|
|
|
* Get the reference count value of the object.
|
2005-10-08 14:48:17 +00:00
|
|
|
*/
|
2006-05-15 08:16:09 +00:00
|
|
|
#define GST_OBJECT_REFCOUNT_VALUE(obj) g_atomic_int_get ((gint *) &GST_OBJECT_REFCOUNT(obj))
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/* we do a GST_OBJECT_CAST to avoid type checking, better call these
|
|
|
|
* function with a valid object! */
|
2005-10-15 15:30:24 +00:00
|
|
|
|
2005-11-09 12:36:17 +00:00
|
|
|
/**
|
2005-11-21 16:34:26 +00:00
|
|
|
* GST_OBJECT_GET_LOCK:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
2005-11-09 12:36:17 +00:00
|
|
|
*
|
|
|
|
* Acquire a reference to the mutex of this object.
|
|
|
|
*/
|
2012-01-19 08:27:04 +00:00
|
|
|
#define GST_OBJECT_GET_LOCK(obj) (&GST_OBJECT_CAST(obj)->lock)
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
2005-11-21 16:34:26 +00:00
|
|
|
* GST_OBJECT_LOCK:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject to lock
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro will obtain a lock on the object, making serialization possible.
|
2005-11-09 12:36:17 +00:00
|
|
|
* It blocks until the lock can be obtained.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2005-11-21 16:34:26 +00:00
|
|
|
#define GST_OBJECT_LOCK(obj) g_mutex_lock(GST_OBJECT_GET_LOCK(obj))
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
2005-11-23 14:52:31 +00:00
|
|
|
* GST_OBJECT_TRYLOCK:
|
2009-11-25 14:44:05 +00:00
|
|
|
* @obj: a #GstObject.
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro will try to obtain a lock on the object, but will return with
|
2014-05-29 21:54:34 +00:00
|
|
|
* %FALSE if it can't get it immediately.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2005-11-21 16:34:26 +00:00
|
|
|
#define GST_OBJECT_TRYLOCK(obj) g_mutex_trylock(GST_OBJECT_GET_LOCK(obj))
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
2005-11-21 16:34:26 +00:00
|
|
|
* GST_OBJECT_UNLOCK:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject to unlock.
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro releases a lock on the object.
|
|
|
|
*/
|
2005-11-21 16:34:26 +00:00
|
|
|
#define GST_OBJECT_UNLOCK(obj) g_mutex_unlock(GST_OBJECT_GET_LOCK(obj))
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2005-09-23 14:31:21 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_OBJECT_NAME:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
2016-03-10 09:35:40 +00:00
|
|
|
* Get the name of this object. This is not thread-safe by default
|
|
|
|
* (i.e. you will have to make sure the object lock is taken yourself).
|
|
|
|
* If in doubt use gst_object_get_name() instead.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_OBJECT_NAME(obj) (GST_OBJECT_CAST(obj)->name)
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
|
|
|
* GST_OBJECT_PARENT:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
2016-03-10 09:35:40 +00:00
|
|
|
* Get the parent of this object. This is not thread-safe by default
|
|
|
|
* (i.e. you will have to make sure the object lock is taken yourself).
|
|
|
|
* If in doubt use gst_object_get_parent() instead.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2005-03-07 18:27:42 +00:00
|
|
|
#define GST_OBJECT_PARENT(obj) (GST_OBJECT_CAST(obj)->parent)
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-09-23 14:31:21 +00:00
|
|
|
|
|
|
|
/**
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* GST_OBJECT_FLAGS:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro returns the entire set of flags for the object.
|
|
|
|
*/
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
#define GST_OBJECT_FLAGS(obj) (GST_OBJECT_CAST (obj)->flags)
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* GST_OBJECT_FLAG_IS_SET:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* @flag: Flag to check for
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro checks to see if the given flag is set.
|
|
|
|
*/
|
2005-11-03 14:22:44 +00:00
|
|
|
#define GST_OBJECT_FLAG_IS_SET(obj,flag) ((GST_OBJECT_FLAGS (obj) & (flag)) == (flag))
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* GST_OBJECT_FLAG_SET:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* @flag: Flag to set
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
|
|
|
* This macro sets the given bits.
|
|
|
|
*/
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
#define GST_OBJECT_FLAG_SET(obj,flag) (GST_OBJECT_FLAGS (obj) |= (flag))
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* GST_OBJECT_FLAG_UNSET:
|
2005-11-09 17:32:10 +00:00
|
|
|
* @obj: a #GstObject
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
* @flag: Flag to set
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
2013-12-07 14:38:19 +00:00
|
|
|
* This macro unsets the given bits.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
renamed GST_FLAGS macros to GST_OBJECT_FLAGS moved bitshift from macro to enum definition
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* docs/gst/gstreamer-sections.txt:
* gst/base/gstbasesink.c: (gst_base_sink_init):
* gst/base/gstbasesrc.c: (gst_base_src_init),
(gst_base_src_get_range), (gst_base_src_check_get_range),
(gst_base_src_start), (gst_base_src_stop):
* gst/base/gstbasesrc.h:
* gst/elements/gstfakesrc.c: (gst_fake_src_set_property):
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_remove_func),
(bin_element_is_sink), (reset_degree), (gst_bin_element_set_state),
(bin_bus_handler):
* gst/gstbin.h:
* gst/gstbuffer.h:
* gst/gstbus.c: (gst_bus_post), (gst_bus_set_flushing):
* gst/gstbus.h:
* gst/gstelement.c: (gst_element_is_locked_state),
(gst_element_set_locked_state), (gst_element_commit_state),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstindex.c: (gst_index_init):
* gst/gstindex.h:
* gst/gstminiobject.h:
* gst/gstobject.c: (gst_object_init), (gst_object_sink),
(gst_object_set_parent):
* gst/gstobject.h:
* gst/gstpad.c: (gst_pad_set_blocked_async), (gst_pad_is_blocked),
(gst_pad_get_caps_unlocked), (gst_pad_set_caps):
* gst/gstpad.h:
* gst/gstpadtemplate.h:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func),
(gst_pipeline_use_clock), (gst_pipeline_auto_clock):
* gst/gstpipeline.h:
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(gst_file_index_commit):
* testsuite/bytestream/filepadsink.c: (gst_fp_sink_init):
* testsuite/pad/link.c: (gst_test_src_init),
(gst_test_filter_init), (gst_test_sink_init):
* testsuite/states/locked.c: (main):
renamed GST_FLAGS macros to GST_OBJECT_FLAGS
moved bitshift from macro to enum definition
2005-10-12 14:28:39 +00:00
|
|
|
#define GST_OBJECT_FLAG_UNSET(obj,flag) (GST_OBJECT_FLAGS (obj) &= ~(flag))
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
typedef struct _GstObject GstObject;
|
|
|
|
typedef struct _GstObjectClass GstObjectClass;
|
|
|
|
|
2005-09-23 14:31:21 +00:00
|
|
|
/**
|
|
|
|
* GstObject:
|
2005-09-27 20:40:35 +00:00
|
|
|
* @lock: object LOCK
|
2005-09-23 14:31:21 +00:00
|
|
|
* @name: The name of the object
|
2005-09-27 20:40:35 +00:00
|
|
|
* @parent: this object's parent, weak ref
|
2010-12-07 14:19:34 +00:00
|
|
|
* @flags: flags for this object
|
2005-09-23 14:31:21 +00:00
|
|
|
*
|
2005-09-27 20:40:35 +00:00
|
|
|
* GStreamer base object class.
|
2005-09-23 14:31:21 +00:00
|
|
|
*/
|
2005-03-07 18:27:42 +00:00
|
|
|
struct _GstObject {
|
2010-12-07 10:58:34 +00:00
|
|
|
GInitiallyUnowned object;
|
2003-10-07 21:58:42 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/*< public >*/ /* with LOCK */
|
2012-01-19 08:27:04 +00:00
|
|
|
GMutex lock; /* object LOCK */
|
2005-03-07 18:27:42 +00:00
|
|
|
gchar *name; /* object name */
|
|
|
|
GstObject *parent; /* this object's parent, weak ref */
|
|
|
|
guint32 flags;
|
|
|
|
|
|
|
|
/*< private >*/
|
2011-12-20 21:36:18 +00:00
|
|
|
GList *control_bindings; /* List of GstControlBinding */
|
2011-11-11 15:52:41 +00:00
|
|
|
guint64 control_rate;
|
|
|
|
guint64 last_sync;
|
2011-11-10 17:37:28 +00:00
|
|
|
|
2005-11-29 18:57:59 +00:00
|
|
|
gpointer _gst_reserved;
|
2000-01-30 09:03:00 +00:00
|
|
|
};
|
|
|
|
|
2009-11-27 12:16:54 +00:00
|
|
|
/**
|
2005-11-14 15:15:43 +00:00
|
|
|
* GstObjectClass:
|
2009-11-27 12:16:54 +00:00
|
|
|
* @parent_class: parent
|
|
|
|
* @path_string_separator: separator used by gst_object_get_path_string()
|
|
|
|
* @deep_notify: default signal handler
|
|
|
|
*
|
|
|
|
* GStreamer base object class.
|
2005-11-14 15:15:43 +00:00
|
|
|
*/
|
2004-03-15 14:43:35 +00:00
|
|
|
struct _GstObjectClass {
|
2010-12-07 10:58:34 +00:00
|
|
|
GInitiallyUnownedClass parent_class;
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2010-03-03 10:45:38 +00:00
|
|
|
const gchar *path_string_separator;
|
2005-03-07 18:27:42 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
/* signals */
|
2006-10-17 11:57:32 +00:00
|
|
|
void (*deep_notify) (GstObject * object, GstObject * orig, GParamSpec * pspec);
|
2000-01-30 09:03:00 +00:00
|
|
|
|
2005-11-14 15:15:43 +00:00
|
|
|
/*< public >*/
|
|
|
|
/* virtual methods for subclasses */
|
2002-12-19 21:31:03 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/*< private >*/
|
2003-12-09 02:39:31 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
2000-01-30 09:03:00 +00:00
|
|
|
};
|
|
|
|
|
2001-06-25 01:20:11 +00:00
|
|
|
/* normal GObject stuff */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2004-03-15 14:43:35 +00:00
|
|
|
GType gst_object_get_type (void);
|
2001-01-29 00:06:02 +00:00
|
|
|
|
|
|
|
/* name routines */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2005-03-07 18:27:42 +00:00
|
|
|
gboolean gst_object_set_name (GstObject *object, const gchar *name);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
gchar* gst_object_get_name (GstObject *object);
|
2010-06-22 17:53:15 +00:00
|
|
|
|
2000-01-30 09:03:00 +00:00
|
|
|
/* parentage routines */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2005-03-07 18:27:42 +00:00
|
|
|
gboolean gst_object_set_parent (GstObject *object, GstObject *parent);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2004-03-15 14:43:35 +00:00
|
|
|
GstObject* gst_object_get_parent (GstObject *object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2004-03-15 14:43:35 +00:00
|
|
|
void gst_object_unparent (GstObject *object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2015-05-15 06:05:50 +00:00
|
|
|
gboolean gst_object_has_as_parent (GstObject *object, GstObject *parent);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2015-05-15 11:43:12 +00:00
|
|
|
gboolean gst_object_has_as_ancestor (GstObject *object, GstObject *ancestor);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2017-05-10 12:07:31 +00:00
|
|
|
GST_DEPRECATED_FOR(gst_object_has_as_ancestor)
|
2005-09-27 09:57:20 +00:00
|
|
|
gboolean gst_object_has_ancestor (GstObject *object, GstObject *ancestor);
|
2001-01-29 00:06:02 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2010-12-07 10:58:34 +00:00
|
|
|
void gst_object_default_deep_notify (GObject *object, GstObject *orig,
|
Bump version number, we're now 0.9.0
Original commit message from CVS:
* configure.ac:
* gst/gst_private.h:
* gst/gstbin.c: (gst_bin_add_func), (gst_bin_add),
(gst_bin_remove_func), (gst_bin_remove),
(gst_bin_get_by_name_recurse_up):
* gst/gstclock.c: (gst_clock_id_ref), (gst_clock_id_unref),
(gst_clock_id_compare_func), (gst_clock_id_wait),
(gst_clock_id_wait_async), (gst_clock_init),
(gst_clock_adjust_unlocked), (gst_clock_get_time):
* gst/gstelement.h:
* gst/gstinfo.c: (_gst_debug_init):
* gst/gstobject.h:
* gst/gstpad.c: (_gst_pad_default_fixate_foreach),
(gst_pad_collectv), (gst_pad_collect_valist), (gst_pad_query):
* gst/gstpad.h:
Bump version number, we're now 0.9.0
Add future debugging category.
Fix NULL _unref() in _get_by_name_recurse_up
Rearrange gstpad.h.
Update some docs.
2005-03-09 11:08:18 +00:00
|
|
|
GParamSpec *pspec, gchar **excluded_props);
|
2002-11-02 13:19:30 +00:00
|
|
|
|
2005-03-07 18:27:42 +00:00
|
|
|
/* refcounting + life cycle */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2005-06-28 09:17:14 +00:00
|
|
|
gpointer gst_object_ref (gpointer object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2005-06-28 09:17:14 +00:00
|
|
|
void gst_object_unref (gpointer object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-02-08 16:31:15 +00:00
|
|
|
GST_API
|
2018-11-05 13:07:59 +00:00
|
|
|
void gst_clear_object (GstObject **object_ptr);
|
2018-02-08 16:31:15 +00:00
|
|
|
#define gst_clear_object(object_ptr) g_clear_pointer ((object_ptr), gst_object_unref)
|
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2010-12-07 10:58:34 +00:00
|
|
|
gpointer gst_object_ref_sink (gpointer object);
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/* replace object pointer */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2011-08-22 10:49:04 +00:00
|
|
|
gboolean gst_object_replace (GstObject **oldobj, GstObject *newobj);
|
2005-03-07 18:27:42 +00:00
|
|
|
|
|
|
|
/* printing out the 'path' of the object */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2005-03-07 18:27:42 +00:00
|
|
|
gchar * gst_object_get_path_string (GstObject *object);
|
|
|
|
|
|
|
|
/* misc utils */
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2004-03-15 14:43:35 +00:00
|
|
|
gboolean gst_object_check_uniqueness (GList *list, const gchar *name);
|
2001-05-25 21:00:07 +00:00
|
|
|
|
2011-11-04 10:34:11 +00:00
|
|
|
/* controller functions */
|
2011-12-20 21:36:18 +00:00
|
|
|
#include <gst/gstcontrolbinding.h>
|
2011-11-04 10:34:11 +00:00
|
|
|
#include <gst/gstcontrolsource.h>
|
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
GstClockTime gst_object_suggest_next_sync (GstObject * object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
gboolean gst_object_sync_values (GstObject * object, GstClockTime timestamp);
|
2011-11-04 10:34:11 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2011-12-20 21:36:18 +00:00
|
|
|
gboolean gst_object_has_active_control_bindings (GstObject *object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2011-12-20 21:36:18 +00:00
|
|
|
void gst_object_set_control_bindings_disabled (GstObject *object, gboolean disabled);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
void gst_object_set_control_binding_disabled (GstObject *object,
|
|
|
|
const gchar * property_name,
|
|
|
|
gboolean disabled);
|
2011-11-04 10:34:11 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
gboolean gst_object_add_control_binding (GstObject * object, GstControlBinding * binding);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2011-12-20 21:36:18 +00:00
|
|
|
GstControlBinding *
|
2012-01-20 13:42:31 +00:00
|
|
|
gst_object_get_control_binding (GstObject *object, const gchar * property_name);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
gboolean gst_object_remove_control_binding (GstObject * object, GstControlBinding * binding);
|
2011-12-20 21:36:18 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
GValue * gst_object_get_value (GstObject * object, const gchar * property_name,
|
|
|
|
GstClockTime timestamp);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
gboolean gst_object_get_value_array (GstObject * object, const gchar * property_name,
|
2012-04-25 07:47:10 +00:00
|
|
|
GstClockTime timestamp, GstClockTime interval,
|
|
|
|
guint n_values, gpointer values);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-04-25 07:47:10 +00:00
|
|
|
gboolean gst_object_get_g_value_array (GstObject * object, const gchar * property_name,
|
2012-01-20 13:42:31 +00:00
|
|
|
GstClockTime timestamp, GstClockTime interval,
|
|
|
|
guint n_values, GValue *values);
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
GstClockTime gst_object_get_control_rate (GstObject * object);
|
2017-05-10 09:56:16 +00:00
|
|
|
|
2018-03-12 23:03:26 +00:00
|
|
|
GST_API
|
2012-01-20 13:42:31 +00:00
|
|
|
void gst_object_set_control_rate (GstObject * object, GstClockTime control_rate);
|
2011-11-04 10:34:11 +00:00
|
|
|
|
2015-11-10 17:38:59 +00:00
|
|
|
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstObject, gst_object_unref)
|
|
|
|
#endif
|
|
|
|
|
2002-07-08 19:07:30 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2001-01-29 00:06:02 +00:00
|
|
|
#endif /* __GST_OBJECT_H__ */
|
2004-03-15 14:43:35 +00:00
|
|
|
|