Help: Detect if CD-ROM is inserted
Hi, I'm working on C++ under Linux, I've got to make a program that detects if a CD-ROM or USB is inserted/connected and show the content.
I've read a lot, and I understand that for USB I can use some libraries like usb-linux.c, but for the CD-ROM I can't find a thing, only for Windows programming on DOS, the problem is that I don't know how to search :S
Any idea? Is there any library for CD-ROM detect too?
Thnx a lot!!