aboutsummaryrefslogtreecommitdiff
path: root/libmpio/defs.h
diff options
context:
space:
mode:
authorgermeier <germeier>2002-09-23 22:38:03 +0000
committergermeier <germeier>2002-09-23 22:38:03 +0000
commit394e96c30d87613fc733167297d1bf594d5e5035 (patch)
treea6317a05308aec1db82c479dc82c82fd25ede337 /libmpio/defs.h
parent6557eca4248c1e46249342c1368b13e1618448c8 (diff)
downloadmpiosh-394e96c30d87613fc733167297d1bf594d5e5035.tar.gz
mpiosh-394e96c30d87613fc733167297d1bf594d5e5035.tar.bz2
mpiosh-394e96c30d87613fc733167297d1bf594d5e5035.zip
read spare area from external memory too
display progress for internal and external memory a few code clean ups and checks renamed debug_memory to dump_memory and dump more memory areas now a lot of little changes and updates
Diffstat (limited to 'libmpio/defs.h')
-rw-r--r--libmpio/defs.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/libmpio/defs.h b/libmpio/defs.h
index 910df64..a6422cd 100644
--- a/libmpio/defs.h
+++ b/libmpio/defs.h
@@ -1,7 +1,7 @@
/* -*- linux-c -*- */
/*
- * $Id: defs.h,v 1.8 2002/09/20 20:49:36 germeier Exp $
+ * $Id: defs.h,v 1.9 2002/09/23 22:38:03 germeier Exp $
*
* Library for USB MPIO-*
*
@@ -66,6 +66,14 @@ typedef enum { FTYPE_CONF = 'C',
FTYPE_WAV = 'V',
FTYPE_ENTRY = 'R' } mpio_file_t;
+/* type of callback functions */
+typedef BYTE (*mpio_callback_t)(int, int) ;
+typedef BYTE (*mpio_callback_init_t)(mpio_mem_t, int, int) ;
+
+/* filenames */
+#define MPIO_FILENAME_LEN 129
+typedef BYTE mpio_filename_t[MPIO_FILENAME_LEN];
+
#ifndef NULL
#define NULL 0
#endif
@@ -106,6 +114,8 @@ typedef struct {
#define MPIO_ERR_READING_FILE -5
#define MPIO_ERR_PERMISSION_DENIED -6
#define MPIO_ERR_WRITING_FILE -7
+/* internal errors, occur when UI has errors! */
+#define MPIO_ERR_INT_STRING_INVALID -101
/* get formatted information, about the MPIO player */
@@ -166,6 +176,12 @@ typedef struct {
int fat_nums; /* # of FATs */
BYTE * fat; /* *real FAT (like in block allocation :-) */
+ /* how many physical blocks are available
+ * for internal memory is this value equal to max_cluster
+ */
+ int max_blocks;
+ BYTE * spare;
+
/* seems to be a fixed size according to the
Samsung documentation */
BYTE dir[DIR_SIZE]; /* file index */