home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / sonido / mod-0.000 / mod-0 / mod / message.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-09  |  676 b   |  38 lines

  1. /*
  2.  *  message.h - Types and constants used for message-passing.
  3.  *
  4.  *  (C) 1994 Mikael Nordqvist (d91mn@efd.lth.se, mech@df.lth.se)
  5.  */
  6.  
  7. #ifndef _MESSAGE_H
  8. #define _MESSAGE_H
  9.  
  10. #define MESSAGE_JUMPPATTERN   1
  11. #define MESSAGE_RESTART       2
  12. #define MESSAGE_CHANGESPEED   3
  13. #define MESSAGE_STOP          4
  14.  
  15. #define MESSAGE_PRINTLINE    10
  16. #define MESSAGE_PRINTSPEED   11
  17.  
  18. #define MESSAGE_DONE         98
  19. #define MESSAGE_EXIT         99
  20.  
  21. #define MESSAGE_NOP         120
  22.  
  23. struct mod_message {
  24.     char type;
  25.     
  26.     union {
  27.     unsigned char songpos;
  28.     unsigned char speed;
  29.     } a1;
  30.     
  31.     union {
  32.     unsigned char line;
  33.     unsigned char tempo;
  34.     } a2;
  35. };
  36.  
  37. #endif /* _MESSAGE_H */
  38.