Goetz Waschk <[EMAIL PROTECTED]> writes:
> I could add that to the xine package, but there are other DVD players that
> use that symlink too, maybe it should be created by the installer like the
> /dev/cdrom link.
it's devfsd which take care of this. It would be nice if it would also create
the /dev/dvd link...
the test is quite simple:
int is_dvd = 0;
int fd = open(dev, O_NONBLOCK);
if (fd) {
is_dvd = ioctl(fd, CDROM_GET_CAPABILITY) & CDC_DVD;
close(fd);
}
return is_dvd;
titi, you hack this in devfsd?
PS, it needs:
#include <linux/cdrom.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>