From 0327f33923e0861e59dbaba696f86d87149eb885 Mon Sep 17 00:00:00 2001 From: Charles Schmidt Date: Sun, 28 Jul 2002 22:45:45 +0000 Subject: Added *BSD (and Darwin) ioctl cdaudio playing. Couple bugfixes. 'end-track','current-track' and 'cddb-discid' propert... Original commit message from CVS: Added *BSD (and Darwin) ioctl cdaudio playing. Couple bugfixes. 'end-track','current-track' and 'cddb-discid' properties and 'track-change' signal for the element. --- sys/cdrom/gstcdplayer_ioctl.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'sys/cdrom/gstcdplayer_ioctl.h') diff --git a/sys/cdrom/gstcdplayer_ioctl.h b/sys/cdrom/gstcdplayer_ioctl.h index 7d96925c..e9fa1a63 100644 --- a/sys/cdrom/gstcdplayer_ioctl.h +++ b/sys/cdrom/gstcdplayer_ioctl.h @@ -17,8 +17,8 @@ * Boston, MA 02111-1307, USA. */ -#ifndef __CDPLAYER_IOCTL_H__ -#define __CDPLAYER_IOCTL_H__ +#ifndef __CDPLAYER_LL_H__ +#define __CDPLAYER_LL_H__ #ifdef HAVE_CONFIG_H #include @@ -32,6 +32,12 @@ #define CDPLAYER_MAX_TRACKS 128 +typedef enum { + CD_PLAYING, + CD_COMPLETED, + CD_ERROR +} CDStatus; + struct cd_msf { guint8 minute; guint8 second; @@ -46,13 +52,19 @@ struct cd { struct cd_msf tracks[CDPLAYER_MAX_TRACKS]; }; + +/* these are defined by the different cdrom type header files */ gboolean cd_init(struct cd *cd,const gchar *device); -gboolean cd_start(struct cd *cd,guint start_track); +gboolean cd_start(struct cd *cd,gint start_track,gint end_track); gboolean cd_pause(struct cd *cd); gboolean cd_resume(struct cd *cd); gboolean cd_stop(struct cd *cd); +CDStatus cd_status(struct cd *cd); +gint cd_current_track(struct cd *cd); gboolean cd_close(struct cd *cd); +guint32 cd_cddb_discid(struct cd *cd); + #endif -- cgit v1.2.1