>From linux/cdrom.h

Code:
--------------------
    
  /* drive status possibilities returned by CDROM_DRIVE_STATUS ioctl */
  #define CDS_NO_INFO             0       /* if not implemented */
  #define CDS_NO_DISC             1
  #define CDS_TRAY_OPEN           2
  #define CDS_DRIVE_NOT_READY     3
  #define CDS_DISC_OK             4
  
  /* return values for the CDROM_DISC_STATUS ioctl */
  /* can also return CDS_NO_[INFO|DISC], from above */
  #define CDS_AUDIO               100
  #define CDS_DATA_1              101
  #define CDS_DATA_2              102
  #define CDS_XA_2_1              103
  #define CDS_XA_2_2              104
  #define CDS_MIXED               105
--------------------

The plugin does a CDROM_DRIVE_STATUS first - if there is a disk in the
drive then it does a CDROM_DISC_STATUS

Code 2 which is returned by your drive is either CDS_TRAY_OPEN or
CDS_OPEN_TRAY.  No disc will be code 1.

If you want I'll put together a Perl test app just to return CDROM
drive status.


-- 
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=64413

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to