2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
6 /*****************************************************************************
14 #include <aros/debug.h>
16 #include <libraries/nonvolatile.h>
17 #include <dos/dosextens.h>
18 #include <proto/nvdisk.h>
23 AROS_LH3(BOOL
, DeleteNV
,
27 AROS_LHA(STRPTR
, appName
, A0
),
28 AROS_LHA(STRPTR
, itemName
, A1
),
29 AROS_LHA(BOOL
, killRequesters
, D1
),
33 struct Library
*, nvBase
, 8, Nonvolatile
)
37 Delete a piece of data in the nonvolatile storage.
41 appName -- the application owning the data to be deleted; maximum
43 itemName -- name of the data to be deleted; maximum length 31
44 killRequesters -- if set to TRUE no system requesters will be displayed
45 during the deletion operation; if set to FALSE, system
46 requesters will be allowed to be displayed
50 Success / failure indicator.
54 The 'appName' and 'itemName' strings may NOT include the characters
65 ******************************************************************************/
70 struct Process
*me
= (struct Process
*)FindTask(NULL
);
71 APTR oldReq
= me
->pr_WindowPtr
;
74 D(bug("Entering DeleteNV()\n"));
76 if(appName
== NULL
|| itemName
== NULL
)
79 if(strpbrk(appName
, ":/") != NULL
||
80 strpbrk(itemName
, ":/") != NULL
)
84 me
->pr_WindowPtr
= (APTR
)-1;
86 D(bug("Calling DeleteData()\n"));
88 result
= DeleteData(appName
, itemName
);
91 me
->pr_WindowPtr
= oldReq
;