/usr/include/brasero3/brasero-session.h is in libbrasero-media3-dev 3.4.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Libbrasero-burn
* Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
*
* Libbrasero-burn is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* The Libbrasero-burn authors hereby grant permission for non-GPL compatible
* GStreamer plugins to be used and distributed together with GStreamer
* and Libbrasero-burn. This permission is above and beyond the permissions granted
* by the GPL license by which Libbrasero-burn is covered. If you modify this code
* you may extend this exception to your version of the code, but you are not
* obligated to do so. If you do not wish to do so, delete this exception
* statement from your version.
*
* Libbrasero-burn is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#ifndef BURN_SESSION_H
#define BURN_SESSION_H
#include <glib.h>
#include <glib-object.h>
#include <brasero-drive.h>
#include <brasero-error.h>
#include <brasero-status.h>
#include <brasero-track.h>
G_BEGIN_DECLS
#define BRASERO_TYPE_BURN_SESSION (brasero_burn_session_get_type ())
#define BRASERO_BURN_SESSION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_BURN_SESSION, BraseroBurnSession))
#define BRASERO_BURN_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), BRASERO_TYPE_BURN_SESSION, BraseroBurnSessionClass))
#define BRASERO_IS_BURN_SESSION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRASERO_TYPE_BURN_SESSION))
#define BRASERO_IS_BURN_SESSION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), BRASERO_TYPE_BURN_SESSION))
#define BRASERO_BURN_SESSION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BRASERO_TYPE_BURN_SESSION, BraseroBurnSessionClass))
typedef struct _BraseroBurnSession BraseroBurnSession;
typedef struct _BraseroBurnSessionClass BraseroBurnSessionClass;
struct _BraseroBurnSession {
GObject parent;
};
struct _BraseroBurnSessionClass {
GObjectClass parent_class;
/** Virtual functions **/
BraseroBurnResult (*set_output_image) (BraseroBurnSession *session,
BraseroImageFormat format,
const gchar *image,
const gchar *toc);
BraseroBurnResult (*get_output_path) (BraseroBurnSession *session,
gchar **image,
gchar **toc);
BraseroImageFormat (*get_output_format) (BraseroBurnSession *session);
/** Signals **/
void (*tag_changed) (BraseroBurnSession *session,
const gchar *tag);
void (*track_added) (BraseroBurnSession *session,
BraseroTrack *track);
void (*track_removed) (BraseroBurnSession *session,
BraseroTrack *track,
guint former_position);
void (*track_changed) (BraseroBurnSession *session,
BraseroTrack *track);
void (*output_changed) (BraseroBurnSession *session,
BraseroMedium *former_medium);
};
GType brasero_burn_session_get_type (void);
BraseroBurnSession *brasero_burn_session_new (void);
/**
* Used to manage tracks for input
*/
BraseroBurnResult
brasero_burn_session_add_track (BraseroBurnSession *session,
BraseroTrack *new_track,
BraseroTrack *sibling);
BraseroBurnResult
brasero_burn_session_move_track (BraseroBurnSession *session,
BraseroTrack *track,
BraseroTrack *sibling);
BraseroBurnResult
brasero_burn_session_remove_track (BraseroBurnSession *session,
BraseroTrack *track);
GSList *
brasero_burn_session_get_tracks (BraseroBurnSession *session);
/**
* Get some information about the session
*/
BraseroBurnResult
brasero_burn_session_get_status (BraseroBurnSession *session,
BraseroStatus *status);
BraseroBurnResult
brasero_burn_session_get_size (BraseroBurnSession *session,
goffset *blocks,
goffset *bytes);
BraseroBurnResult
brasero_burn_session_get_input_type (BraseroBurnSession *session,
BraseroTrackType *type);
/**
* This is to set additional arbitrary information
*/
BraseroBurnResult
brasero_burn_session_tag_lookup (BraseroBurnSession *session,
const gchar *tag,
GValue **value);
BraseroBurnResult
brasero_burn_session_tag_add (BraseroBurnSession *session,
const gchar *tag,
GValue *value);
BraseroBurnResult
brasero_burn_session_tag_remove (BraseroBurnSession *session,
const gchar *tag);
BraseroBurnResult
brasero_burn_session_tag_add_int (BraseroBurnSession *self,
const gchar *tag,
gint value);
gint
brasero_burn_session_tag_lookup_int (BraseroBurnSession *self,
const gchar *tag);
/**
* Destination
*/
BraseroBurnResult
brasero_burn_session_get_output_type (BraseroBurnSession *self,
BraseroTrackType *output);
BraseroDrive *
brasero_burn_session_get_burner (BraseroBurnSession *session);
void
brasero_burn_session_set_burner (BraseroBurnSession *session,
BraseroDrive *drive);
BraseroBurnResult
brasero_burn_session_set_image_output_full (BraseroBurnSession *session,
BraseroImageFormat format,
const gchar *image,
const gchar *toc);
BraseroBurnResult
brasero_burn_session_get_output (BraseroBurnSession *session,
gchar **image,
gchar **toc);
BraseroBurnResult
brasero_burn_session_set_image_output_format (BraseroBurnSession *self,
BraseroImageFormat format);
BraseroImageFormat
brasero_burn_session_get_output_format (BraseroBurnSession *session);
const gchar *
brasero_burn_session_get_label (BraseroBurnSession *session);
void
brasero_burn_session_set_label (BraseroBurnSession *session,
const gchar *label);
BraseroBurnResult
brasero_burn_session_set_rate (BraseroBurnSession *session,
guint64 rate);
guint64
brasero_burn_session_get_rate (BraseroBurnSession *session);
/**
* Session flags
*/
void
brasero_burn_session_set_flags (BraseroBurnSession *session,
BraseroBurnFlag flags);
void
brasero_burn_session_add_flag (BraseroBurnSession *session,
BraseroBurnFlag flags);
void
brasero_burn_session_remove_flag (BraseroBurnSession *session,
BraseroBurnFlag flags);
BraseroBurnFlag
brasero_burn_session_get_flags (BraseroBurnSession *session);
/**
* Used to deal with the temporary files (mostly used by plugins)
*/
BraseroBurnResult
brasero_burn_session_set_tmpdir (BraseroBurnSession *session,
const gchar *path);
const gchar *
brasero_burn_session_get_tmpdir (BraseroBurnSession *session);
/**
* Test the supported or compulsory flags for a given session
*/
BraseroBurnResult
brasero_burn_session_get_burn_flags (BraseroBurnSession *session,
BraseroBurnFlag *supported,
BraseroBurnFlag *compulsory);
BraseroBurnResult
brasero_burn_session_get_blank_flags (BraseroBurnSession *session,
BraseroBurnFlag *supported,
BraseroBurnFlag *compulsory);
/**
* Used to test the possibilities offered for a given session
*/
void
brasero_burn_session_set_strict_support (BraseroBurnSession *session,
gboolean strict_check);
gboolean
brasero_burn_session_get_strict_support (BraseroBurnSession *session);
BraseroBurnResult
brasero_burn_session_can_blank (BraseroBurnSession *session);
BraseroBurnResult
brasero_burn_session_can_burn (BraseroBurnSession *session,
gboolean check_flags);
typedef BraseroBurnResult (* BraseroForeachPluginErrorCb) (BraseroPluginErrorType type,
const gchar *detail,
gpointer user_data);
BraseroBurnResult
brasero_session_foreach_plugin_error (BraseroBurnSession *session,
BraseroForeachPluginErrorCb callback,
gpointer user_data);
BraseroBurnResult
brasero_burn_session_input_supported (BraseroBurnSession *session,
BraseroTrackType *input,
gboolean check_flags);
BraseroBurnResult
brasero_burn_session_output_supported (BraseroBurnSession *session,
BraseroTrackType *output);
BraseroMedia
brasero_burn_session_get_required_media_type (BraseroBurnSession *session);
guint
brasero_burn_session_get_possible_output_formats (BraseroBurnSession *session,
BraseroImageFormat *formats);
BraseroImageFormat
brasero_burn_session_get_default_output_format (BraseroBurnSession *session);
G_END_DECLS
#endif /* BURN_SESSION_H */
|