~ubuntu-branches/debian/experimental/brasero/experimental

« back to all changes in this revision

Viewing changes to libbrasero-utils/brasero-io.h

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette
  • Date: 2011-03-29 16:33:51 UTC
  • mfrom: (1.3.18 upstream) (5.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110329163351-ac3wgbh4mplmhnht
Tags: 2.91.93-1
* Only depend on growisofs instead of dvd+rw-tools.
* New upstream pre-release.
* Update build-dependencies, package names, and paths.
* Require totem-plparser 2.32 since its soname changed.
* Do not include GIR package for now, since the versioning is broken 
  (see Bugzilla #646069).
* 01_pkglibdir.patch: dropped, upstream now has a variable we can use 
  for that effect.
* 11_nautilus_menu_no_display.patch, 31_link_libice.patch, 
  50_checksum.patch: dropped, merged upstream.
* 90_relibtoolize.patch: dropped, unnecessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#define _BRASERO_IO_H_
33
33
 
34
34
#include <glib-object.h>
 
35
#include <gtk/gtk.h>
35
36
 
36
37
#include "brasero-async-task-manager.h"
37
38
 
84
85
#define BRASERO_IO_HAS_VIDEO            "metadata::has_video"
85
86
#define BRASERO_IO_IS_SEEKABLE          "metadata::is_seekable"
86
87
 
 
88
#define BRASERO_IO_HAS_DTS                      "metadata::audio::wav::has_dts"
 
89
 
 
90
#define BRASERO_IO_CHANNELS             "metadata::audio::channels"
 
91
#define BRASERO_IO_RATE                         "metadata::audio::rate"
 
92
 
87
93
#define BRASERO_IO_DIR_CONTENTS_ADDR    "image::directory::address"
88
94
 
89
95
typedef struct _BraseroIOJobProgress BraseroIOJobProgress;
106
112
                                                         gpointer user_data);
107
113
 
108
114
 
109
 
struct _BraseroIOJobBase {
110
 
        GObject *object;
 
115
struct _BraseroIOJobCallbacks {
111
116
        BraseroIOResultCallback callback;
112
117
        BraseroIODestroyCallback destroy;
113
118
        BraseroIOProgressCallback progress;
114
119
 
 
120
        guint ref;
 
121
 
115
122
        /* Whether we are returning something for this base */
116
123
        guint in_use:1;
117
124
};
 
125
typedef struct _BraseroIOJobCallbacks BraseroIOJobCallbacks;
 
126
 
 
127
struct _BraseroIOJobBase {
 
128
        GObject *object;
 
129
        BraseroIOJobCallbacks *methods;
 
130
};
118
131
typedef struct _BraseroIOJobBase BraseroIOJobBase;
119
132
 
120
133
struct _BraseroIOResultCallbackData {
156
169
                          GError *error,
157
170
                          BraseroIOResultCallbackData *callback_data);
158
171
 
 
172
 
 
173
typedef GtkWindow *     (* BraseroIOGetParentWinCb)     (gpointer user_data);
 
174
 
 
175
void
 
176
brasero_io_set_parent_window_callback (BraseroIOGetParentWinCb callback,
 
177
                                       gpointer user_data);
 
178
 
159
179
void
160
180
brasero_io_shutdown (void);
161
181
 
 
182
/* NOTE: The split in methods and objects was
 
183
 * done to prevent jobs sharing the same methods
 
184
 * to return their results concurently. In other
 
185
 * words only one job among those sharing the
 
186
 * same methods can return its results. */
 
187
 
162
188
BraseroIOJobBase *
163
189
brasero_io_register (GObject *object,
164
190
                     BraseroIOResultCallback callback,
165
191
                     BraseroIODestroyCallback destroy,
166
192
                     BraseroIOProgressCallback progress);
167
193
 
 
194
BraseroIOJobBase *
 
195
brasero_io_register_with_methods (GObject *object,
 
196
                                  BraseroIOJobCallbacks *methods);
 
197
 
 
198
BraseroIOJobCallbacks *
 
199
brasero_io_register_job_methods (BraseroIOResultCallback callback,
 
200
                                 BraseroIODestroyCallback destroy,
 
201
                                 BraseroIOProgressCallback progress);
 
202
 
168
203
void
169
 
brasero_io_cancel_by_data (gpointer callback_data);
 
204
brasero_io_job_base_free (BraseroIOJobBase *base);
170
205
 
171
206
void
172
207
brasero_io_cancel_by_base (BraseroIOJobBase *base);