[totem-pl-parser] plparse: Make split-off functions internal
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparse: Make split-off functions internal
- Date: Mon, 1 Jul 2013 13:40:37 +0000 (UTC)
commit 5785325b9ce3bf3143d67a3de6e11c94391c3f66
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 25 16:43:59 2013 +0200
plparse: Make split-off functions internal
So they can be used by the new quvi code.
https://bugzilla.gnome.org/show_bug.cgi?id=700768
plparse/totem-pl-parser-private.h | 7 +++++++
plparse/totem-pl-parser.c | 12 ++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/plparse/totem-pl-parser-private.h b/plparse/totem-pl-parser-private.h
index 24bae9e..495f9c4 100644
--- a/plparse/totem-pl-parser-private.h
+++ b/plparse/totem-pl-parser-private.h
@@ -152,10 +152,17 @@ void totem_pl_parser_add_one_file (TotemPlParser *parser,
void totem_pl_parser_add_uri (TotemPlParser *parser,
const char *first_property_name,
...);
+void totem_pl_parser_add_hash_table (TotemPlParser *parser,
+ GHashTable *metadata,
+ const char *uri,
+ gboolean is_playlist);
gboolean totem_pl_parser_ignore (TotemPlParser *parser,
const char *uri);
xml_node_t * totem_pl_parser_parse_xml_relaxed (char *contents,
gsize size);
+gboolean totem_pl_parser_fix_string (const char *name,
+ const char *value,
+ char **ret);
#endif /* !TOTEM_PL_PARSER_MINI */
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index 91eb2cf..a11390c 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -1318,10 +1318,10 @@ emit_entry_parsed_signal (EntryParsedSignalData *data)
return FALSE;
}
-static gboolean
-fix_string (const char *name,
- const char *value,
- char **ret)
+gboolean
+totem_pl_parser_fix_string (const char *name,
+ const char *value,
+ char **ret)
{
char *fixed = NULL;
@@ -1347,7 +1347,7 @@ fix_string (const char *name,
return TRUE;
}
-static void
+void
totem_pl_parser_add_hash_table (TotemPlParser *parser,
GHashTable *metadata,
const char *uri,
@@ -1452,7 +1452,7 @@ totem_pl_parser_add_uri_valist (TotemPlParser *parser,
if (string != NULL && string[0] != '\0') {
char *fixed = NULL;
- if (!fix_string (name, string, &fixed)) {
+ if (!totem_pl_parser_fix_string (name, string, &fixed)) {
g_value_unset (&value);
name = va_arg (var_args, char*);
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]