home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 20 / AACD20.BIN / AACD / Programming / AmIDE / developer / example / sasc.module.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-04  |  3.1 KB  |  117 lines

  1. /*
  2. **  $Id: sasc.module.h,v 1.2 2001/03/04 18:26:49 damato Exp $
  3. **
  4. **  AmIDE - Amiga Integrated Development Environment
  5. **          API Functions
  6. **
  7. **  Copyright (C) 1998-2001 by
  8. **
  9. **  LightSpeed Communications GbR
  10. **
  11. **  Jens Langner                        Jens Troeger
  12. **  Bergstrasse 68                      i4/182 Dornoch Tce
  13. **  01069 Dresden                       Highgate Hill, QLD, 4101
  14. **  Germany                             Australia
  15. **  <damato@light-speed.de>             <savage@light-speed.de>
  16. **
  17. **  This program is free software; you can redistribute it and/or modify
  18. **  it under the terms of the GNU General Public License as published by
  19. **  the Free Software Foundation; either version 2 of the License, or
  20. **  any later version.
  21. **
  22. **  This program is distributed in the hope that it will be useful,
  23. **  but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25. **  GNU General Public License for more details.
  26. **
  27. **  You should have received a copy of the GNU General Public License
  28. **  along with this program; if not, write to the Free Software
  29. **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  30. **
  31. */
  32.  
  33. #ifndef _SASC_MODULE_H_
  34. #define _SASC_MODULE_H_
  35.  
  36. #include <clib/debug_protos.h>
  37. #include <proto/intuition.h>
  38.  
  39. #include "compiler.h"
  40.  
  41. // globales debug makro
  42. #define DEBUG_MAKRO_NOLF { kprintf("0x%08lx # "__FUNC__, (ULONG)FindTask(NULL)); }
  43. #define DEBUG_MAKRO_LF   { kprintf("\n", NULL); }
  44. #define DEBUG_MAKRO      { kprintf("0x%08lx # "__FUNC__"\n", (ULONG)FindTask(NULL)); }
  45.  
  46. /*
  47. ** Define value for the library definitions
  48. */
  49.  
  50. #define API_VERS  "API 1.0"
  51. #define AUTHOR    "Jens Langner"
  52. #define COMPILER  "SAS/C v6.58+"
  53. #define LIBNAME   "sasc.module"
  54. #define LIBVER    " v0.1 (04.03.2001)"
  55.  
  56. /*
  57. ** Private Dummy-IDs
  58. */
  59.  
  60. #define MOD_ATTR_Dummy  (TAG_USER + 0x4AFE0000)
  61. #define MOD_METH_Dummy  (TAG_USER + 0x2FFE0000)
  62.  
  63. /*
  64. ** private Method-IDs
  65. */
  66.  
  67. #define MODM_Dummy          (MOD_METH_Dummy + 0x00000100)
  68. #define MODM_Logfile_Read   (MODM_Dummy + 1)
  69. #define MODM_Msg_Parse      (MODM_Dummy + 2)
  70. #define MODM_Msg_Insert     (MODM_Dummy + 3)
  71.  
  72. /*
  73. ** private Attribute-IDs
  74. */
  75.  
  76. #define MODA_Dummy            (MOD_ATTR_Dummy + 0x00000100)
  77. #define MODA_MSG_BAR          (MODA_Dummy + 1)
  78. #define MODA_MSG_WARNING      (MODA_Dummy + 2)
  79. #define MODA_MSG_NOTE         (MODA_Dummy + 3)
  80. #define MODA_MSG_WARNING_TXT  (MODA_Dummy + 4)
  81. #define MODA_MSG_ERROR        (MODA_Dummy + 5)
  82. #define MODA_MSG_COMPILER_P1  (MODA_Dummy + 6)
  83. #define MODA_MSG_COMPILER_P2  (MODA_Dummy + 7)
  84. #define MODA_MSG_OPTIMIZER    (MODA_Dummy + 8)
  85. #define MODA_MSG_DEFAULT      (MODA_Dummy + 9)
  86.  
  87. /*
  88. ** Message-Structures
  89. */
  90.  
  91. extern struct MODS_Msg_Insert
  92. {
  93.   ULONG MethodID;
  94.   ULONG msg_type;
  95. };
  96.  
  97. /*
  98. ** Prototypes
  99. */
  100.  
  101. extern struct IClass *cl;
  102.  
  103. extern struct MODS_InstData
  104. {
  105.   Object  *parent_obj;
  106.   char    logfile[256];
  107.   long    log_position;
  108.   LONG    msg_type;
  109.   STRPTR  msg_text;
  110. };
  111.  
  112. extern SAVEDS ASM ULONG MODULE_Dispatcher(REG(a0) Class *cl, REG(a2) Object *obj, REG(a1) Msg msg);
  113.  
  114. extern SAVEDS ASM struct IClass *AmIDE_API_GetClass( void );
  115.  
  116. #endif /* _SASC_MODULE_H_ */
  117.