Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ recovBox(lib) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

recovBox  —  C Library Procedures

NAME

RecovBox_IntObjType, RecovBox_InsertObj, RecovBox_InsertArray, RecovBox_DeleteObj, RecovBox_UpdateObj, RecovBox_ReturnObj, RecovBox_ReturnArray, RecovBox_ReturnContents, RecovBox_GetObjSize, RecovBox_MapType, RecovBox_MapObjectNum − Routines (actually macros) to add, delete, manipulate and view objects in non-volatile storage. 
 

SYNOPSIS

#include <recovBox.h>
ReturnStatus ∗
RecovBox_InitObjType(initArgsPtr)
ReturnStatus ∗
RecovBox_InsertObj(insertArgsPtr)
ReturnStatus ∗
RecovBox_InsertArray(insertArrayArgsPtr)
ReturnStatus ∗
RecovBox_DeleteObj(deleteArgsPtr)
ReturnStatus ∗
RecovBox_UpdateObj(updateArgsPtr)
ReturnStatus ∗
RecovBox_ReturnObj(returnObjArgsPtr)
ReturnStatus ∗
RecovBox_ReturnArray(returnArrayArgsPtr)
ReturnStatus ∗
RecovBox_ReturnContents(returnTableArgsPtr)
ReturnStatus ∗
RecovBox_GetObjSize(getObjSizeArgsPtr)
ReturnStatus ∗
RecovBox_MapType(mapTypeArgsPtr)
ReturnStatus ∗
RecovBox_MapObjectNum(mapObjectNumArgsPtr)
 

ARGUMENTS

Recov_InitObjTypeArgs ∗initArgsPtr   (in/out)
Pointer to structure containing information about new object type to be created. One field will return the new object type number.

Recov_InsertObjArgs ∗insertArgsPtr   (in/out)
Pointer to structure containing information about object to insert in box.

Recov_InsertArrayArgs ∗insertArrayArgsPtr   (in/out)
Pointer to structure containing information about set of objects to insert in box.  One field will return the new objects’ ID.

Recov_DeleteObjArgs ∗deleteArgsPtr   (in)
Pointer to structure containing information about the object to delete from the box.

Recov_UpdateObjArgs ∗updateArgsPtr   (in)
Pointer to structure containing information about the object to update and how to update it.

Recov_ReturnObjArgs ∗returnObjArgsPtr   (in/out)
Pointer to structure containing information about the object to return.  One field will return the object.

Recov_ReturnArrayArgs ∗returnArrayArgsPtr   (in/out)
Pointer to structure containing information about the type of objects to return. One field will contain the array of returned objects of the specified type number.

Recov_ReturnTableArgs ∗returnContentsArgsPtr   (in/out)
Pointer to structure containing information about how to return the table of contents for the box.  One field will return the table of contents.

Recov_GetObjectSizeArgs ∗getObjectSizeArgsPtr   (in/out)
Pointer to structure containing information about returning the size of the objects of a given type.  One field will be the returned size.

Recov_MapTypeArgs ∗mapTypeArgsPtr   (in/out)
Pointer to structure containing information about returning the real typeID for a given typeID used by an application.

Recov_MapObjectNumArgs ∗mapObjectNumArgsPtr   (in/out)
Pointer to structure containing information about returning the real object number for a given object number used by an application.  The real type ID must be specified in the structure.
 

DESCRIPTION

The recovery box will store sets of objects and preserve them across machine failure.  RecovBox_InitObjType() will initialize a new object type.  The structure parameter must be filled in with the object size and the maximum number of objects that will be allowed to exist at once.  See "recovBox.h" for a description of this structure and all other structure parameters to the routines described in this manual page.  The other routines make it possible to insert, update, and delete objects of a given type.  It is also possible to return the contents of an object, all the objects of a given type, or to return the table of contents of the recovery box.  For a description of the what the table of contents looks like, see "recovBox.h."  To make it possible for different processes to refer to the same types and objects without needing to know about their order of insertion, types can be initialized by an application with a special "application typeID," and likewise, when objects are inserted, they can be given special "application object numbers."  Then any application can ask what is the real typeID or real object number for a given application typeID or object number. 

Note that the kernel on the machine may already be using the recovery box, so that returning its table of contents may show object types already in use before the user has initialized any types. 
 

KEYWORDS

Recovery, non-volatile storage

Sprite version 1.0  —  January 13, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026