API change: remove gst_object_destroy and #defines to it

Original commit message from CVS:
API change: remove gst_object_destroy and #defines to it
This commit is contained in:
Benjamin Otte 2003-04-15 18:43:57 +00:00
parent c016763611
commit 6cb527fed3
7 changed files with 0 additions and 31 deletions

View file

@ -104,7 +104,6 @@ struct _GstBinClass {
GType gst_bin_get_type (void);
GstElement* gst_bin_new (const gchar *name);
#define gst_bin_destroy(bin) gst_object_destroy(GST_OBJECT(bin))
/* add and remove elements from the bin */
void gst_bin_add (GstBin *bin, GstElement *element);

View file

@ -228,7 +228,6 @@ void gst_element_class_install_std_props (GstElementClass *kl
void gst_element_default_error (GObject *object, GstObject *orig, gchar *error);
GType gst_element_get_type (void);
#define gst_element_destroy(element) gst_object_destroy (GST_OBJECT (element))
void gst_element_set_loop_function (GstElement *element,
GstElementLoopFunction loop);

View file

@ -256,30 +256,6 @@ gst_object_replace (GstObject **oldobj, GstObject *newobj)
}
}
/**
* gst_object_destroy:
* @object: GstObject to destroy
*
* Destroy the object.
*
*/
void
gst_object_destroy (GstObject *object)
{
g_return_if_fail (object != NULL);
g_return_if_fail (GST_IS_OBJECT (object));
GST_DEBUG (GST_CAT_REFCOUNTING, "destroy %p '%s'", object, GST_OBJECT_NAME (object));
if (!GST_OBJECT_DESTROYED (object))
{
/* need to hold a reference count around all class method
* invocations.
*/
g_object_run_dispose (G_OBJECT (object));
}
}
static void
gst_object_dispose (GObject *object)
{

View file

@ -147,7 +147,6 @@ void gst_object_restore_thyself (GstObject *object, xmlNodePtr self);
GstObject * gst_object_ref (GstObject *object);
void gst_object_unref (GstObject *object);
void gst_object_sink (GstObject *object);
void gst_object_destroy (GstObject *object);
/* replace object pointer */
void gst_object_replace (GstObject **oldobj, GstObject *newobj);

View file

@ -383,7 +383,6 @@ GType gst_ghost_pad_get_type (void);
/* creating pads */
GstPad* gst_pad_new (const gchar *name, GstPadDirection direction);
#define gst_pad_destroy(pad) gst_object_destroy (GST_OBJECT (pad))
GstPad* gst_pad_new_from_template (GstPadTemplate *templ, const gchar *name);
GstPad* gst_pad_custom_new (GType type, const gchar *name, GstPadDirection direction);
GstPad* gst_pad_custom_new_from_template (GType type, GstPadTemplate *templ, const gchar *name);

View file

@ -54,7 +54,6 @@ struct _GstPipelineClass {
GType gst_pipeline_get_type (void);
GstElement* gst_pipeline_new (const gchar *name);
#define gst_pipeline_destroy(pipeline) gst_object_destroy(GST_OBJECT(pipeline))
G_END_DECLS

View file

@ -110,8 +110,6 @@ struct _GstSchedulerClass {
GType gst_scheduler_get_type (void);
#define gst_scheduler_destroy(sched) gst_object_destroy(GST_OBJECT(sched))
void gst_scheduler_setup (GstScheduler *sched);
void gst_scheduler_reset (GstScheduler *sched);