From: Benjamin Otte Date: Sun, 18 May 2003 02:42:19 +0000 (+0000) Subject: remove _destroy functions from public headers and make them static. X-Git-Tag: BRANCH-ERROR-ROOT~214 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42f3a63586fb580722ecfc6fd161f6060cc90ba4;p=platform%2Fupstream%2Fgstreamer.git remove _destroy functions from public headers and make them static. Original commit message from CVS: remove _destroy functions from public headers and make them static. --- diff --git a/gst/gstcaps.c b/gst/gstcaps.c index 4d7ad8d..2a06b6c 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -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; diff --git a/gst/gstcaps.h b/gst/gstcaps.h index ab38832..c642b6f 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -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); diff --git a/gst/gstprops.c b/gst/gstprops.c index d713c5c..a983ddc 100644 --- a/gst/gstprops.c +++ b/gst/gstprops.c @@ -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) diff --git a/gst/gstprops.h b/gst/gstprops.h index 1f3282c..3b39a70 100644 --- a/gst/gstprops.h +++ b/gst/gstprops.h @@ -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);