Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / KernelLand / Modules / Storage / LVM / lvm.h
index 0d0a252..e406a9b 100644 (file)
 
 // === TYPES ===
 typedef struct sLVM_Vol        tLVM_Vol;
+typedef struct sLVM_Format tLVM_Format;
+
+// === STRUCTURES ===
+struct sLVM_Format
+{
+       tLVM_Format     *Next;
+       const char      *Name;
+        int    (*CountSubvolumes)(tLVM_Vol *Volume, void *FirstBlockData);
+       void    (*PopulateSubvolumes)(tLVM_Vol *Volume, void *FirstBlockData);
+};
 
 // === FUNCTIONS ===
 extern size_t  LVM_int_ReadVolume(tLVM_Vol *Volume, Uint64 BlockNum, size_t BlockCount, void *Dest);
@@ -20,5 +30,8 @@ extern size_t LVM_int_WriteVolume(tLVM_Vol *Volume, Uint64 BlockNum, size_t Bloc
 // --- Subvolume Management ---
 extern void    LVM_int_SetSubvolume_Anon(tLVM_Vol *Volume, int Index, Uint64 FirstBlock, Uint64 LastBlock);
 
+// --- Global Fromats ---
+extern tLVM_Format     gLVM_MBRType;
+
 #endif
 

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