2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
6 #include <dos/dosextens.h>
7 #include <exec/lists.h>
8 #include <proto/exec.h>
9 #include <proto/nvdisk.h>
13 #include LC_LIBDEFS_FILE
15 /*****************************************************************************
18 #include <libraries/nonvolatile.h>
20 AROS_LH2(struct MinList
*, GetNVList
,
24 AROS_LHA(STRPTR
, appName
, A0
),
25 AROS_LHA(BOOL
, killRequesters
, D1
),
29 struct Library
*, nvBase
, 10, Nonvolatile
)
33 Returns a list of items allocated by application 'appName'.
37 appName -- the application the nonvolatile items of which to query
39 killRequesters -- if TRUE you make sure that no system requesters will be
40 displayed during the operation of this function
44 Pointer to a MinList of NVEntries which describes the items. Failure due to
45 lack of memory will be indicated by returning NULL.
49 The protection field should be examined using the field masks NVIF_DELETE
50 or by the bit definition NVIB_DELETE as the other bits are reserved for
59 FreeNVData(), SetNVProtection(), <libraries/nonvolatile.h>
63 ******************************************************************************/
68 struct Process
*me
= (struct Process
*)FindTask(NULL
);
69 APTR oldReq
= me
->pr_WindowPtr
;
75 if(strpbrk(appName
, ":/") != NULL
)
79 me
->pr_WindowPtr
= (APTR
)-1;
81 list
= GetNVDItemList(appName
);
84 me
->pr_WindowPtr
= oldReq
;