X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FLVM%2Finclude%2Flvm.h;h=c106f771f4239fc635aa3bde69abd6a506cb9ceb;hb=c8bd079f05637954fb0a177d24b7045c7c9609e1;hp=904a735b79c149ce4d0db9b5a02cfb48189b3cc1;hpb=2188ee53c02fc249c3f6ee8a08758e940024d754;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/LVM/include/lvm.h b/KernelLand/Modules/Storage/LVM/include/lvm.h index 904a735b..c106f771 100644 --- a/KernelLand/Modules/Storage/LVM/include/lvm.h +++ b/KernelLand/Modules/Storage/LVM/include/lvm.h @@ -10,10 +10,19 @@ #include -typedef int (*tLVM_ReadFcn)(void *, Uint64, size_t, void *); -typedef int (*tLVM_WriteFcn)(void *, Uint64, size_t, const void *); +typedef struct sLVM_VolType tLVM_VolType; -extern int LVM_AddVolume(const char *Name, void *Ptr, size_t BlockSize, tLVM_ReadFcn Read, tLVM_WriteFcn Write); +struct sLVM_VolType +{ + const char *Name; + + 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); #endif