ext/CdIo.h in rb_cdio-0.1.0 vs ext/CdIo.h in rb_cdio-0.1.1
- old
+ new
@@ -41,10 +41,11 @@
VALUE mCdIo;
VALUE cCdIoCd;
VALUE cCdIoTrack;
VALUE cCdIoTrackIso9660;
+VALUE cCdIoTracks;
int Init_CdIo();
// Metodos para el módulo CdIo
VALUE rb_cdio_open(int argc, VALUE * argv, VALUE module);
VALUE rb_cdio_get_devices(int argc, VALUE * argv, VALUE module); // ok
@@ -62,17 +63,17 @@
// mi
VALUE rb_cdio_discmode_describe(VALUE module, VALUE discmode); // creada
// por
// mi
-VALUE rb_cdio_is_binfile(VALUE module, VALUE name);
-VALUE rb_cdio_is_cuefile(VALUE module, VALUE name);
-VALUE rb_cdio_is_nrg(VALUE module, VALUE name);
-VALUE rb_cdio_is_tocfile(VALUE module, VALUE name);
-VALUE rb_cdio_is_device(int argc, VALUE * argv, VALUE module);
+VALUE rb_cdio_is_binfile(VALUE module, VALUE name);
+VALUE rb_cdio_is_cuefile(VALUE module, VALUE name);
+VALUE rb_cdio_is_nrg(VALUE module, VALUE name);
+VALUE rb_cdio_is_tocfile(VALUE module, VALUE name);
+VALUE rb_cdio_is_device(int argc, VALUE * argv, VALUE module);
-
+
/*
* Métodos para clase CdIo::Cd
*/
VALUE rb_cdio_cd_new(int argc, VALUE * argv, VALUE class); // ok
VALUE rb_cdio_cd_init(VALUE class, VALUE device, VALUE driver); // ok
@@ -85,24 +86,33 @@
VALUE rb_cdio_cd_get_freedb(VALUE obj);
VALUE rb_cdio_cd_get_drive_cap(VALUE obj);
VALUE rb_cdio_cd_get_hwinfo(VALUE obj);
VALUE rb_cdio_cd_close(VALUE obj);
VALUE rb_cdio_cd_get_cdtext(VALUE obj);
+/**
+* Métodos para la clase CdIo::Tracks
+*/
+
+VALUE rb_cdio_tracks_init(VALUE obj, VALUE cd);
+VALUE rb_cdio_tracks_each(int argc, VALUE * argv, VALUE obj);
+VALUE rb_cdio_tracks_diff(VALUE obj, VALUE a, VALUE b);
+VALUE rb_cdio_tracks_index(VALUE obj, VALUE index);
/*
* Métodos para la clase CdIo::Track
*/
-VALUE rb_cdio_track_new(VALUE cd, int track);
+
VALUE rb_cdio_track_init(VALUE obj, VALUE oCd, VALUE i_track); // ok
VALUE rb_cdio_track_green(VALUE obj); // ok
VALUE rb_cdio_track_get_cdtext(VALUE obj);
/* TrackIso9660*/
-VALUE rb_cdio_trackiso9660_new(VALUE cd, int track);
+
VALUE rb_cdio_trackiso9660_init(VALUE obj, VALUE oCd, VALUE i_track);
/*
* Métodos comunes
*/
VALUE get_cap(cdio_drive_read_cap_t * read_cap,
cdio_drive_write_cap_t * write_cap,
cdio_drive_misc_cap_t * misc_cap);
-VALUE get_cdtext(const cdtext_t *cdtext);
+VALUE get_cdtext(const cdtext_t * cdtext);
+VALUE get_track(VALUE obj, track_t i);
#endif