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.
This commit is contained in:
Benjamin Otte 2003-05-18 02:42:19 +00:00
parent 012cb2cb6f
commit 42f3a63586
4 changed files with 7 additions and 4 deletions

View 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;

View 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);

View 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)

View 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);