remove _destroy functions from public headers and make them static.
authorBenjamin Otte <otte@gnome.org>
Sun, 18 May 2003 02:42:19 +0000 (02:42 +0000)
committerBenjamin Otte <otte@gnome.org>
Sun, 18 May 2003 02:42:19 +0000 (02:42 +0000)
Original commit message from CVS:
remove _destroy functions from public headers and make them static.

gst/gstcaps.c
gst/gstcaps.h
gst/gstprops.c
gst/gstprops.h

index 4d7ad8d..2a06b6c 100644 (file)
@@ -44,6 +44,9 @@ extern gboolean               __gst_props_parse_string                (gchar *r, gchar **end, gchar **next)
 /* transform functions */
 static void            gst_caps_transform_to_string            (const GValue *src_value, GValue *dest_value);
 
+static void            gst_caps_destroy                        (GstCaps *caps);
+
+
 static void
 gst_caps_transform_to_string (const GValue *src_value, GValue *dest_value)
 {
@@ -308,7 +311,7 @@ gst_caps_replace_sink (GstCaps **oldcaps, GstCaps *newcaps)
  * Frees the memory used by this caps structure and all
  * the chained caps and properties.
  */
-void
+static void
 gst_caps_destroy (GstCaps *caps)
 {
   GstCaps *next;
index ab38832..c642b6f 100644 (file)
@@ -131,7 +131,6 @@ void                gst_caps_replace_sink                   (GstCaps **oldcaps, GstCaps *newcaps);
 GstCaps*       gst_caps_unref                          (GstCaps *caps);
 GstCaps*       gst_caps_ref                            (GstCaps *caps);
 void           gst_caps_sink                           (GstCaps *caps);
-void           gst_caps_destroy                        (GstCaps *caps);
 
 /* write debug lines to the log */
 void           gst_caps_debug                          (GstCaps *caps, const gchar *label);
index d713c5c..a983ddc 100644 (file)
@@ -80,6 +80,8 @@ static GList*                 gst_props_list_copy                     (GList *propslist);
 
 static GstPropsEntry*  gst_props_alloc_entry                   (void);
 
+static void            gst_props_destroy                       (GstProps *props);
+
 static gchar *
 gst_props_entry_to_string (GstPropsEntry *entry)
 {
@@ -1342,7 +1344,7 @@ gst_props_sink (GstProps *props)
  * Destroy the property, freeing all the memory that
  * was allocated.
  */
-void
+static void
 gst_props_destroy (GstProps *props)
 {
   if (props == NULL)
index 1f3282c..3b39a70 100644 (file)
@@ -135,7 +135,6 @@ void                    gst_props_replace_sink          (GstProps **oldprops, Gs
 GstProps*              gst_props_unref                 (GstProps *props);
 GstProps*              gst_props_ref                   (GstProps *props);
 void                   gst_props_sink                  (GstProps *props);
-void                   gst_props_destroy               (GstProps *props);
 
 /* dump property debug info to the log */
 void                   gst_props_debug                 (GstProps *props);