summaryrefslogtreecommitdiff
path: root/extras/cdrom_id/cdrom_id.c
AgeCommit message (Collapse)Author
2008-10-21cdrom_id: remove ARRAY_SIZE() declarationKay Sievers
2008-10-02use no_argument, required_argument, optional_argument in longoptsKay Sievers
2008-09-10update file headersKay Sievers
2008-09-06use libudev code, unify logging, pass udev context around everywhereKay Sievers
2008-08-22vol_id: make the --offset= argument optionalKay Sievers
2008-07-30use autotoolsKay Sievers
2008-06-12cdrom_id: fix recognition of blank mediaKay Sievers
Thanks to David!
2008-06-11cdrom_id: export ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=, ↵Kay Sievers
ID_CDROM_MEDIA_TRACK_COUNT_DATA= Iterate over all tracks, instead of looking only at the first one for audio. Thanks to David!
2008-05-14cdrom_id: fix segfaultMatthias Schwarzott
2008-04-21cdrom_id: add more help textKay Sievers
2008-04-20logging: add trailing newline to all stringsKay Sievers
2008-04-09cdrom_id: replace with version which also exports media propertiesKay Sievers
This is a 12 track audio CD with additional data session: $ extras/cdrom_id/cdrom_id /dev/dvd ID_CDROM=1 ID_CDROM_CD_R=1 ID_CDROM_CD_RW=1 ID_CDROM_DVD=1 ID_CDROM_DVD_R=1 ID_CDROM_DVD_RW=1 ID_CDROM_DVD_RAM=1 ID_CDROM_DVD_PLUS_R=1 ID_CDROM_DVD_PLUS_RW=1 ID_CDROM_DVD_PLUS_R_DL=1 ID_CDROM_MEDIA_CD=1 ID_CDROM_MEDIA_STATE=complete ID_CDROM_MEDIA_HAS_AUDIO=1 ID_CDROM_MEDIA_SESSION_COUNT=2 ID_CDROM_MEDIA_TRACK_COUNT=13 ID_CDROM_MEDIA_SESSION_LAST_OFFSET=444508160
2006-01-09replace libsysfsKay Sievers
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-27switch tools and volume_id from LGPL to GPLv2Kay Sievers
After beeing hit by proprietary applications which statically link the LGPL'd libusb, which needs a patch to reflect the recent kernel changes, I decided not to provide LGPL code anymore. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-18fix typo in cdrom_id syslogKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-17cdrom_id: change err() to info() to help with debugging problemsGreg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-17Always open the cdrom drive in non-blocking mode in cdrom_idGreg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-12added the cdrom.h #defines directly into the cdrom_id.c fileGreg Kroah-Hartman
This solves the problem with building the file against old kernel header files. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11fix klibc build issue in cdrom_id.cGreg KH
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11changed cdrom_id exports to be easier to understand and consistant with ↵Greg KH
other _id programs. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-08-11Created cdrom_id program to make it easier to determine cdrom typesGreg KH
Based on the framework from ata_id by Kay. Now we can drop the cdsymlinks.sh and .c files Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>