1 /* Automatically generated header! Do not edit! */
    2 
    3 #ifndef _PPCINLINE_CAMD_H
    4 #define _PPCINLINE_CAMD_H
    5 
    6 #ifndef __PPCINLINE_MACROS_H
    7 #include <ppcinline/macros.h>
    8 #endif /* !__PPCINLINE_MACROS_H */
    9 
   10 #ifndef CAMD_BASE_NAME
   11 #define CAMD_BASE_NAME CamdBase
   12 #endif /* !CAMD_BASE_NAME */
   13 
   14 #define NextMidi(__p0) \
   15 	LP1(66, struct MidiNode *, NextMidi, \
   16 		struct MidiNode *, __p0, a0, \
   17 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   18 
   19 #define StartClusterNotify(__p0) \
   20 	LP1NR(222, StartClusterNotify, \
   21 		struct ClusterNotifyNode *, __p0, a0, \
   22 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   23 
   24 #define GetMidiLinkAttrsA(__p0, __p1) \
   25 	LP2(102, ULONG , GetMidiLinkAttrsA, \
   26 		struct MidiLink *, __p0, a0, \
   27 		CONST struct TagItem *, __p1, a1, \
   28 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   29 
   30 #define PutSysEx(__p0, __p1) \
   31 	LP2NR(156, PutSysEx, \
   32 		struct MidiLink *, __p0, a0, \
   33 		UBYTE *, __p1, a1, \
   34 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   35 
   36 #define GetMidiAttrsA(__p0, __p1) \
   37 	LP2(60, ULONG , GetMidiAttrsA, \
   38 		struct MidiNode *, __p0, a0, \
   39 		CONST struct TagItem *, __p1, a1, \
   40 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   41 
   42 #define MidiLinkConnected(__p0) \
   43 	LP1(120, BOOL , MidiLinkConnected, \
   44 		struct MidiLink *, __p0, a0, \
   45 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   46 
   47 #define OpenMidiDevice(__p0) \
   48 	LP1(204, struct MidiDeviceData *, OpenMidiDevice, \
   49 		UBYTE *, __p0, a0, \
   50 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   51 
   52 #define DeleteMidi(__p0) \
   53 	LP1NR(48, DeleteMidi, \
   54 		struct MidiNode *, __p0, a0, \
   55 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   56 
   57 #define MidiMsgType(__p0) \
   58 	LP1(186, WORD , MidiMsgType, \
   59 		MidiMsg *, __p0, a0, \
   60 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   61 
   62 #define GetSysEx(__p0, __p1, __p2) \
   63 	LP3(162, ULONG , GetSysEx, \
   64 		struct MidiNode *, __p0, a0, \
   65 		UBYTE *, __p1, a1, \
   66 		ULONG , __p2, d0, \
   67 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   68 
   69 #define SetMidiLinkAttrsA(__p0, __p1) \
   70 	LP2(96, BOOL , SetMidiLinkAttrsA, \
   71 		struct MidiLink *, __p0, a0, \
   72 		CONST struct TagItem *, __p1, a1, \
   73 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   74 
   75 #define FindMidi(__p0) \
   76 	LP1(72, struct MidiNode *, FindMidi, \
   77 		CONST_STRPTR , __p0, a1, \
   78 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   79 
   80 #define RemoveMidiLink(__p0) \
   81 	LP1NR(90, RemoveMidiLink, \
   82 		struct MidiLink *, __p0, a0, \
   83 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   84 
   85 #define AddMidiLinkA(__p0, __p1, __p2) \
   86 	LP3(84, struct MidiLink *, AddMidiLinkA, \
   87 		struct MidiNode *, __p0, a0, \
   88 		LONG , __p1, d0, \
   89 		CONST struct TagItem *, __p2, a1, \
   90 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   91 
   92 #define LockCAMD(__p0) \
   93 	LP1(30, APTR , LockCAMD, \
   94 		ULONG , __p0, d0, \
   95 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
   96 
   97 #define NextClusterLink(__p0, __p1, __p2) \
   98 	LP3(108, struct MidiLink *, NextClusterLink, \
   99 		struct MidiCluster *, __p0, a0, \
  100 		struct MidiLink *, __p1, a1, \
  101 		LONG , __p2, d0, \
  102 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  103 
  104 #define MidiMsgLen(__p0) \
  105 	LP1(192, WORD , MidiMsgLen, \
  106 		ULONG , __p0, d0, \
  107 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  108 
  109 #define CreateMidiA(__p0) \
  110 	LP1(42, struct MidiNode *, CreateMidiA, \
  111 		CONST struct TagItem *, __p0, a0, \
  112 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  113 
  114 #define SkipSysEx(__p0) \
  115 	LP1NR(174, SkipSysEx, \
  116 		struct MidiNode *, __p0, a0, \
  117 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  118 
  119 #define ParseMidi(__p0, __p1, __p2) \
  120 	LP3NR(198, ParseMidi, \
  121 		struct MidiLink *, __p0, a0, \
  122 		UBYTE *, __p1, a1, \
  123 		ULONG , __p2, d0, \
  124 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  125 
  126 #define SetMidiAttrsA(__p0, __p1) \
  127 	LP2(54, BOOL , SetMidiAttrsA, \
  128 		struct MidiNode *, __p0, a0, \
  129 		CONST struct TagItem *, __p1, a1, \
  130 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  131 
  132 #define FlushMidi(__p0) \
  133 	LP1NR(78, FlushMidi, \
  134 		struct MidiNode *, __p0, a0, \
  135 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  136 
  137 #define GetMidiErr(__p0) \
  138 	LP1(180, UBYTE , GetMidiErr, \
  139 		struct MidiNode *, __p0, a0, \
  140 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  141 
  142 #define QuerySysEx(__p0) \
  143 	LP1(168, ULONG , QuerySysEx, \
  144 		struct MidiNode *, __p0, a0, \
  145 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  146 
  147 #define CloseMidiDevice(__p0) \
  148 	LP1NR(210, CloseMidiDevice, \
  149 		struct MidiDeviceData *, __p0, a0, \
  150 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  151 
  152 #define RethinkCAMD() \
  153 	LP0(216, int , RethinkCAMD, \
  154 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  155 
  156 #define NextMidiLink(__p0, __p1, __p2) \
  157 	LP3(114, struct MidiLink *, NextMidiLink, \
  158 		struct MidiNode *, __p0, a0, \
  159 		struct MidiLink *, __p1, a1, \
  160 		LONG , __p2, d0, \
  161 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  162 
  163 #define FindCluster(__p0) \
  164 	LP1(132, struct MidiCluster *, FindCluster, \
  165 		CONST_STRPTR , __p0, a0, \
  166 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  167 
  168 #define PutMidi(__p0, __p1) \
  169 	LP2NR(138, PutMidi, \
  170 		struct MidiLink *, __p0, a0, \
  171 		ULONG , __p1, d0, \
  172 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  173 
  174 #define GetMidi(__p0, __p1) \
  175 	LP2(144, BOOL , GetMidi, \
  176 		struct MidiNode *, __p0, a0, \
  177 		MidiMsg *, __p1, a1, \
  178 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  179 
  180 #define UnlockCAMD(__p0) \
  181 	LP1NR(36, UnlockCAMD, \
  182 		APTR , __p0, a0, \
  183 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  184 
  185 #define WaitMidi(__p0, __p1) \
  186 	LP2(150, BOOL , WaitMidi, \
  187 		struct MidiNode *, __p0, a0, \
  188 		MidiMsg *, __p1, a1, \
  189 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  190 
  191 #define EndClusterNotify(__p0) \
  192 	LP1NR(228, EndClusterNotify, \
  193 		struct ClusterNotifyNode *, __p0, a0, \
  194 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  195 
  196 #define NextCluster(__p0) \
  197 	LP1(126, struct MidiCluster *, NextCluster, \
  198 		struct MidiCluster *, __p0, a0, \
  199 		, CAMD_BASE_NAME, 0, 0, 0, 0, 0, 0)
  200 
  201 #if defined(USE_INLINE_STDARG) && !defined(__STRICT_ANSI__)
  202 
  203 #include <stdarg.h>
  204 
  205 #define SetMidiLinkAttrs(__p0, ...) \
  206 	({ULONG _tags[] = { __VA_ARGS__ }; \
  207 	SetMidiLinkAttrsA(__p0, (CONST struct TagItem *)_tags);})
  208 
  209 #define GetMidiAttrs(__p0, ...) \
  210 	({ULONG _tags[] = { __VA_ARGS__ }; \
  211 	GetMidiAttrsA(__p0, (CONST struct TagItem *)_tags);})
  212 
  213 #define AddMidiLink(__p0, __p1, ...) \
  214 	({ULONG _tags[] = { __VA_ARGS__ }; \
  215 	AddMidiLinkA(__p0, __p1, (CONST struct TagItem *)_tags);})
  216 
  217 #define SetMidiAttrs(__p0, ...) \
  218 	({ULONG _tags[] = { __VA_ARGS__ }; \
  219 	SetMidiAttrsA(__p0, (CONST struct TagItem *)_tags);})
  220 
  221 #define CreateMidi(...) \
  222 	({ULONG _tags[] = { __VA_ARGS__ }; \
  223 	CreateMidiA((CONST struct TagItem *)_tags);})
  224 
  225 #define GetMidiLinkAttrs(__p0, ...) \
  226 	({ULONG _tags[] = { __VA_ARGS__ }; \
  227 	GetMidiLinkAttrsA(__p0, (CONST struct TagItem *)_tags);})
  228 
  229 #endif
  230 
  231 #endif /* !_PPCINLINE_CAMD_H */