summaryrefslogtreecommitdiffstats
path: root/sys/cdrom/gstcdplayer_ioctl.h
diff options
context:
space:
mode:
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