summaryrefslogtreecommitdiff
path: root/includes/cdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/cdutils.h')
-rw-r--r--includes/cdutils.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/includes/cdutils.h b/includes/cdutils.h
index 3e11ca2..c463908 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.18 2004-11-27 21:47:53 pixel Exp $ */
+/* $Id: cdutils.h,v 1.19 2005-11-02 21:34:02 pixel Exp $ */
#ifndef __CDUTILS_H__
#define __CDUTILS_H__
@@ -76,15 +76,23 @@ class cdutils : public Base {
Handle * open_ppf(String ppf, String comment) throw(GeneralException);
void close_ppf() throw(GeneralException);
void set_iso_w(Handle *);
- static unsigned short int swap_word(unsigned short int i);
- static unsigned long int swap_dword(unsigned long int i);
+ static Uint16 swap_word(Uint16 i);
+ static Uint32 swap_dword(Uint32 i);
+ static Uint16 from_LE16(Uint16 i);
+ static Uint32 from_LE32(Uint32 i);
+ static Uint16 from_BE16(Uint16 i);
+ static Uint32 from_BE32(Uint32 i);
+ static Uint16 to_LE16(Uint16 i) { return from_LE16(i); }
+ static Uint32 to_LE32(Uint32 i) { return from_LE32(i); }
+ static Uint16 to_BE16(Uint16 i) { return from_BE16(i); }
+ static Uint32 to_BE32(Uint32 i) { return from_BE32(i); }
int guess_type(int number = -1);
void sector_seek(long sector);
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_data(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) throw (GeneralException);
- void write_datas(Byte * buffer, long size, int type = GUESS, int number = -1);
+ void write_data(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();