gst: don't export private TOC functions

This commit is contained in:
Tim-Philipp Müller 2012-04-07 16:04:14 +01:00
parent f251e3073b
commit 94696f4bd9
6 changed files with 28 additions and 27 deletions

View file

@ -767,7 +767,7 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
gst_buffer_list_iterator_get_type (); gst_buffer_list_iterator_get_type ();
_gst_message_initialize (); _gst_message_initialize ();
_gst_tag_initialize (); _gst_tag_initialize ();
_gst_toc_initialize (); priv_gst_toc_initialize ();
gst_parse_context_get_type (); gst_parse_context_get_type ();
_gst_plugin_initialize (); _gst_plugin_initialize ();

View file

@ -112,16 +112,16 @@ void _gst_query_initialize (void);
void _gst_tag_initialize (void); void _gst_tag_initialize (void);
void _gst_value_initialize (void); void _gst_value_initialize (void);
void _gst_toc_initialize (void); void priv_gst_toc_initialize (void);
/* TOC functions */ /* TOC functions */
/* These functions are used to parse TOC messages, events and queries */ /* These functions are used to parse TOC messages, events and queries */
GstToc* _gst_toc_from_structure (const GstStructure *toc); GstToc* priv_gst_toc_from_structure (const GstStructure *toc);
GstStructure* _gst_toc_to_structure (const GstToc *toc); GstStructure* priv_gst_toc_to_structure (const GstToc *toc);
gboolean _gst_toc_structure_get_updated (const GstStructure * toc); gboolean priv_gst_toc_structure_get_updated (const GstStructure * toc);
void _gst_toc_structure_set_updated (GstStructure * toc, gboolean updated); void priv_gst_toc_structure_set_updated (GstStructure * toc, gboolean updated);
gchar* _gst_toc_structure_get_extend_uid (const GstStructure * toc); gchar* priv_gst_toc_structure_get_extend_uid (const GstStructure * toc);
void _gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid); void priv_gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid);
/* Private registry functions */ /* Private registry functions */
gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry); gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry);

View file

@ -1327,10 +1327,10 @@ gst_event_new_toc (GstToc * toc, gboolean updated)
GST_CAT_INFO (GST_CAT_EVENT, "creating toc event"); GST_CAT_INFO (GST_CAT_EVENT, "creating toc event");
toc_struct = _gst_toc_to_structure (toc); toc_struct = priv_gst_toc_to_structure (toc);
if (G_LIKELY (toc_struct != NULL)) { if (G_LIKELY (toc_struct != NULL)) {
_gst_toc_structure_set_updated (toc_struct, updated); priv_gst_toc_structure_set_updated (toc_struct, updated);
return gst_event_new_custom (GST_EVENT_TOC, toc_struct); return gst_event_new_custom (GST_EVENT_TOC, toc_struct);
} else } else
return NULL; return NULL;
@ -1356,10 +1356,10 @@ gst_event_parse_toc (GstEvent * event, GstToc ** toc, gboolean * updated)
g_return_if_fail (toc != NULL); g_return_if_fail (toc != NULL);
structure = gst_event_get_structure (event); structure = gst_event_get_structure (event);
*toc = _gst_toc_from_structure (structure); *toc = priv_gst_toc_from_structure (structure);
if (updated != NULL) if (updated != NULL)
*updated = _gst_toc_structure_get_updated (structure); *updated = priv_gst_toc_structure_get_updated (structure);
} }
/** /**

View file

@ -2178,10 +2178,10 @@ gst_message_new_toc (GstObject * src, GstToc * toc, gboolean updated)
g_return_val_if_fail (toc != NULL, NULL); g_return_val_if_fail (toc != NULL, NULL);
toc_struct = _gst_toc_to_structure (toc); toc_struct = priv_gst_toc_to_structure (toc);
if (G_LIKELY (toc_struct != NULL)) { if (G_LIKELY (toc_struct != NULL)) {
_gst_toc_structure_set_updated (toc_struct, updated); priv_gst_toc_structure_set_updated (toc_struct, updated);
return gst_message_new_custom (GST_MESSAGE_TOC, src, toc_struct); return gst_message_new_custom (GST_MESSAGE_TOC, src, toc_struct);
} else } else
return NULL; return NULL;
@ -2208,8 +2208,8 @@ 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 (GST_MESSAGE_TYPE (message) == GST_MESSAGE_TOC);
g_return_if_fail (toc != NULL); g_return_if_fail (toc != NULL);
*toc = _gst_toc_from_structure (message->structure); *toc = priv_gst_toc_from_structure (message->structure);
if (updated != NULL) if (updated != NULL)
*updated = _gst_toc_structure_get_updated (message->structure); *updated = priv_gst_toc_structure_get_updated (message->structure);
} }

View file

@ -1538,7 +1538,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 (GST_QUERY_TYPE (query) == GST_QUERY_TOC);
g_return_if_fail (toc != NULL); g_return_if_fail (toc != NULL);
structure = _gst_toc_to_structure (toc); structure = priv_gst_toc_to_structure (toc);
g_return_if_fail (structure != NULL); g_return_if_fail (structure != NULL);
@ -1547,7 +1547,7 @@ gst_query_set_toc (GstQuery * query, GstToc * toc, const gchar * extend_uid)
gst_structure_free (query->structure); gst_structure_free (query->structure);
if (extend_uid != NULL) if (extend_uid != NULL)
_gst_toc_structure_set_extend_uid (structure, extend_uid); priv_gst_toc_structure_set_extend_uid (structure, extend_uid);
query->structure = structure; query->structure = structure;
gst_structure_set_parent_refcount (query->structure, gst_structure_set_parent_refcount (query->structure,
@ -1582,8 +1582,8 @@ gst_query_parse_toc (GstQuery * query, GstToc ** toc, gchar ** extend_uid)
g_return_if_fail (structure != NULL); g_return_if_fail (structure != NULL);
if (toc != NULL) if (toc != NULL)
*toc = _gst_toc_from_structure (structure); *toc = priv_gst_toc_from_structure (structure);
if (extend_uid != NULL) if (extend_uid != NULL)
*extend_uid = _gst_toc_structure_get_extend_uid (structure); *extend_uid = priv_gst_toc_structure_get_extend_uid (structure);
} }

View file

@ -114,7 +114,7 @@ enum
static GQuark gst_toc_fields[GST_TOC_LAST] = { 0 }; static GQuark gst_toc_fields[GST_TOC_LAST] = { 0 };
void void
_gst_toc_initialize (void) priv_gst_toc_initialize (void)
{ {
static gboolean inited = FALSE; static gboolean inited = FALSE;
@ -480,7 +480,7 @@ gst_toc_entry_from_structure (const GstStructure * entry, guint level)
} }
GstToc * GstToc *
_gst_toc_from_structure (const GstStructure * toc) priv_gst_toc_from_structure (const GstStructure * toc)
{ {
GstToc *ret; GstToc *ret;
GstTocEntry *subentry; GstTocEntry *subentry;
@ -645,7 +645,7 @@ gst_toc_entry_to_structure (const GstTocEntry * entry, guint level)
} }
GstStructure * GstStructure *
_gst_toc_to_structure (const GstToc * toc) priv_gst_toc_to_structure (const GstToc * toc)
{ {
GValue val = { 0 }; GValue val = { 0 };
GValue subentries_val = { 0 }; GValue subentries_val = { 0 };
@ -951,7 +951,7 @@ gst_toc_entry_get_start_stop (const GstTocEntry * entry, gint64 * start,
} }
gboolean gboolean
_gst_toc_structure_get_updated (const GstStructure * toc) priv_gst_toc_structure_get_updated (const GstStructure * toc)
{ {
const GValue *val; const GValue *val;
@ -967,7 +967,7 @@ _gst_toc_structure_get_updated (const GstStructure * toc)
} }
void void
_gst_toc_structure_set_updated (GstStructure * toc, gboolean updated) priv_gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
{ {
GValue val = { 0 }; GValue val = { 0 };
@ -980,7 +980,7 @@ _gst_toc_structure_set_updated (GstStructure * toc, gboolean updated)
} }
gchar * gchar *
_gst_toc_structure_get_extend_uid (const GstStructure * toc) priv_gst_toc_structure_get_extend_uid (const GstStructure * toc)
{ {
const GValue *val; const GValue *val;
@ -996,7 +996,8 @@ _gst_toc_structure_get_extend_uid (const GstStructure * toc)
} }
void void
_gst_toc_structure_set_extend_uid (GstStructure * toc, const gchar * extend_uid) priv_gst_toc_structure_set_extend_uid (GstStructure * toc,
const gchar * extend_uid)
{ {
GValue val = { 0 }; GValue val = { 0 };