summaryrefslogtreecommitdiff
path: root/usr.bin/cdio/extern.h
diff options
context:
space:
mode:
authorav <av@cvs.openbsd.org>2008-06-08 21:01:25 +0000
committerav <av@cvs.openbsd.org>2008-06-08 21:01:25 +0000
commit21683dff667775a17c1fdc1aae7a320c12a1521f (patch)
treeefd8cd13ecadc85a28f90cc12bc70c74fa9dfd26 /usr.bin/cdio/extern.h
parent1d1f6d0a19530aaa5dc91d8324c7a6e1d1237515 (diff)
add ability to determine media capabilities (what we can do with media).
ok fgsch
Diffstat (limited to 'usr.bin/cdio/extern.h')
-rw-r--r--usr.bin/cdio/extern.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cdio/extern.h b/usr.bin/cdio/extern.h
index 1c237328b79..818e9c78164 100644
--- a/usr.bin/cdio/extern.h
+++ b/usr.bin/cdio/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.9 2008/04/30 17:10:55 fgsch Exp $ */
+/* $OpenBSD: extern.h,v 1.10 2008/06/08 21:01:24 av Exp $ */
/*
* Copyright (c) 2002 Marc Espie.
*
@@ -37,12 +37,17 @@ struct track_info {
};
SLIST_HEAD(track_head, track_info) tracks;
+/* Media capabilities */
+#define MEDIACAP_TAO 0x01
+#define MEDIACAP_CDRW_WRITE 0x02
+
extern unsigned long entry2time(struct cd_toc_entry *);
extern unsigned long entry2frames(struct cd_toc_entry *);
extern int open_cd(char *, int);
extern char ** cddb(const char *, int, struct cd_toc_entry *, char *);
extern unsigned long cddb_discid(int, struct cd_toc_entry *);
extern void free_names(char **);
+extern int get_media_capabilities(int *cap);
extern int blank(void);
extern int unit_ready(void);
extern int synchronize_cache(void);