toc: don't export private functions
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 2 Apr 2012 22:23:46 +0000 (23:23 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 2 Apr 2012 22:23:46 +0000 (23:23 +0100)
gst/gst_private.h
gst/gstevent.c
gst/gstmessage.c
gst/gstquery.c
gst/gsttoc.c

index 394ff88..19f02d3 100644 (file)
@@ -117,12 +117,12 @@ void  _priv_gst_toc_initialize (void);
 
 /* TOC functions */
 /* These functions are used to parse TOC messages, events and queries */
-GstToc*        _gst_toc_from_structure (const GstStructure *toc);
-GstStructure*  _gst_toc_to_structure (const GstToc *toc);
-gboolean       _gst_toc_structure_get_updated (const GstStructure * toc);
-void           _gst_toc_structure_set_updated (GstStructure * toc, gboolean updated);
-gchar*         _gst_toc_structure_get_extend_uid (const GstStructure * toc);
-void           _gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid);
+GstToc*        __gst_toc_from_structure (const GstStructure *toc);
+GstStructure*  __gst_toc_to_structure (const GstToc *toc);
+gboolean       __gst_toc_structure_get_updated (const GstStructure * toc);
+void           __gst_toc_structure_set_updated (GstStructure * toc, gboolean updated);
+gchar*         __gst_toc_structure_get_extend_uid (const GstStructure * toc);
+void           __gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid);
 
 /* Private registry functions */
 gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry);
index e922360..e496f40 100644 (file)
@@ -1634,10 +1634,10 @@ gst_event_new_toc (GstToc * toc, gboolean updated)
 
   GST_CAT_INFO (GST_CAT_EVENT, "creating toc event");
 
-  toc_struct = _gst_toc_to_structure (toc);
+  toc_struct = __gst_toc_to_structure (toc);
 
   if (G_LIKELY (toc_struct != NULL)) {
-    _gst_toc_structure_set_updated (toc_struct, updated);
+    __gst_toc_structure_set_updated (toc_struct, updated);
     return gst_event_new_custom (GST_EVENT_TOC, toc_struct);
   } else
     return NULL;
@@ -1663,10 +1663,10 @@ gst_event_parse_toc (GstEvent * event, GstToc ** toc, gboolean * updated)
   g_return_if_fail (toc != NULL);
 
   structure = gst_event_get_structure (event);
-  *toc = _gst_toc_from_structure (structure);
+  *toc = __gst_toc_from_structure (structure);
 
   if (updated != NULL)
-    *updated = _gst_toc_structure_get_updated (structure);
+    *updated = __gst_toc_structure_get_updated (structure);
 }
 
 /**
index f99a3de..6b8b2c0 100644 (file)
@@ -2195,10 +2195,10 @@ gst_message_new_toc (GstObject * src, GstToc * toc, gboolean updated)
 
   g_return_val_if_fail (toc != NULL, NULL);
 
-  toc_struct = _gst_toc_to_structure (toc);
+  toc_struct = __gst_toc_to_structure (toc);
 
   if (G_LIKELY (toc_struct != NULL)) {
-    _gst_toc_structure_set_updated (toc_struct, updated);
+    __gst_toc_structure_set_updated (toc_struct, updated);
     return gst_message_new_custom (GST_MESSAGE_TOC, src, toc_struct);
   } else
     return NULL;
@@ -2225,8 +2225,9 @@ gst_message_parse_toc (GstMessage * message, GstToc ** toc, gboolean * updated)
   g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_TOC);
   g_return_if_fail (toc != NULL);
 
-  *toc = _gst_toc_from_structure (GST_MESSAGE_STRUCTURE (message));
+  *toc = __gst_toc_from_structure (GST_MESSAGE_STRUCTURE (message));
 
   if (updated != NULL)
-    *updated = _gst_toc_structure_get_updated (GST_MESSAGE_STRUCTURE (message));
+    *updated =
+        __gst_toc_structure_get_updated (GST_MESSAGE_STRUCTURE (message));
 }
index ec3f841..4aaa17e 100644 (file)
@@ -2362,7 +2362,7 @@ gst_query_set_toc (GstQuery * query, GstToc * toc, const gchar * extend_uid)
   g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_TOC);
   g_return_if_fail (toc != NULL);
 
-  structure = _gst_toc_to_structure (toc);
+  structure = __gst_toc_to_structure (toc);
 
   g_return_if_fail (structure != NULL);
 
@@ -2374,7 +2374,7 @@ gst_query_set_toc (GstQuery * query, GstToc * toc, const gchar * extend_uid)
   }
 
   if (extend_uid != NULL)
-    _gst_toc_structure_set_extend_uid (structure, extend_uid);
+    __gst_toc_structure_set_extend_uid (structure, extend_uid);
 
   gst_structure_set_parent_refcount (structure, &(query->mini_object.refcount));
   GST_QUERY_STRUCTURE (query) = structure;
@@ -2406,8 +2406,8 @@ gst_query_parse_toc (GstQuery * query, GstToc ** toc, gchar ** extend_uid)
   g_return_if_fail (structure != NULL);
 
   if (toc != NULL)
-    *toc = _gst_toc_from_structure (structure);
+    *toc = __gst_toc_from_structure (structure);
 
   if (extend_uid != NULL)
-    *extend_uid = _gst_toc_structure_get_extend_uid (structure);
+    *extend_uid = __gst_toc_structure_get_extend_uid (structure);
 }
index fa2ecde..7cd18dc 100644 (file)
@@ -480,7 +480,7 @@ gst_toc_entry_from_structure (const GstStructure * entry, guint level)
 }
 
 GstToc *
-_gst_toc_from_structure (const GstStructure * toc)
+__gst_toc_from_structure (const GstStructure * toc)
 {
   GstToc *ret;
   GstTocEntry *subentry;
@@ -645,7 +645,7 @@ gst_toc_entry_to_structure (const GstTocEntry * entry, guint level)
 }
 
 GstStructure *
-_gst_toc_to_structure (const GstToc * toc)
+__gst_toc_to_structure (const GstToc * toc)
 {
   GValue val = { 0 };
   GValue subentries_val = { 0 };
@@ -951,7 +951,7 @@ gst_toc_entry_get_start_stop (const GstTocEntry * entry, gint64 * start,
 }
 
 gboolean
-_gst_toc_structure_get_updated (const GstStructure * toc)
+__gst_toc_structure_get_updated (const GstStructure * toc)
 {
   const GValue *val;
 
@@ -967,7 +967,7 @@ _gst_toc_structure_get_updated (const GstStructure * toc)
 }
 
 void
-_gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
+__gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
 {
   GValue val = { 0 };
 
@@ -980,7 +980,7 @@ _gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
 }
 
 gchar *
-_gst_toc_structure_get_extend_uid (const GstStructure * toc)
+__gst_toc_structure_get_extend_uid (const GstStructure * toc)
 {
   const GValue *val;
 
@@ -996,7 +996,8 @@ _gst_toc_structure_get_extend_uid (const GstStructure * toc)
 }
 
 void
-_gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid)
+__gst_toc_structure_set_extend_uid (GstStructure * toc,
+    const gchar * extend_uid)
 {
   GValue val = { 0 };