/usr/include/ogmdvd/ogmdvd-drive.h is in libogmrip-dev 1.0.1-1.
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 | /* OGMDvd - A wrapper library around libdvdread
* Copyright (C) 2009-2012 Olivier Rolland <billl@users.sourceforge.net>
*
* Code from 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.
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __OGMDVD_DRIVE_H__
#define __OGMDVD_DRIVE_H__
#include <glib-object.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define OGMDVD_TYPE_DRIVE (ogmdvd_drive_get_type ())
#define OGMDVD_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OGMDVD_TYPE_DRIVE, OGMDvdDrive))
#define OGMDVD_DRIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OGMDVD_TYPE_DRIVE, OGMDvdDriveClass))
#define OGMDVD_IS_DRIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OGMDVD_TYPE_DRIVE))
#define OGMDVD_IS_DRIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OGMDVD_TYPE_DRIVE))
#define OGMDVD_DRIVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OGMDVD_TYPE_DRIVE, OGMDvdDriveClass))
/**
* OGMDvdDriveType:
* @OGMDVD_DRIVE_NONE: No drive is available
* @OGMDVD_DRIVE_CDROM: The drive can read CDROM
* @OGMDVD_DRIVE_CDR: The drive can write CD-R
* @OGMDVD_DRIVE_CDRW: The drive can write CD-RW
* @OGMDVD_DRIVE_DVD: The drive can read DVD
* @OGMDVD_DRIVE_DVDR: The drive can write DVD-R
* @OGMDVD_DRIVE_DVDRW: The drive can write DVD-RW
* @OGMDVD_DRIVE_DVDR_PLUS: The drive can write DVD+R
* @OGMDVD_DRIVE_DVDRW_PLUS: The drive can write DVD+RW
* @OGMDVD_DRIVE_DVDR_PLUS_DL: The drive can write DVD+R DL
* @OGMDVD_DRIVE_DVDRW_PLUS_DL: The drive can write DVD+RW DL
* @OGMDVD_DRIVE_DVDRAM: The drive can read DVD-Ram
* @OGMDVD_DRIVE_BD: The drive can read BD
* @OGMDVD_DRIVE_BDR: The drive can write BD-R
* @OGMDVD_DRIVE_BDRW: The drive can write BD-RW
*
* The type of the drive is a combination these constants.
*/
typedef enum
{
OGMDVD_DRIVE_NONE = 0,
OGMDVD_DRIVE_CDROM = 1 << 0,
OGMDVD_DRIVE_CDR = 1 << 1,
OGMDVD_DRIVE_CDRW = 1 << 2,
OGMDVD_DRIVE_DVD = 1 << 3,
OGMDVD_DRIVE_DVDR = 1 << 4,
OGMDVD_DRIVE_DVDRW = 1 << 5,
OGMDVD_DRIVE_DVDR_PLUS = 1 << 6,
OGMDVD_DRIVE_DVDRW_PLUS = 1 << 7,
OGMDVD_DRIVE_DVDR_PLUS_DL = 1 << 8,
OGMDVD_DRIVE_DVDRW_PLUS_DL = 1 << 9,
OGMDVD_DRIVE_DVDRAM = 1 << 10,
OGMDVD_DRIVE_BD = 1 << 11,
OGMDVD_DRIVE_BDR = 1 << 12,
OGMDVD_DRIVE_BDRW = 1 << 13
} OGMDvdDriveType;
/**
* OGMDvdMediumType:
* @OGMDVD_MEDIUM_NONE: No medium is available
* @OGMDVD_MEDIUM_UNKNOWN: Unknown medium
* @OGMDVD_MEDIUM_CD: The medium is a CD
* @OGMDVD_MEDIUM_CDR: The medium is a CD-R
* @OGMDVD_MEDIUM_CDRW: The medium is a CD-RW
* @OGMDVD_MEDIUM_DVD: The medium is a DVD
* @OGMDVD_MEDIUM_DVDR: The medium is a DVD-R
* @OGMDVD_MEDIUM_DVDRW: The medium is a DVD-RW
* @OGMDVD_MEDIUM_DVDR_DL: The medium is a DVD-R DL
* @OGMDVD_MEDIUM_DVD_RAM: The medium is a DVD-Ram
* @OGMDVD_MEDIUM_DVD_PLUS_R: The medium is a DVD+R
* @OGMDVD_MEDIUM_DVD_PLUS_RW: The medium is a DVD+RW
* @OGMDVD_MEDIUM_DVD_PLUS_R_DL: The medium is a DVD+R DL
* @OGMDVD_MEDIUM_DVD_PLUS_RW_DL: The medium is a DVD+RW DL
* @OGMDVD_MEDIUM_BD: The medium is a BD
* @OGMDVD_MEDIUM_BDR: The medium is a BD-R
* @OGMDVD_MEDIUM_BDRW: The medium is a BD-RW
*
* The type of the medium in the drive.
*/
typedef enum
{
OGMDVD_MEDIUM_NONE,
OGMDVD_MEDIUM_UNKNOWN,
OGMDVD_MEDIUM_CD,
OGMDVD_MEDIUM_CDR,
OGMDVD_MEDIUM_CDRW,
OGMDVD_MEDIUM_DVD,
OGMDVD_MEDIUM_DVDR,
OGMDVD_MEDIUM_DVDRW,
OGMDVD_MEDIUM_DVDR_DL,
OGMDVD_MEDIUM_DVD_RAM,
OGMDVD_MEDIUM_DVD_PLUS_R,
OGMDVD_MEDIUM_DVD_PLUS_RW,
OGMDVD_MEDIUM_DVD_PLUS_R_DL,
OGMDVD_MEDIUM_DVD_PLUS_RW_DL,
OGMDVD_MEDIUM_BD,
OGMDVD_MEDIUM_BDR,
OGMDVD_MEDIUM_BDRW
} OGMDvdMediumType;
typedef struct _OGMDvdDrive OGMDvdDrive;
typedef struct _OGMDvdDriveClass OGMDvdDriveClass;
typedef struct _OGMDvdDrivePriv OGMDvdDrivePriv;
struct _OGMDvdDrive
{
GObject parent_instance;
OGMDvdDrivePriv *priv;
};
struct _OGMDvdDriveClass
{
GObjectClass parent_class;
void (* medium_added) (OGMDvdDrive *drive);
void (* medium_removed) (OGMDvdDrive *drive);
};
GType ogmdvd_drive_get_type (void) G_GNUC_CONST;
const gchar * ogmdvd_drive_get_device (OGMDvdDrive *drive);
GDrive * ogmdvd_drive_get_gdrive (OGMDvdDrive *drive);
gchar * ogmdvd_drive_get_name (OGMDvdDrive *drive);
gint ogmdvd_drive_get_drive_type (OGMDvdDrive *drive);
gint ogmdvd_drive_get_medium_type (OGMDvdDrive *drive);
gboolean ogmdvd_drive_can_eject (OGMDvdDrive *drive);
void ogmdvd_drive_eject (OGMDvdDrive *drive);
void ogmdvd_drive_load (OGMDvdDrive *drive);
gboolean ogmdvd_drive_is_door_open (OGMDvdDrive *drive);
gboolean ogmdvd_drive_lock (OGMDvdDrive *drive);
gboolean ogmdvd_drive_unlock (OGMDvdDrive *drive);
G_END_DECLS
#endif /* __OGMDVD_DRIVE_H__ */
|