diff options
author | germeier <germeier> | 2002-09-13 13:07:04 +0000 |
---|---|---|
committer | germeier <germeier> | 2002-09-13 13:07:04 +0000 |
commit | c0c5a77e8220f9d1bcdb46f46527d0ef0ca50359 (patch) | |
tree | 760832d44fbfbeae0095743feaab71c044f2fa8f /libmpio/mpio.h | |
parent | b1d98f797dec067cb43b9e27f1245f4be796d351 (diff) | |
download | mpiosh-c0c5a77e8220f9d1bcdb46f46527d0ef0ca50359.tar.gz mpiosh-c0c5a77e8220f9d1bcdb46f46527d0ef0ca50359.tar.bz2 mpiosh-c0c5a77e8220f9d1bcdb46f46527d0ef0ca50359.zip |
added mpio_sync to libmpio
use mpio_sync in mpiosh
added code to handle aborts in libmpio
Diffstat (limited to 'libmpio/mpio.h')
-rw-r--r-- | libmpio/mpio.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libmpio/mpio.h b/libmpio/mpio.h index c373ce2..8e52527 100644 --- a/libmpio/mpio.h +++ b/libmpio/mpio.h @@ -1,7 +1,7 @@ /* -*- linux-c -*- */ /* - * $Id: mpio.h,v 1.1 2002/08/28 16:10:51 salmoon Exp $ + * $Id: mpio.h,v 1.2 2002/09/13 13:07:05 germeier Exp $ * * Library for USB MPIO-* * @@ -78,12 +78,18 @@ int mpio_file_get(mpio_t *, mpio_mem_t, BYTE *, BYTE (*)(int, int)); int mpio_file_put(mpio_t *, mpio_mem_t, BYTE *, BYTE (*)(int, int)); /* context, memory bank, filename, callback */ -int mpio_file_del(mpio_t *, mpio_mem_t, BYTE *, BYTE (*)(int, int)); - +int mpio_file_del(mpio_t *, mpio_mem_t, BYTE *, BYTE (*)(int, int)); /* context, memory bank, callback */ int mpio_memory_format(mpio_t *, mpio_mem_t, BYTE (*)(int, int)); +/* mpio_sync has to be called after every set of mpio_file_{del,put} + * operations to write the current state of FAT and root directory. + * This is done explicitly to avoid writing these informations to often + * and thereby exhausting the SmartMedia chips + */ +/* context, memory bank */ +int mpio_sync(mpio_t *, mpio_mem_t); /* * timeline: |