home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff387.lzh / ExtFuncProc / ExtFuncProc.h < prev    next >
C/C++ Source or Header  |  1990-10-22  |  2KB  |  55 lines

  1.  
  2. #ifndef EXTFUNCPROC_H
  3. #define EXTFUNCPROC_H
  4.  
  5. /*
  6. **    $Filename: extfuncproc.h $
  7. **    $Release:  1.1
  8. **
  9. **
  10. **
  11. **    (C) Copyright 1990  Goetz Mueller
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_PORTS_H
  16. #include <exec/ports.h>
  17. #endif !EXEC_PORTS_H
  18.  
  19. struct ExtFuncPort {
  20.    struct MsgPort efp_MsgPort;         /* Exec-Message-Port */
  21.    UWORD efp_MatchWord;                /* 0x4AFC */
  22.    struct ExtFuncPort *efp_MatchTag;   /* Pointer to start of structure */
  23. };
  24.  
  25. #define EFP_PORTNAME    "ExtFuncPort"  /* Name of Port */
  26. #define EFP_MATCHWORD   0x4AFC         /* illegel Opcode to identify */
  27.  
  28. struct ExtFuncMessage {
  29.    struct Message efm_Msg;             /* Exec-Message */
  30.    UBYTE *efm_LibName;                 /* Name of library to be opened */
  31.    ULONG efm_LibVersion;               /* Version of library */
  32.    WORD  efm_LibVectorOffset;          /* Entry in function table */
  33.    ULONG efm_ArgD0;                    /* Function arguments */
  34.    ULONG efm_ArgD1;
  35.    ULONG efm_ArgD2;
  36.    ULONG efm_ArgD3;
  37.    ULONG efm_ArgD4;
  38.    ULONG efm_ArgD5;
  39.    ULONG efm_ArgD6;
  40.    ULONG efm_ArgD7;
  41.    ULONG efm_ArgA0;
  42.    ULONG efm_ArgA1;
  43.    ULONG efm_ArgA2;
  44.    ULONG efm_ArgA3;
  45.    ULONG efm_ArgA4;
  46.    ULONG efm_ArgA5;
  47.    ULONG efm_Result;                   /* Function result (D0) */
  48.    ULONG efm_Result2;                  /* IoErr() of dos.library calls */
  49.    ULONG efm_Error;                    /* Error before function starts
  50.                                           e.g.  Can't open library */
  51. };
  52.  
  53. #endif /* EXTFUNCPROC_H */
  54.  
  55.