API change: remove gst_object_destroy and #defines to it
authorBenjamin Otte <otte@gnome.org>
Tue, 15 Apr 2003 18:43:57 +0000 (18:43 +0000)
committerBenjamin Otte <otte@gnome.org>
Tue, 15 Apr 2003 18:43:57 +0000 (18:43 +0000)
Original commit message from CVS:
API change: remove gst_object_destroy and #defines to it

gst/gstbin.h
gst/gstelement.h
gst/gstobject.c
gst/gstobject.h
gst/gstpad.h
gst/gstpipeline.h
gst/gstscheduler.h

index 0288b71..87a9740 100644 (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);
index ccefba2..c51822f 100644 (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);
index ac3bab8..f5d0973 100644 (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)
 {
index f66994f..9e99346 100644 (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);
index df2b749..307597e 100644 (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);
index 31c6f9c..986cee1 100644 (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
index 792e9b2..7ab80ac 100644 (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);