#ifndef _VAST_

#define  ERROR_BASE   4000
#define  ERROR_PARAMETER                    (ERROR_BASE +  1)
#define  ERROR_MEMORY_ALLOCATION            (ERROR_BASE +  2)
#define  ERROR_IMAGE_INITIALIZATION         (ERROR_BASE +  3)
#define  ERROR_IMAGE_PARSE                  (ERROR_BASE +  4)
#define  ERROR_INVALID_IMAGE_HANDLE         (ERROR_BASE +  5)
#define  ERROR_CALLIN_NOTSUPPORTED_IN_IMAGE (ERROR_BASE +  6)
#define  ERROR_PARAMETER_DATA               (ERROR_BASE +  7)
#define  ERROR_IMAGE_NOT_ACTIVE             (ERROR_BASE +  8)

#ifdef ABT_SYSTEM
#   define  _abt_linkage_ _System
#else
#   define  _abt_linkage_
#endif

typedef unsigned long  VAST_HANDLE;
typedef long           VAST_STATUS;
typedef long           VAST_RESULT;

void _abt_linkage_ vastart (char *imageName, VAST_HANDLE *vhandle, VAST_STATUS *vastrc);
void _abt_linkage_ varun   (VAST_HANDLE *vhandle, char *receiver, char *selector,
                     int ioarea_length, void *ioarea,
                     VAST_STATUS *vastrc, VAST_RESULT *vares);
void _abt_linkage_ vastop  (VAST_HANDLE *vhandle, VAST_STATUS *vastrc);

#define _VAST_
#endif
