summaryrefslogtreecommitdiffstats
path: root/sys/cdrom/gstcdplayer_ioctl.h
diff options
context:
space:
mode:
authorCharles Schmidt <cbschmid@users.sourceforge.net>2002-07-28 22:45:45 +0000
committerCharles Schmidt <cbschmid@users.sourceforge.net>2002-07-28 22:45:45 +0000
commit0327f33923e0861e59dbaba696f86d87149eb885 (patch)
tree62c25141c8d0e8543dd5f00626f9e95deb48d898 /sys/cdrom/gstcdplayer_ioctl.h
parent186ba5c337e42e8c87f1851615e1d0dd7c717904 (diff)
downloadgst-plugins-bad-0327f33923e0861e59dbaba696f86d87149eb885.tar.gz
gst-plugins-bad-0327f33923e0861e59dbaba696f86d87149eb885.tar.bz2
gst-plugins-bad-0327f33923e0861e59dbaba696f86d87149eb885.zip
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.
Diffstat (limited to 'sys/cdrom/gstcdplayer_ioctl.h')
-rw-r--r--sys/cdrom/gstcdplayer_ioctl.h18
1 files changed, 15 insertions, 3 deletions
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 <config.h>
@@ -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