| 1 |
/* -*- c -*- |
| 2 |
Copyright (C) 2006, 2008, 2011-2012, 2017 Rocky Bernstein <[email protected]> |
| 3 |
|
| 4 |
This program is free software: you can redistribute it and/or modify |
| 5 |
it under the terms of the GNU General Public License as published by |
| 6 |
the Free Software Foundation, either version 3 of the License, or |
| 7 |
(at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
/* See <cdio/device.h> for more extensive documentation. */ |
| 18 |
|
| 19 |
/**** ALL OF THESE ARE CONSTANTS *** */ |
| 20 |
%immutable; |
| 21 |
|
| 22 |
/* Drive types returned by cdio_get_drive_cap() */ |
| 23 |
%constant long int DRIVE_CAP_ERROR = CDIO_DRIVE_CAP_ERROR; |
| 24 |
%constant long int DRIVE_CAP_UNKNOWN = CDIO_DRIVE_CAP_UNKNOWN; |
| 25 |
%constant long int DRIVE_CAP_MISC_CLOSE_TRAY = CDIO_DRIVE_CAP_MISC_CLOSE_TRAY; |
| 26 |
%constant long int DRIVE_CAP_MISC_EJECT = CDIO_DRIVE_CAP_MISC_EJECT; |
| 27 |
%constant long int DRIVE_CAP_MISC_LOCK = CDIO_DRIVE_CAP_MISC_LOCK ; |
| 28 |
%constant long int DRIVE_CAP_MISC_SELECT_SPEED = CDIO_DRIVE_CAP_MISC_SELECT_SPEED; |
| 29 |
%constant long int DRIVE_CAP_MISC_SELECT_DISC = CDIO_DRIVE_CAP_MISC_SELECT_DISC; |
| 30 |
%constant long int DRIVE_CAP_MISC_MULTI_SESSION = CDIO_DRIVE_CAP_MISC_MULTI_SESSION; |
| 31 |
%constant long int DRIVE_CAP_MISC_MEDIA_CHANGED = CDIO_DRIVE_CAP_MISC_MEDIA_CHANGED; |
| 32 |
%constant long int DRIVE_CAP_MISC_RESET = CDIO_DRIVE_CAP_MISC_RESET; |
| 33 |
%constant long int DRIVE_CAP_MISC_FILE = CDIO_DRIVE_CAP_MISC_FILE; |
| 34 |
|
| 35 |
/* Reading masks.. */ |
| 36 |
%constant long int DRIVE_CAP_READ_AUDIO = CDIO_DRIVE_CAP_READ_AUDIO; |
| 37 |
%constant long int DRIVE_CAP_READ_CD_DA = CDIO_DRIVE_CAP_READ_CD_DA; |
| 38 |
%constant long int DRIVE_CAP_READ_CD_G = CDIO_DRIVE_CAP_READ_CD_G; |
| 39 |
%constant long int DRIVE_CAP_READ_CD_R = CDIO_DRIVE_CAP_READ_CD_R; |
| 40 |
%constant long int DRIVE_CAP_READ_CD_RW = CDIO_DRIVE_CAP_READ_CD_RW; |
| 41 |
%constant long int DRIVE_CAP_READ_DVD_R = CDIO_DRIVE_CAP_READ_DVD_R; |
| 42 |
%constant long int DRIVE_CAP_READ_DVD_PR = CDIO_DRIVE_CAP_READ_DVD_PR; |
| 43 |
%constant long int DRIVE_CAP_READ_DVD_RAM = CDIO_DRIVE_CAP_READ_DVD_RAM; |
| 44 |
%constant long int DRIVE_CAP_READ_DVD_ROM = CDIO_DRIVE_CAP_READ_DVD_ROM; |
| 45 |
%constant long int DRIVE_CAP_READ_DVD_RW = CDIO_DRIVE_CAP_READ_DVD_RW; |
| 46 |
%constant long int DRIVE_CAP_READ_DVD_RPW = CDIO_DRIVE_CAP_READ_DVD_RPW; |
| 47 |
%constant long int DRIVE_CAP_READ_C2_ERRS = CDIO_DRIVE_CAP_READ_C2_ERRS; |
| 48 |
%constant long int DRIVE_CAP_READ_MODE2_FORM1 = CDIO_DRIVE_CAP_READ_MODE2_FORM1; |
| 49 |
%constant long int DRIVE_CAP_READ_MODE2_FORM2 = CDIO_DRIVE_CAP_READ_MODE2_FORM2; |
| 50 |
%constant long int DRIVE_CAP_READ_MCN = CDIO_DRIVE_CAP_READ_MCN; |
| 51 |
%constant long int DRIVE_CAP_READ_ISRC = CDIO_DRIVE_CAP_READ_ISRC; |
| 52 |
|
| 53 |
/* Writing masks.. */ |
| 54 |
%constant long int DRIVE_CAP_WRITE_CD_R = CDIO_DRIVE_CAP_WRITE_CD_R; |
| 55 |
%constant long int DRIVE_CAP_WRITE_CD_RW = CDIO_DRIVE_CAP_WRITE_CD_RW; |
| 56 |
%constant long int DRIVE_CAP_WRITE_DVD_R = CDIO_DRIVE_CAP_WRITE_DVD_R; |
| 57 |
%constant long int DRIVE_CAP_WRITE_DVD_PR = CDIO_DRIVE_CAP_WRITE_DVD_PR; |
| 58 |
%constant long int DRIVE_CAP_WRITE_DVD_RAM = CDIO_DRIVE_CAP_WRITE_DVD_RAM; |
| 59 |
%constant long int DRIVE_CAP_WRITE_DVD_RW = CDIO_DRIVE_CAP_WRITE_DVD_RW ; |
| 60 |
%constant long int DRIVE_CAP_WRITE_DVD_RPW = CDIO_DRIVE_CAP_WRITE_DVD_RPW; |
| 61 |
%constant long int DRIVE_CAP_WRITE_MT_RAINIER = CDIO_DRIVE_CAP_WRITE_MT_RAINIER; |
| 62 |
%constant long int DRIVE_CAP_WRITE_BURN_PROOF = CDIO_DRIVE_CAP_WRITE_BURN_PROOF; |
| 63 |
|
| 64 |
/*** Masks derived from above... ***/ |
| 65 |
/* Has some sort of CD writer ability. */ |
| 66 |
%constant long int DRIVE_CAP_WRITE_CD = CDIO_DRIVE_CAP_WRITE_CD; |
| 67 |
/* Has some sort of DVD writer ability */ |
| 68 |
%constant long int DRIVE_CAP_WRITE_DVD = CDIO_DRIVE_CAP_WRITE_DVD; |
| 69 |
%constant long int DRIVE_CAP_WRITE = CDIO_DRIVE_CAP_WRITE; |
| 70 |
|
| 71 |
/*! Size of fields returned by an INQUIRY command */ |
| 72 |
%constant long int MMC_HW_VENDOR_LEN = CDIO_MMC_HW_VENDOR_LEN; |
| 73 |
%constant long int MMC_HW_MODEL_LEN = CDIO_MMC_HW_MODEL_LEN; |
| 74 |
%constant long int MMC_HW_REVISION_LEN = CDIO_MMC_HW_REVISION_LEN; |
| 75 |
|
| 76 |
/**! Flags specifying the category of device to open or is opened. */ |
| 77 |
%constant long int SRC_IS_DISK_IMAGE_MASK = CDIO_SRC_IS_DISK_IMAGE_MASK; |
| 78 |
%constant long int SRC_IS_DEVICE_MASK = CDIO_SRC_IS_DEVICE_MASK; |
| 79 |
%constant long int SRC_IS_SCSI_MASK = CDIO_SRC_IS_SCSI_MASK; |
| 80 |
%constant long int SRC_IS_NATIVE_MASK = CDIO_SRC_IS_NATIVE_MASK; |
| 81 |
|
| 82 |
/* driver_id_t enums. */ |
| 83 |
%constant long int DRIVER_UNKNOWN = DRIVER_UNKNOWN; |
| 84 |
%constant long int DRIVER_AIX = DRIVER_AIX; |
| 85 |
%constant long int DRIVER_FREEBSD = DRIVER_FREEBSD; |
| 86 |
%constant long int DRIVER_LINUX = DRIVER_LINUX; |
| 87 |
%constant long int DRIVER_SOLARIS = DRIVER_SOLARIS; |
| 88 |
%constant long int DRIVER_WIN32 = DRIVER_WIN32; |
| 89 |
%constant long int DRIVER_CDRDAO = DRIVER_CDRDAO; |
| 90 |
%constant long int DRIVER_BINCUE = DRIVER_BINCUE; |
| 91 |
%constant long int DRIVER_NRG = DRIVER_NRG; |
| 92 |
%constant long int DRIVER_DEVICE = DRIVER_DEVICE; |
| 93 |
|
| 94 |
%constant long int DRIVER_OP_SUCCESS = DRIVER_OP_SUCCESS; |
| 95 |
%constant long int DRIVER_OP_ERROR = DRIVER_OP_ERROR; |
| 96 |
%constant long int DRIVER_OP_UNSUPPORTED = DRIVER_OP_UNSUPPORTED; |
| 97 |
%constant long int DRIVER_OP_UNINIT = DRIVER_OP_UNINIT; |
| 98 |
%constant long int DRIVER_OP_NOT_PERMITTED = DRIVER_OP_NOT_PERMITTED; |
| 99 |
%constant long int DRIVER_OP_BAD_PARAMETER = DRIVER_OP_BAD_PARAMETER; |
| 100 |
%constant long int DRIVER_OP_BAD_POINTER = DRIVER_OP_BAD_POINTER; |
| 101 |
%constant long int DRIVER_OP_NO_DRIVER = DRIVER_OP_NO_DRIVER; |
| 102 |
|
| 103 |
%constant unsigned int FS_AUDIO = CDIO_FS_AUDIO; |
| 104 |
%constant unsigned int FS_HIGH_SIERRA = CDIO_FS_HIGH_SIERRA; |
| 105 |
%constant unsigned int FS_ISO_9660 = CDIO_FS_ISO_9660; |
| 106 |
%constant unsigned int FS_INTERACTIVE = CDIO_FS_INTERACTIVE; |
| 107 |
%constant unsigned int FS_HFS = CDIO_FS_HFS; |
| 108 |
%constant unsigned int FS_UFS = CDIO_FS_UFS; |
| 109 |
%constant unsigned int FS_EXT2 = CDIO_FS_EXT2; |
| 110 |
%constant unsigned int FS_ISO_HFS = CDIO_FS_ISO_HFS; |
| 111 |
%constant unsigned int FS_ISO_9660_INTERACTIVE = CDIO_FS_ISO_9660_INTERACTIVE; |
| 112 |
%constant unsigned int FS_3DO = CDIO_FS_3DO; |
| 113 |
%constant unsigned int FS_XISO = CDIO_FS_XISO; |
| 114 |
%constant unsigned int FS_UDFX = CDIO_FS_UDFX; |
| 115 |
%constant unsigned int FS_UDF = CDIO_FS_UDF; |
| 116 |
%constant unsigned int FS_ISO_UDF = CDIO_FS_ISO_UDF; |
| 117 |
|
| 118 |
%constant unsigned int FS_ANAL_XA = CDIO_FS_ANAL_XA; |
| 119 |
%constant unsigned int FS_ANAL_MULTISESSION = CDIO_FS_ANAL_MULTISESSION; |
| 120 |
%constant unsigned int FS_ANAL_PHOTO_CD = CDIO_FS_ANAL_PHOTO_CD; |
| 121 |
%constant unsigned int FS_ANAL_HIDDEN_TRACK = CDIO_FS_ANAL_HIDDEN_TRACK; |
| 122 |
%constant unsigned int FS_ANAL_CDTV = CDIO_FS_ANAL_CDTV; |
| 123 |
%constant unsigned int FS_ANAL_BOOTABLE = CDIO_FS_ANAL_BOOTABLE; |
| 124 |
%constant unsigned int FS_ANAL_VIDEOCD = CDIO_FS_ANAL_VIDEOCD; |
| 125 |
%constant unsigned int FS_ANAL_ROCKRIDGE = CDIO_FS_ANAL_ROCKRIDGE; |
| 126 |
%constant unsigned int FS_ANAL_JOLIET = CDIO_FS_ANAL_JOLIET; |
| 127 |
%constant unsigned int FS_ANAL_SVCD = CDIO_FS_ANAL_SVCD; |
| 128 |
%constant unsigned int FS_ANAL_CVD = CDIO_FS_ANAL_CVD; |
| 129 |
%constant unsigned int FS_ANAL_XISO = CDIO_FS_ANAL_XISO; |
| 130 |
%constant unsigned int FS_MATCH_ALL = CDIO_FS_MATCH_ALL; |
| 131 |
%constant unsigned int FS_UNKNOWN = CDIO_FS_UNKNOWN; |
| 132 |
|
| 133 |
%mutable; |