home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / PROGRAM / PROTO212.ZIP / EXAMPLE.ZIP / XSYS.NAP < prev    next >
Text File  |  1992-01-24  |  2KB  |  70 lines

  1. /*~23/03/91 15.36.24! source1.c */
  2.  
  3. /*~xsys_init! source1.c */
  4. /*
  5.     Initialise subsystem XSYS.
  6.     This function is called once.
  7.     bla bla bla.
  8.  
  9.     Return -1 if not successfull
  10. */
  11. int xsys_init(
  12.     int memsize)    /* Amount of memory allocated to xsys */
  13.  
  14. /*~xsys_end! source1.c */
  15. /*
  16.     Terminate use of subsystem XSYS.
  17.  
  18.     This function frees all buffers and completes any pending operation.
  19.     After it has been called, xsys_init may be call again.
  20. */
  21. void xsys_end(
  22.     void)
  23. /*~23/03/91 15.36.56! source2.c */
  24.  
  25. /*~xsys_transact! source2.c */
  26. /*
  27.     Perform one transaction interactivly.
  28.  
  29.     The function returns only when transaction is secure.
  30. */
  31. int xsys_transact(
  32.     void)
  33.  
  34. /*~xsys_undo! source2.c */
  35. /*
  36.     Undo the last transaction.
  37.  
  38.     This function must be called only in this and this and this
  39.     situation.
  40.  
  41.     Return -1 if transaction can't be undone.
  42. */
  43. int xsys_undo(
  44.     void)
  45. /*~23/03/91 15.37.06! source3.c */
  46.  
  47. /*~xsys_batch! source3.c */
  48. /*
  49.     Perform one transaction without prompting the user.
  50.     This function assumed a yes to each questions.
  51.  
  52.     The function returns immediatly without waiting for
  53.     the background process to fully complete the transaction. See
  54.     function xsys_flush().
  55. */
  56. int xsys_batch(
  57.     void)
  58.  
  59. /*~xsys_flush! source3.c */
  60. /*
  61.     Complete any pending transactions.
  62.  
  63.     This function must be called only in this and this and this
  64.     situation.
  65.  
  66.     Return the number of transactions that has been completed.
  67. */
  68. int xsys_flush(
  69.     void)
  70.