X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FStorage%2FLVM%2Finclude%2Flvm.h;h=c106f771f4239fc635aa3bde69abd6a506cb9ceb;hb=11dbd684e9a3d907d43d71a3145205f1a86992fb;hp=3115b61932abeaa098e09450800a9a901f96d5e1;hpb=b3bb6d8aa7d46606a0532e2317c296da54b440d8;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Storage/LVM/include/lvm.h b/KernelLand/Modules/Storage/LVM/include/lvm.h index 3115b619..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, 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