56
57
TOTEM_PL_PARSER_RESULT_CANCELLED
57
58
} TotemPlParserResult;
59
typedef struct TotemPlParser TotemPlParser;
63
* All the fields in the #TotemPlParser structure are private and should never be accessed directly.
65
typedef struct _TotemPlParser TotemPlParser;
60
66
typedef struct TotemPlParserClass TotemPlParserClass;
61
67
typedef struct TotemPlParserPrivate TotemPlParserPrivate;
66
* All the fields in the #TotemPlParser structure are private and should never be accessed directly.
68
struct TotemPlParser {
69
struct _TotemPlParser {
70
71
TotemPlParserPrivate *priv;
315
316
GQuark totem_pl_parser_error_quark (void);
318
* TotemPlParserIterFunc:
319
* @model: a #GtkTreeModel containing the playlist entries
320
* @iter: a #GtkTreeIter pointing to the current row
321
* @uri: return location for the entry's URI, or %NULL
322
* @title: return location for the entry's title, or %NULL
323
* @custom_title: return location for a boolean which, if %TRUE, indicates that the entry's @title is custom; or %NULL
324
* @user_data: user data to pass to the function
326
* Functions such as totem_pl_parser_write() accept pointers to TotemPlParserIterFunc()s
327
* as callbacks to call for each entry in the playlist. These functions
328
* are specific to each use of the playlist API, and should set the entry's
329
* @uri, @title and @custom_title return values, getting the data from @model
332
typedef void (*TotemPlParserIterFunc) (GtkTreeModel *model, GtkTreeIter *iter,
333
char **uri, char **title,
334
gboolean *custom_title,
337
318
GType totem_pl_parser_get_type (void);
339
320
gint64 totem_pl_parser_parse_duration (const char *duration, gboolean debug);
340
321
guint64 totem_pl_parser_parse_date (const char *date_str, gboolean debug);
342
gboolean totem_pl_parser_write (TotemPlParser *parser, GtkTreeModel *model,
343
TotemPlParserIterFunc func,
344
const char *output, TotemPlParserType type,
348
gboolean totem_pl_parser_write_with_title (TotemPlParser *parser,
350
TotemPlParserIterFunc func,
353
TotemPlParserType type,
323
gboolean totem_pl_parser_save (TotemPlParser *parser,
324
TotemPlPlaylist *playlist,
327
TotemPlParserType type,
357
330
void totem_pl_parser_add_ignored_scheme (TotemPlParser *parser,
358
331
const char *scheme);