2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
10 #include <aros/debug.h>
12 #include <dos/dosextens.h>
13 #include <proto/nvdisk.h>
17 #include LC_LIBDEFS_FILE
19 /*****************************************************************************
22 #include <libraries/nonvolatile.h>
24 AROS_LH3(BOOL
, DeleteNV
,
28 AROS_LHA(STRPTR
, appName
, A0
),
29 AROS_LHA(STRPTR
, itemName
, A1
),
30 AROS_LHA(BOOL
, killRequesters
, D1
),
34 struct Library
*, nvBase
, 8, Nonvolatile
)
38 Delete a piece of data in the nonvolatile storage.
42 appName -- the application owning the data to be deleted; maximum
44 itemName -- name of the data to be deleted; maximum length 31
45 killRequesters -- if set to TRUE no system requesters will be displayed
46 during the deletion operation; if set to FALSE, system
47 requesters will be allowed to be displayed
51 Success / failure indicator.
55 The 'appName' and 'itemName' strings may NOT include the characters
66 ******************************************************************************/
71 struct Process
*me
= (struct Process
*)FindTask(NULL
);
72 APTR oldReq
= me
->pr_WindowPtr
;
75 D(bug("Entering DeleteNV()\n"));
77 if(appName
== NULL
|| itemName
== NULL
)
80 if(strpbrk(appName
, ":/") != NULL
||
81 strpbrk(itemName
, ":/") != NULL
)
85 me
->pr_WindowPtr
= (APTR
)-1;
87 D(bug("Calling DeleteData()\n"));
89 result
= DeleteNVDData(appName
, itemName
);
92 me
->pr_WindowPtr
= oldReq
;