~ubuntu-branches/ubuntu/saucy/totem-pl-parser/saucy-proposed

« back to all changes in this revision

Viewing changes to plparse/totem-pl-parser.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-01-26 20:52:06 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126205206-mj1kg7e81c9f0zgv
Tags: 2.29.1-0ubuntu1
* New upstream release:
  - Add introspection support
  - Remove GTK+ dependency
  - Remove deprecated symbols
  - Add more metadata to XSPF playlist saving
  - Fix compilation on *BSDs
* debian/watch: update to take unstable version
* debian/control.in:
  - add Vcs-Bzr tag
  - add gobject-introspection, libgirepository1.0-dev and gir1.0-glib-2.0
    build-dep
  - remove libgtk2.0-dev build-dep
  - bump package revision as soname bumped
  - add gir1.0-totemplparser-1.0 package
* debian/rules:
  - bump makeshlibs args to new revision
  - call dh_girepository
* debian/libtotem-plparser17.install:
  - renamed from debian/libtotem-plparser12.install
* add debian/gir1.0-totemplparser-1.0.install package
* debian/libtotem-plparser-dev.install:
  - add gir file
* add debian/patches/01_fix_gir_file.patch:
  - fix gir and typelib file to have good release version
* add debian/patches/90autoreconf.patch to include previous patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <glib.h>
27
27
#include <gio/gio.h>
28
 
#include <gtk/gtk.h>
 
28
 
29
29
#include "totem-pl-parser-features.h"
30
30
#include "totem-pl-parser-builtins.h"
 
31
#include "totem-pl-playlist.h"
31
32
 
32
33
G_BEGIN_DECLS
33
34
 
56
57
        TOTEM_PL_PARSER_RESULT_CANCELLED
57
58
} TotemPlParserResult;
58
59
 
59
 
typedef struct TotemPlParser           TotemPlParser;
 
60
/**
 
61
 * TotemPlParser:
 
62
 *
 
63
 * All the fields in the #TotemPlParser structure are private and should never be accessed directly.
 
64
 **/
 
65
typedef struct _TotemPlParser          TotemPlParser;
60
66
typedef struct TotemPlParserClass      TotemPlParserClass;
61
67
typedef struct TotemPlParserPrivate    TotemPlParserPrivate;
62
68
 
63
 
/**
64
 
 * TotemPlParser:
65
 
 *
66
 
 * All the fields in the #TotemPlParser structure are private and should never be accessed directly.
67
 
 **/
68
 
struct TotemPlParser {
 
69
struct _TotemPlParser {
69
70
        GObject parent;
70
71
        TotemPlParserPrivate *priv;
71
72
};
314
315
 
315
316
GQuark totem_pl_parser_error_quark (void);
316
317
 
317
 
/**
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
325
 
 *
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
330
 
 * or otherwise.
331
 
 **/
332
 
typedef void (*TotemPlParserIterFunc) (GtkTreeModel *model, GtkTreeIter *iter,
333
 
                                       char **uri, char **title,
334
 
                                       gboolean *custom_title,
335
 
                                       gpointer user_data);
336
 
 
337
318
GType    totem_pl_parser_get_type (void);
338
319
 
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);
341
322
 
342
 
gboolean totem_pl_parser_write (TotemPlParser *parser, GtkTreeModel *model,
343
 
                                TotemPlParserIterFunc func,
344
 
                                const char *output, TotemPlParserType type,
345
 
                                gpointer user_data,
346
 
                                GError **error);
347
 
 
348
 
gboolean   totem_pl_parser_write_with_title (TotemPlParser *parser,
349
 
                                             GtkTreeModel *model,
350
 
                                             TotemPlParserIterFunc func,
351
 
                                             const char *output,
352
 
                                             const char *title,
353
 
                                             TotemPlParserType type,
354
 
                                             gpointer user_data,
355
 
                                             GError **error);
 
323
gboolean totem_pl_parser_save (TotemPlParser      *parser,
 
324
                               TotemPlPlaylist    *playlist,
 
325
                               GFile              *dest,
 
326
                               const gchar        *title,
 
327
                               TotemPlParserType   type,
 
328
                               GError            **error);
356
329
 
357
330
void       totem_pl_parser_add_ignored_scheme (TotemPlParser *parser,
358
331
                                               const char *scheme);