author: bocianu email@example.com
This library provides an easy interface to store so called APPKEYS or cookies on SD card of your fujinet device.
Those tiny data blobs can be used by applications to store some data, like configuration, keys, tokens on the device itself.
They are not public, and persistent on your device, until you will remove them manually from your SD card.
Maximum size of single cookie is 64 bytes.
This library is a part of 'blibs' - set of custom Mad-Pascal libraries.
|Structure used to retrieve cookie from storage|
|Structure used to set cookie info in Open Command|
procedure InitCookie(creator: word; app, key: byte);
Inits cookie storage params, and sets unique filename based on provided ID_keys. Must be called at least once, before any Set or Get command is issued.
function SetCookie(val: pointer; vlength: word):byte;
Stores new cookie value.
function GetCookie(val: pointer):byte;
Restores cookie value from device, to buffer.
Size of received data is returned in cookie.len field.