DEFINITION MODULE OptNonvolatileL {"nonvolatile.library",-40};
(* 02-Apr-1994/bp *)

FROM SYSTEM IMPORT ADDRESS,LONGSET;
IMPORT R, d:NonvolatileD;

CONST
  nonvolatileName="nonvolatile.library";

VAR
  nonvolatileVersion:INTEGER;
  nonvolatileBase:d.NonvolatileBasePtr;


PROCEDURE(*40*) DeleteNV(
                 appName{R.A0}:d.StrPtr;
                 itemName{R.A1}:d.StrPtr;
                 killRequesters{R.D1}:BOOLEAN
                 ):BOOLEAN; CODE -48;

PROCEDURE(*40*) FreeNVData(
                 data{R.A0}:ADDRESS
                 ); CODE -36;

PROCEDURE(*40*) GetCopyNV(
                 appName{R.A0}:d.StrPtr;
                 itemName{R.A1}:d.StrPtr;
                 killRequesters{R.D1}:BOOLEAN
                 ):ADDRESS; CODE -30;

PROCEDURE(*40*) GetNVInfo(
                 killRequesters{R.D1}:BOOLEAN
                 ):d.NVInfoPtr; CODE -54;

PROCEDURE(*40*) GetNVList(
                 appName{R.A0}:d.StrPtr;
                 killRequesters{R.D1}:BOOLEAN
                 ):d.NVMinListPtr; CODE -60;

PROCEDURE(*40*) SetNVProtection(
                 appName{R.A0}:d.StrPtr;
                 itemName{R.A1}:d.StrPtr;
                 mask{R.D2}:LONGSET;
                 killRequesters{R.D1}:BOOLEAN
                 ):BOOLEAN; CODE -66;

PROCEDURE(*40*) StoreNV(
                 appName{R.A0}:d.StrPtr;
                 itemName{R.A1}:d.StrPtr;
                 data{R.A2}:ADDRESS;
                 length{R.D0}:LONGCARD;
                 killRequesters{R.D1}:BOOLEAN
                 ):CARDINAL; CODE -42;


END OptNonvolatileL.lib-40
