summaryrefslogtreecommitdiff
path: root/includes/cdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/cdutils.h')
-rw-r--r--includes/cdutils.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/cdutils.h b/includes/cdutils.h
index d21c9cf..c81c093 100644
--- a/includes/cdutils.h
+++ b/includes/cdutils.h
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cdutils.h,v 1.15 2003-12-14 22:04:34 pixel Exp $ */
+/* $Id: cdutils.h,v 1.16 2004-05-03 12:55:04 pixel Exp $ */
#ifndef __CDUTILS_H__
#define __CDUTILS_H__
@@ -83,9 +83,10 @@ class cdutils : public Base {
long read_sector(Byte * buffer, int type = GUESS, int number = -1);
void read_datas(Byte * buffer, long size, int type = GUESS, int number = -1);
void read_file(Handle * Handle, long size, int type = GUESS, int number = -1);
- void write_sector(Byte * buffer, int type = GUESS, int number = -1);
+ void write_sector(Byte * buffer, int type = GUESS, int number = -1) throw (GeneralException);
void write_datas(Byte * buffer, long size, int type = GUESS, int number = -1);
void write_file(Handle * Handle, long size = -1, int type = GUESS, int number = -1);
+ void create_sector(int type, int number, bool eof = false) throw (GeneralException);
int get_iso_infos();
int show_iso_infos();
int get_pt_infos();
@@ -104,6 +105,8 @@ class cdutils : public Base {
static bool is_valid_BCD(unsigned char x);
static unsigned long from_MSF(unsigned long msf, unsigned long start = 150);
static unsigned long from_MSF(unsigned char m, unsigned char s, unsigned char f, unsigned long start = 150);
+ static unsigned long to_MSF(int sect, unsigned long start = 150);
+ static void to_MSF(int sect, unsigned char & m, unsigned char & s, unsigned char & f, unsigned long start = 150);
private:
void write_ppf(Byte * old_sec, Byte * new_sec, int sec_num);
String format_date(String input);