diff options
author | Bastien Nocera <hadess@hadess.net> | 2008-03-17 14:28:21 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2008-03-17 14:28:21 +0000 |
commit | 5f2b9d82aa56153290f54600dae53e2b2f1638e9 (patch) | |
tree | f0ef95b1c55180f02d3377169fe3a39a7d225366 /plparse/totem-pl-parser-wm.c | |
parent | cbe3ea074d9cd55ffab38c2df069ff34e22eac83 (diff) | |
download | totem-pl-parser-5f2b9d82aa56153290f54600dae53e2b2f1638e9.tar.gz |
First pass at porting to GIO. Completely broken, please bear with me.
2008-03-17 Bastien Nocera <hadess@hadess.net>
* *: First pass at porting to GIO. Completely broken, please
bear with me.
svn path=/trunk/; revision=81
Diffstat (limited to 'plparse/totem-pl-parser-wm.c')
-rw-r--r-- | plparse/totem-pl-parser-wm.c | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/plparse/totem-pl-parser-wm.c b/plparse/totem-pl-parser-wm.c index 32e0bea..94dfdc5 100644 --- a/plparse/totem-pl-parser-wm.c +++ b/plparse/totem-pl-parser-wm.c @@ -87,9 +87,11 @@ totem_pl_parser_is_asf (const char *data, gsize len) static TotemPlParserResult totem_pl_parser_add_asf_reference_parser (TotemPlParser *parser, - const char *url, const char *base, + GFile *file, + GFile *base_file, gpointer data) { +#if 0 char *contents, **lines, *ref, *split_char; int size; @@ -123,15 +125,17 @@ totem_pl_parser_add_asf_reference_parser (TotemPlParser *parser, * supposed to be a fallback */ g_strfreev (lines); - +#endif return TOTEM_PL_PARSER_RESULT_SUCCESS; } static TotemPlParserResult totem_pl_parser_add_asf_parser (TotemPlParser *parser, - const char *url, const char *base, + GFile *file, + GFile *base_file, gpointer data) { +#if 0 TotemPlParserResult retval = TOTEM_PL_PARSER_RESULT_UNHANDLED; char *contents, *ref; int size; @@ -161,7 +165,9 @@ totem_pl_parser_add_asf_parser (TotemPlParser *parser, } g_free (contents); + return retval; +#endif } static gboolean @@ -264,7 +270,8 @@ parse_asx_entry (TotemPlParser *parser, const char *base, xml_node_t *parent) fullpath = totem_pl_parser_resolve_url (base, url); /* .asx files can contain references to other .asx files */ - retval = totem_pl_parser_parse_internal (parser, fullpath, NULL); + //FIXME + //retval = totem_pl_parser_parse_internal (parser, fullpath, NULL); if (retval != TOTEM_PL_PARSER_RESULT_SUCCESS) { totem_pl_parser_add_url (parser, TOTEM_PL_PARSER_FIELD_URL, fullpath, @@ -372,10 +379,11 @@ parse_asx_entries (TotemPlParser *parser, const char *url, const char *_base, xm TotemPlParserResult totem_pl_parser_add_asx (TotemPlParser *parser, - const char *url, - const char *base, + GFile *file, + GFile *base_file, gpointer data) { +#if 0 xml_node_t* doc; char *_base, *contents; int size; @@ -415,12 +423,16 @@ totem_pl_parser_add_asx (TotemPlParser *parser, xml_parser_free_tree (doc); return retval; +#endif } TotemPlParserResult -totem_pl_parser_add_asf (TotemPlParser *parser, const char *url, - const char *base, gpointer data) +totem_pl_parser_add_asf (TotemPlParser *parser, + GFile *file, + GFile *base_file, + gpointer data) { +#if 0 if (data == NULL) { totem_pl_parser_add_one_url (parser, url, NULL); return TOTEM_PL_PARSER_RESULT_SUCCESS; @@ -430,8 +442,8 @@ totem_pl_parser_add_asf (TotemPlParser *parser, const char *url, totem_pl_parser_add_one_url (parser, url, NULL); return TOTEM_PL_PARSER_RESULT_SUCCESS; } - - return totem_pl_parser_add_asf_parser (parser, url, base, data); +#endif + return totem_pl_parser_add_asf_parser (parser, file, base_file, data); } #endif /* !TOTEM_PL_PARSER_MINI */ |