|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Macros | |
| #define | __NOLIBBASE__ |
| #define | NONVOLATILE_BASE_NAME libbase |
Functions | |
| void | _isnonvolatile (void) |
| void | _storenvdata (void) |
| void | _getcopynv (void) |
| void | _freenvdata (void) |
| void | _getnvlist (void) |
| void | rinonvolatilelib_libinit (void) |
| void | rinonvolatilelib_libfinit (void) |
| static ULONG | libinit_c (void) |
| init: open nonvolatile.library (any version). | |
| static void | libfinit_c (void) |
| finit: close nonvolatile.library if it is open. | |
| static ULONG | isnonvolatile_c (void) |
| IsNonvolatile: true if nonvolatile.library is open. | |
| static ULONG | storenvdata_c (CONST_STRPTR app, CONST_STRPTR item, CONST_APTR data, ULONG len) |
| StoreNVData AppName,ItemName,data,byte_length: store data in nonvolatile memory (Amiga mode only). | |
| static ULONG | getcopynv_c (CONST_STRPTR app, CONST_STRPTR item) |
| GetCopyNV(AppName,ItemName): a copy of an item of nonvolatile memory (Amiga mode only). | |
| static ULONG | freenvdata_c (APTR data) |
| FreeNVData APTR: free the data of GetCopyNV or GetNVList. | |
| static ULONG | getnvlist_c (CONST_STRPTR app) |
| GetNVList(appname): the list of the items of an application in nonvolatile memory. | |
Variables | |
| static struct Library * | libbase |
| static const char | libname [] = "nonvolatile.library" |
| #define __NOLIBBASE__ |
| #define NONVOLATILE_BASE_NAME libbase |
| void _freenvdata | ( | void | ) |
| void _getcopynv | ( | void | ) |
| void _getnvlist | ( | void | ) |
| void _isnonvolatile | ( | void | ) |
| void _storenvdata | ( | void | ) |
|
static |
FreeNVData APTR: free the data of GetCopyNV or GetNVList.
| data | d0: the data |
|
static |
GetCopyNV(AppName,ItemName): a copy of an item of nonvolatile memory (Amiga mode only).
GetCopyNV with killRequesters -1.
| app | d0: the application name |
| item | d1: the item name |
|
static |
GetNVList(appname): the list of the items of an application in nonvolatile memory.
GetNVList with killRequesters -1.
| app | d0: the application name |
|
static |
IsNonvolatile: true if nonvolatile.library is open.
SNE d0:EXT.w d0 - a Blitz truth value as a word (-1/0 in the low word, the thunk keeps the upper word of d0); not BB_BOOL, which is a long.
|
static |
finit: close nonvolatile.library if it is open.
libbase stays set (no defect: it is the last call, see the head).
|
static |
init: open nonvolatile.library (any version).
| void rinonvolatilelib_libfinit | ( | void | ) |
| void rinonvolatilelib_libinit | ( | void | ) |
|
static |
StoreNVData AppName,ItemName,data,byte_length: store data in nonvolatile memory (Amiga mode only).
Deletes the item first (DeleteNV with killRequesters 0, always, its result ignored: room for the new version in a small NVRAM, no defect; an item that cannot be stored again is lost, #763), then StoreNV with the length in tens of bytes, rounded up, and killRequesters -1. The length is divided as a long (fixed, #764: the original's DIVU.w #10 overflows for 655360 bytes and more, StoreNV then gets the low word of the length, +1 if the high word is not 0).
| app | d0: the application name |
| item | d1: the item name |
| data | d2: the data |
| len | d3: its length in bytes |
|
static |
|
static |