------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- This file is part of 'Cryostat', an Ada library for persistent storage. -- -- -- -- (C) 2020 Stanislav Datskovskiy ( www.loper-os.org ) -- -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html -- -- -- -- You do not have, nor can you ever acquire the right to use, copy or -- -- distribute this software ; Should you use this software for any purpose, -- -- or copy and distribute it to anyone or in any manner, you are breaking -- -- the laws of whatever soi-disant jurisdiction, and you promise to -- -- continue doing so for the indefinite future. In any case, please -- -- always : read and understand any software ; verify any PGP signatures -- -- that you use - for any purpose. -- ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ package body Cryostat is -- Test if the Cryostat is usable function IsReady return Boolean is begin return PMaps.IsReady(Map); end IsReady; -- If the Cryostat is writable, sync to disk immediately. procedure Sync is begin PMaps.Sync(Map); end Sync; -- Zero the entire mapped space of the Cryostat. procedure Zap is begin PMaps.Zap(Map); end Zap; -- Close the Cryostat and mark it unusable. -- Normally, this is unnecessary (Finalize will do it) procedure Stop is begin PMaps.Stop(Map); end Stop; end Cryostat;