Device-Cdio

 view release on metacpan or  search on metacpan

swig/perlmmc.swg  view on Meta::CPAN

%constant long int FEATURE_RIGID_RES_OVERW = CDIO_MMC_FEATURE_RIGID_RES_OVERW;
%constant long int FEATURE_CD_TAO          = CDIO_MMC_FEATURE_CD_TAO;
%constant long int FEATURE_CD_SAO          = CDIO_MMC_FEATURE_CD_SAO;
%constant long int FEATURE_DVD_R_RW_WRITE  = CDIO_MMC_FEATURE_DVD_R_RW_WRITE;
%constant long int FEATURE_CD_RW_MEDIA_WRITE= CDIO_MMC_FEATURE_CD_RW_MEDIA_WRITE;
%constant long int FEATURE_DVD_PR_2_LAYER  = CDIO_MMC_FEATURE_DVD_PR_2_LAYER;
%constant long int FEATURE_POWER_MGMT      = CDIO_MMC_FEATURE_POWER_MGMT;
%constant long int FEATURE_CDDA_EXT_PLAY   = CDIO_MMC_FEATURE_CDDA_EXT_PLAY;
%constant long int FEATURE_MCODE_UPGRADE   = CDIO_MMC_FEATURE_MCODE_UPGRADE;
%constant long int FEATURE_TIME_OUT        = CDIO_MMC_FEATURE_TIME_OUT;
%constant long int FEATURE_DVD_CSS         = CDIO_MMC_FEATURE_DVD_CSS;
%constant long int FEATURE_RT_STREAMING    = CDIO_MMC_FEATURE_RT_STREAMING;
%constant long int FEATURE_LU_SN           = CDIO_MMC_FEATURE_LU_SN;
%constant long int FEATURE_FIRMWARE_DATE   = CDIO_MMC_FEATURE_FIRMWARE_DATE;
/* Profile profile codes used in GET_CONFIGURATION - PROFILE LIST. */

%constant long int FEATURE_PROF_NON_REMOVABLE = CDIO_MMC_FEATURE_PROF_NON_REMOVABLE;
%constant long int FEATURE_PROF_REMOVABLE  = CDIO_MMC_FEATURE_PROF_REMOVABLE;
%constant long int FEATURE_PROF_MO_ERASABLE= CDIO_MMC_FEATURE_PROF_MO_ERASABLE;
%constant long int FEATURE_PROF_MO_WRITE_ONCE= CDIO_MMC_FEATURE_PROF_MO_WRITE_ONCE;

%constant long int FEATURE_PROF_AS_MO      = CDIO_MMC_FEATURE_PROF_AS_MO;
%constant long int FEATURE_PROF_CD_ROM     = CDIO_MMC_FEATURE_PROF_CD_ROM;
%constant long int FEATURE_PROF_CD_R       = CDIO_MMC_FEATURE_PROF_CD_R;
%constant long int FEATURE_PROF_CD_RW      = CDIO_MMC_FEATURE_PROF_CD_RW;
%constant long int FEATURE_PROF_DVD_ROM    = CDIO_MMC_FEATURE_PROF_DVD_ROM;
%constant long int FEATURE_PROF_DVD_R_SEQ  = CDIO_MMC_FEATURE_PROF_DVD_R_SEQ;
%constant long int FEATURE_PROF_DVD_RAM    = CDIO_MMC_FEATURE_PROF_DVD_RAM;
%constant long int FEATURE_PROF_DVD_RW_RO  = CDIO_MMC_FEATURE_PROF_DVD_RW_RO;
%constant long int FEATURE_PROF_DVD_RW_SEQ = CDIO_MMC_FEATURE_PROF_DVD_RW_SEQ;
%constant long int FEATURE_PROF_DVD_PRW    = CDIO_MMC_FEATURE_PROF_DVD_PRW;
%constant long int FEATURE_PROF_DVD_PR     = CDIO_MMC_FEATURE_PROF_DVD_PR;
%constant long int FEATURE_PROF_DDCD_ROM   = CDIO_MMC_FEATURE_PROF_DDCD_ROM;
%constant long int FEATURE_PROF_DDCD_R     = CDIO_MMC_FEATURE_PROF_DDCD_R;
%constant long int FEATURE_PROF_DDCD_RW    = CDIO_MMC_FEATURE_PROF_DDCD_RW;
%constant long int FEATURE_PROF_DVD_PR    = CDIO_MMC_FEATURE_PROF_DVD_PR;
%constant long int FEATURE_PROF_NON_CONFORM= CDIO_MMC_FEATURE_PROF_NON_CONFORM;
%constant long int FEATURE_INTERFACE_UNSPECIFIED = CDIO_MMC_FEATURE_INTERFACE_UNSPECIFIED;
%constant long int FEATURE_INTERFACE_SCSI  = CDIO_MMC_FEATURE_INTERFACE_SCSI;
%constant long int FEATURE_INTERFACE_ATAPI = CDIO_MMC_FEATURE_INTERFACE_ATAPI;
%constant long int FEATURE_INTERFACE_IEEE_1394= CDIO_MMC_FEATURE_INTERFACE_IEEE_1394;
%constant long int FEATURE_INTERFACE_IEEE_1394A= CDIO_MMC_FEATURE_INTERFACE_IEEE_1394A;
%constant long int FEATURE_INTERFACE_FIBRE_CH= CDIO_MMC_FEATURE_INTERFACE_FIBRE_CH;


%feature("autodoc",
"Read Audio Subchannel information

 param p_cdio the CD object to be acted upon.
 param p_subchannel place for returned subchannel information
.");
%rename mmc_audio_read_subchannel audio_read_subchannel;

%feature("autodoc",
"Return a string containing the name of the audio state as returned from
 the Q_SUBCHANNEL.
");
%rename mmc_audio_state2str audio_state2str;

/*!
  Eject using MMC commands. If CD-ROM is "locked" we'll unlock it.
  Command is not "immediate" -- we'll wait for the command to complete.
  For a more general (and lower-level) routine, @see mmc_start_stop_media.
*/
//%rename mmc_eject_media eject_media;
int mmc_eject_media(const CdIo_t *p_cdio);
%inline %{
  extern int mmc_eject_media(const CdIo_t *p_cdio);
%}
/*!
  Return a string containing the name of the given feature
*/
%rename mmc_feature2str feature2str;

/*!
  Return a string containing the name of the given feature
*/
%rename mmc_feature_profile2str feature_profile2str;

/*!
  Return the length in bytes of the Command Descriptor
  Buffer (CDB) for a given MMC command. The length will be
  either 6, 10, or 12.
*/
%rename mmc_get_cmd_len get_cmd_len;

/*!
  Get the block size used in read requests, via MMC.
  @return the blocksize if > 0; error if <= 0
*/
%rename mmc_get_blocksize get_blocksize;

/*!
  Get the lsn of the end of the CD

  @return the lsn. On error return CDIO_INVALID_LSN.
*/
%rename mmc_get_disc_last_lsn get_lsn;

/*!
  Return the discmode as reported by the MMC Read (FULL) TOC
  command.

  Information was obtained from Section 5.1.13 (Read TOC/PMA/ATIP)
  pages 56-62 from the MMC draft specification, revision 10a
  at http://www.t10.org/ftp/t10/drafts/mmc/mmc-r10a.pdf See
  especially tables 72, 73 and 75.
*/
%rename mmc_get_discmode get_discmode;

/*!
  Get drive capabilities for a device.
  @return the drive capabilities.
*/
%rename mmc_get_drive_cap get_drive_cap;

/*!
  Get the MMC level supported by the device.
*/
%rename mmc_get_drive_mmc_cap get_drive_mmc_cap;



( run in 3.455 seconds using v1.01-cache-2.11-cpan-81fc1098f69 )