/usr/include/brasero3/brasero-media.h is in libbrasero-media3-dev 3.12.1-4ubuntu2.
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 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Libbrasero-media
* Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr>
*
* Libbrasero-media 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-media authors hereby grant permission for non-GPL compatible
* GStreamer plugins to be used and distributed together with GStreamer
* and Libbrasero-media. This permission is above and beyond the permissions granted
* by the GPL license by which Libbrasero-media 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-media 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_MEDIA_H
#define _BURN_MEDIA_H
#include <glib.h>
G_BEGIN_DECLS
/**
* Some needed information about the library
*/
#define LIBBRASERO_MEDIA_VERSION_MAJOR \
3
#define LIBBRASERO_MEDIA_VERSION_MINOR \
12
#define LIBBRASERO_MEDIA_VERSION_MICRO \
1
#define LIBBRASERO_MEDIA_AGE \
362
#define LIBBRASERO_MEDIA_INSTALL \
"/usr"
/**
* To start and stop the library
*/
void
brasero_media_library_start (void);
void
brasero_media_library_stop (void);
GOptionGroup *
brasero_media_get_option_group (void);
/**
* Errors
*/
GQuark brasero_media_quark (void);
/**
* BRASERO_MEDIA_ERROR:
*
* The GQuark used for BraseroMediaError
*/
#define BRASERO_MEDIA_ERROR brasero_media_quark()
/**
* BraseroMediaError:
*
* Error codes returned by libbrasero-media
*
*/
typedef enum {
BRASERO_MEDIA_ERROR_NONE,
BRASERO_MEDIA_ERROR_GENERAL,
BRASERO_MEDIA_ERROR_IMAGE_INVALID,
} BraseroMediaError;
/**
* BraseroMedia:
*
* This enum allows to define all characteristics for a media (closed, writable, ...)
* and identify all types of optical media.
*
*/
typedef enum {
BRASERO_MEDIUM_UNSUPPORTED = -2,
BRASERO_MEDIUM_BUSY = -1,
BRASERO_MEDIUM_NONE = 0,
/* types */
BRASERO_MEDIUM_FILE = 1,
BRASERO_MEDIUM_CD = 1 << 1,
BRASERO_MEDIUM_DVD = 1 << 2,
BRASERO_MEDIUM_BD = 1 << 3,
/* subtype for DVD and BD types */
BRASERO_MEDIUM_DUAL_L = 1 << 4,
/* DVD and DVD DL subtypes */
BRASERO_MEDIUM_RAM = 1 << 5,
BRASERO_MEDIUM_PLUS = 1 << 6,
BRASERO_MEDIUM_SEQUENTIAL = 1 << 7,
BRASERO_MEDIUM_RESTRICTED = 1 << 8, /* DVD-RW only */
/* DVD-R dual layer only subtype */
BRASERO_MEDIUM_JUMP = 1 << 9,
/* BD subtypes */
BRASERO_MEDIUM_RANDOM = 1 << 10,
BRASERO_MEDIUM_SRM = 1 << 11,
BRASERO_MEDIUM_POW = 1 << 12, /* This is Pseudo OverWrite */
/* discs attributes */
BRASERO_MEDIUM_REWRITABLE = 1 << 14,
BRASERO_MEDIUM_WRITABLE = 1 << 15,
BRASERO_MEDIUM_ROM = 1 << 16,
/* status of the disc */
BRASERO_MEDIUM_BLANK = 1 << 17,
BRASERO_MEDIUM_CLOSED = 1 << 18,
BRASERO_MEDIUM_APPENDABLE = 1 << 19,
/* Only used for DVD+RW, DVD-RW restricted */
BRASERO_MEDIUM_UNFORMATTED = 1 << 20,
BRASERO_MEDIUM_PROTECTED = 1 << 21,
BRASERO_MEDIUM_HAS_DATA = 1 << 22,
BRASERO_MEDIUM_HAS_AUDIO = 1 << 23,
} BraseroMedia;
#define BRASERO_MEDIUM_CDROM (BRASERO_MEDIUM_CD| \
BRASERO_MEDIUM_ROM)
#define BRASERO_MEDIUM_CDR (BRASERO_MEDIUM_CD| \
BRASERO_MEDIUM_WRITABLE)
#define BRASERO_MEDIUM_CDRW (BRASERO_MEDIUM_CD| \
BRASERO_MEDIUM_REWRITABLE)
#define BRASERO_MEDIUM_DVD_ROM (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_ROM)
#define BRASERO_MEDIUM_DVDR (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_SEQUENTIAL| \
BRASERO_MEDIUM_WRITABLE)
#define BRASERO_MEDIUM_DVDRW (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_SEQUENTIAL| \
BRASERO_MEDIUM_REWRITABLE)
#define BRASERO_MEDIUM_DVDRW_RESTRICTED (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_REWRITABLE| \
BRASERO_MEDIUM_RESTRICTED)
#define BRASERO_MEDIUM_DVDR_DL (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_DUAL_L| \
BRASERO_MEDIUM_WRITABLE| \
BRASERO_MEDIUM_SEQUENTIAL)
#define BRASERO_MEDIUM_DVDR_JUMP_DL (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_DUAL_L| \
BRASERO_MEDIUM_WRITABLE| \
BRASERO_MEDIUM_JUMP)
#define BRASERO_MEDIUM_DVDR_PLUS (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_WRITABLE| \
BRASERO_MEDIUM_PLUS)
#define BRASERO_MEDIUM_DVDRW_PLUS (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_REWRITABLE| \
BRASERO_MEDIUM_PLUS)
#define BRASERO_MEDIUM_DVDR_PLUS_DL (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_DUAL_L| \
BRASERO_MEDIUM_WRITABLE| \
BRASERO_MEDIUM_PLUS)
#define BRASERO_MEDIUM_DVDRW_PLUS_DL (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_DUAL_L| \
BRASERO_MEDIUM_REWRITABLE| \
BRASERO_MEDIUM_PLUS)
#define BRASERO_MEDIUM_DVD_RAM (BRASERO_MEDIUM_DVD| \
BRASERO_MEDIUM_RAM)
/* BD types all exist in BD-R(E) DL as well */
#define BRASERO_MEDIUM_BD_ROM (BRASERO_MEDIUM_BD| \
BRASERO_MEDIUM_ROM)
#define BRASERO_MEDIUM_BDR_SRM (BRASERO_MEDIUM_BD| \
BRASERO_MEDIUM_SRM| \
BRASERO_MEDIUM_WRITABLE)
#define BRASERO_MEDIUM_BDR_SRM_POW (BRASERO_MEDIUM_BD| \
BRASERO_MEDIUM_POW| \
BRASERO_MEDIUM_SRM| \
BRASERO_MEDIUM_WRITABLE)
/* This seems to be a really rare mode for BD-R */
#define BRASERO_MEDIUM_BDR_RANDOM (BRASERO_MEDIUM_BD| \
BRASERO_MEDIUM_WRITABLE| \
BRASERO_MEDIUM_RANDOM)
/* This is always RANDOM write */
#define BRASERO_MEDIUM_BDRE (BRASERO_MEDIUM_BD| \
BRASERO_MEDIUM_REWRITABLE)
#define BRASERO_MEDIUM_VALID(media) ((media) != BRASERO_MEDIUM_NONE && \
(media) != BRASERO_MEDIUM_BUSY && \
(media) != BRASERO_MEDIUM_UNSUPPORTED)
#define BRASERO_MEDIUM_TYPE(media) ((media) & 0x003F)
#define BRASERO_MEDIUM_ATTR(media) ((media) & 0x1C000)
#define BRASERO_MEDIUM_STATUS(media) ((media) & 0xE0000)
#define BRASERO_MEDIUM_SUBTYPE(media) ((media) & 0x1FC0)
#define BRASERO_MEDIUM_INFO(media) ((media) & 0xFE0000)
#define BRASERO_MEDIUM_IS(media, type) (((media)&(type))==(type))
/* These behave like random writable:
* they can be appendable or closed, rewritable or writable */
#define BRASERO_MEDIUM_RANDOM_WRITABLE(media) \
(BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_DVDRW_PLUS) || \
BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_DVDRW_RESTRICTED) || \
BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_DVD_RAM) || \
BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_BDR_RANDOM) || \
BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_BDR_SRM_POW) || \
BRASERO_MEDIUM_IS (media, BRASERO_MEDIUM_BDRE))
G_END_DECLS
#endif /* _BURN_MEDIA_H */
|