home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Amiga / Applications / Musique / PlayMF_VU.lha / PianoMeter / Source / stubs.c < prev   
C/C++ Source or Header  |  1998-04-05  |  1KB  |  48 lines

  1.  
  2. #include "PianoMeter.h"
  3. #include "PianoMeter_protos.h"
  4.  
  5.  
  6. LONG DoCustomClassMethod (struct IClass *cl, Msg msg)
  7. {
  8.     LONG (__asm *disp)(register __a0 Class *, register __a2 Object *, register __a1 Msg msg);
  9.     disp = cl->cl_Dispatcher.h_Entry;
  10.     return (*disp)(cl, (Object *) cl, msg);
  11. }
  12.  
  13.  
  14. /*-----------------------*/
  15. /* Standard Exit routine */
  16. /*-----------------------*/
  17.  
  18. void __stdargs _XCEXIT(LONG lcode)
  19. {
  20.     Message("Task wants to exit, return code %ld\nHolding task!", NULL, lcode);
  21.     Wait(0);
  22. }
  23.  
  24.  
  25. /*-------------------*/
  26. /* CAM Library stubs */
  27. /*-------------------*/
  28.  
  29. struct MidiNode *CreateMidi(Tag tag, ...)
  30. {
  31.     return CreateMidiA((struct TagItem *)&tag );
  32. }
  33.  
  34. BOOL SetMidiAttrs(struct MidiNode *mi, Tag tag, ...)
  35. {
  36.     return SetMidiAttrsA(mi, (struct TagItem *)&tag );
  37. }
  38.  
  39. struct MidiLink *AddMidiLink(struct MidiNode *mi, LONG type, Tag tag, ...)
  40. {
  41.     return AddMidiLinkA(mi, type, (struct TagItem *)&tag );
  42. }
  43.  
  44. BOOL SetMidiLinkAttrs(struct MidiLink *mi, Tag tag, ...)
  45. {
  46.     return SetMidiLinkAttrsA(mi, (struct TagItem *)&tag );
  47. }
  48.