home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / xbase / library / clipper / tts / tts_lib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-26  |  936 b   |  43 lines

  1.  
  2.  
  3. // result codes
  4.  
  5. #define BAD_PARAMS    1001
  6.  
  7.  
  8.  
  9. // _isavail()
  10. #define TTS_UNAVAILABLE 0x00
  11. #define TTS_AVAILABLE    0x01
  12. #define TTS_DISABLED    0xfd
  13.  
  14.  
  15. // _begin()
  16. #define OUT_O_DYNAMIC_WORKSPACE     0x96
  17. #define IMPLICIT_ACTIVE 0xfe
  18. /*  An implicit transaction was already active, it is now converted
  19. *   into an explicit transaction
  20. */
  21. #define EXPLICIT_ACTIVE 0xff
  22. /*  An explicit transaction was already active, it continues unaffected.
  23. */
  24.  
  25.  
  26. // _end( nRefNo )
  27. // #define TTS_DISABLED    0xfd    as above
  28. #define TTS_ENDED_RECORDS_LOCKED    0xfe
  29. /* can't roll back right now, since those records are locked. very rare */
  30. #define NO_TRANSACTION    0xff
  31.  
  32.  
  33. // _abort()
  34. // #define TTS_DISABLED    0xfd    as above
  35. // #define TTS_ENDED_RECORDS_LOCKED    0xfe    as above
  36. // #define NO_TRANSACTION    0xff    as above
  37.  
  38.  
  39. // _status()
  40. #define TRANSACTION_NOT_WRITTEN     0xff
  41. /* the transaction has yet to be written to the disk
  42. */
  43.