home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR503.W96 / VM.AP_ / VM.AP
Text File  |  1995-06-26  |  1KB  |  80 lines

  1. /***
  2. *
  3. *   Vm.api
  4. *
  5. *   C language definitions for the Clipper VM API
  6. *
  7. *   Copyright (c) 1992-1995, Computer Associates International, Inc.
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14. #ifndef _VM_API
  15.  
  16.    #define _VM_API
  17.  
  18.    #ifdef __cplusplus
  19.       extern "C" {
  20.    #endif
  21.  
  22.    #ifndef _CLIPDEFS_H
  23.       #include "clipdefs.h"
  24.    #endif
  25.  
  26.  
  27.    /*
  28.    *
  29.    * Standard
  30.    *
  31.    */
  32.    HANDLE _xvalloc(USHORT size, USHORT flags);
  33.    void   _xvfree (HANDLE h);
  34.  
  35.    HANDLE _xvrealloc(HANDLE h, USHORT size, USHORT flags);
  36.  
  37.    FARP   _xvlock  (HANDLE h);
  38.    void   _xvunlock(HANDLE h);
  39.  
  40.  
  41.    /*
  42.    *
  43.    * Wire
  44.    *
  45.    */
  46.    FARP _xvwire  (HANDLE h);
  47.    void _xvunwire(HANDLE h);
  48.  
  49.  
  50.    /*
  51.    *
  52.    * State
  53.    *
  54.    */
  55.    USHORT _xvlockcount(HANDLE h);
  56.    USHORT _xvsize     (HANDLE h);
  57.  
  58.  
  59.    /*
  60.    *
  61.    * API VM Heap
  62.    *
  63.    */
  64.    HANDLE _xvheapnew    (USHORT size);
  65.    void   _xvheapdestroy(HANDLE h);
  66.  
  67.    HANDLE _xvheapresize(HANDLE h, USHORT size);
  68.  
  69.    USHORT _xvheapalloc(HANDLE h, USHORT size);
  70.    void   _xvheapfree (HANDLE h, USHORT offset);
  71.  
  72.    FARP   _xvheaplock  (HANDLE h, USHORT offset);
  73.    void   _xvheapunlock(HANDLE h, USHORT offset);
  74.  
  75.    #ifdef __cplusplus
  76.       }
  77.    #endif
  78.  
  79. #endif
  80.