home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
PROTO212.ZIP
/
EXAMPLE.ZIP
/
XSYS.NAH
< prev
next >
Wrap
Text File
|
1992-01-19
|
3KB
|
125 lines
/*~14/03/91 00.10.22! xsys_init N */
/*
Initialise subsystem XSYS.
This function is called once.
bla bla bla.
Return -1 if not successfull
*/
int xsys_init(
int memsize) /* Amount of memory allocated to xsys */
/*~14/03/91 00.10.22! xsys_end N */
/*
Terminate use of subsystem XSYS.
This function frees all buffers and completes any pending operation.
After it has been called, xsys_init may be call again.
*/
void xsys_end(
void)
/*~14/03/91 00.11.00! xsys_transact N */
/*
Perform one transaction interactivly.
The function returns only when transaction is secure.
*/
int xsys_transact(
void)
/*~14/03/91 00.11.00! xsys_undo N */
/*
Undo the last transaction.
This function must be called only in this and this and this
situation.
Return -1 if transaction can't be undone.
*/
int xsys_undo(
void)
/*~14/03/91 00.12.10! xsys_batch N */
/*
Perform one transaction without prompting the user.
This function assumed a yes to each questions.
The function returns immediatly without waiting for
the background process to fully complete the transaction. See
function xsys_flush().
*/
int xsys_batch(
void)
/*~14/03/91 00.12.10! xsys_flush N */
/*
Complete any pending transactions.
This function must be called only in this and this and this
situation.
Return the number of transactions that has been completed.
*/
int xsys_flush(
void)
/*~23/03/91 15.36.24! xsys_init R */
/*
Initialise subsystem XSYS.
This function is called once.
bla bla bla.
Return -1 if not successfull
*/
int xsys_init(
int memsize) /* Amount of memory allocated to xsys */
/*~23/03/91 15.36.24! xsys_end R */
/*
Terminate use of subsystem XSYS.
This function frees all buffers and completes any pending operation.
After it has been called, xsys_init may be call again.
*/
void xsys_end(
void)
/*~23/03/91 15.36.56! xsys_transact R */
/*
Perform one transaction interactivly.
The function returns only when transaction is secure.
*/
int xsys_transact(
void)
/*~23/03/91 15.36.56! xsys_undo R */
/*
Undo the last transaction.
This function must be called only in this and this and this
situation.
Return -1 if transaction can't be undone.
*/
int xsys_undo(
void)
/*~23/03/91 15.37.06! xsys_batch R */
/*
Perform one transaction without prompting the user.
This function assumed a yes to each questions.
The function returns immediatly without waiting for
the background process to fully complete the transaction. See
function xsys_flush().
*/
int xsys_batch(
void)
/*~23/03/91 15.37.06! xsys_flush R */
/*
Complete any pending transactions.
This function must be called only in this and this and this
situation.
Return the number of transactions that has been completed.
*/
int xsys_flush(
void)