Modules/LVM - Fixed memory leak on cleanup
[tpg/acess2.git] / KernelLand / Modules / Storage / LVM / include / lvm.h
index 5576e8e..804843b 100644 (file)
@@ -16,12 +16,14 @@ struct sLVM_VolType
 {
        const char *Name;
 
-       int     (*Read)(void *, Uint64, size_t, void *);
-       int     (*Write)(void *, Uint64, size_t, const void *);
+        int    (*Read)(void *, Uint64, size_t, void *);
+        int    (*Write)(void *, Uint64, size_t, const void *);
+       void    (*Cleanup)(void *);
 };
 
 
-extern int     LVM_AddVolume(const tLVM_VolType *Type, const char *Name, void *Ptr, size_t BlockSize, size_t BlockCount);
+extern void    *LVM_AddVolume(const tLVM_VolType *Type, const char *Name, void *Ptr, size_t BlockSize, size_t BlockCount);
+extern void    LVM_DelVolume(void *Handle);
 
 #endif
 

UCC git Repository :: git.ucc.asn.au