Thanks Thomas ! I remember now You already told me how to to this. I am sorry, I spend lot of time trying to understand libcdio, SCSI MMC commands. I was a little lost. I think I can handle this now. Thanks again !
When done (and tested), I will send the code to this list. I now believe I will be able to use libcdio for media detection on SimpleBurn ! I can't remember who asked, but I can tell that SimpleBurn (burning application) has been designed to allow the switch device/media detection method and burning suite: it is currently using cdrtools / cdrkit, but it could later use libburn / libburnia (are these project different ? it looks like they share common enums and functions) with xorriso... If needed, I could let the user choose the burning suite at compilation (configuration) time. Frank 2010/2/8 Thomas Schmitt <[email protected]> > Hi, > > > Does someone know how I can get a CD-R or CD-RW capacity (the available > > space for burning) ? Read format capacities works with DVD, > > With formattable DVD types, that is. > I doubt you get anything from a DVD-R or DVD+R. > > > but for writable > > CDs, I get no media present or unknown capacity. > > libburn uses the method i describe in > http://lists.gnu.org/archive/html/libcdio-devel/2010-01/msg00026.html > where you asked: > "> is there a simpler way to get capacity ?)." > and i replied: > "Not simpler, but probably more complete." > > > Have a nice day :) > > Thomas > > > > -- Frank Endres
