home *** CD-ROM | disk | FTP | other *** search
/ Video Toaster 4.2 / Video Toaster v4.2.iso / programs / documentation / lightwave / sdk / include / plug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-01  |  1020 b   |  48 lines

  1. /*
  2.  * LWSDK Header File
  3.  * Copyright 1995  NewTek, Inc.
  4.  */
  5. #ifndef TOOLS_PLUG_H
  6. #define TOOLS_PLUG_H
  7.  
  8. typedef void *          GlobalFunc (const char *, int);
  9. #define GFUSE_TRANSIENT         0
  10. #define GFUSE_ACQUIRE           1
  11. #define GFUSE_RELEASE           2
  12. typedef struct st_GlobalService {
  13.     const char      *id;
  14.     void            *data;
  15. } GlobalService;
  16. typedef int     ActivateFunc (long             version,
  17. GlobalFunc      *global,
  18. void            *local,
  19. void            *serverData);
  20.  
  21. #define AFUNC_OK                0
  22. #define AFUNC_BADVERSION        1
  23. #define AFUNC_BADGLOBAL         2
  24. #define AFUNC_BADLOCAL          3
  25. #ifdef __SASC
  26.  #define XCALL_(t)      t __saveds
  27.  #define XCALL_INIT
  28. #endif
  29. #ifdef AZTEC_C
  30.  #define XCALL_(t)      t
  31.  #ifdef _LARGE_DATA
  32.   #define XCALL_INIT
  33.  #else
  34.   #define XCALL_INIT    geta4()
  35.   extern void           geta4 (void);
  36.  #endif
  37. #endif
  38. #ifdef _WIN32
  39.  #define XCALL_(t)      t
  40.  #define XCALL_INIT
  41. #endif
  42. #ifdef _XGL
  43.  #define XCALL_(t)      t
  44.  #define XCALL_INIT
  45. #endif
  46.  
  47. #endif
  48.