grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / camd / midimsgtype.c
blob8ba8717744c028a2da1d750ca06db2f7b1d49e62
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include "camd_intern.h"
12 /*****************************************************************************
14 NAME */
16 AROS_LH1(WORD, MidiMsgType,
18 /* SYNOPSIS */
19 AROS_LHA(MidiMsg *, msg, A0),
21 /* LOCATION */
22 struct CamdBase *, CamdBase, 31, Camd)
24 /* FUNCTION
25 Return the type of a message (see <midi/camd.h>). sysex messages
26 returns -1.
28 INPUTS
29 msg - midimessage.
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 HISTORY
45 2001-01-12 ksvalast first created
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 if(msg->mm_Status==0xf0 || msg->mm_Status==0xf7) return -1;
53 return MidiMsgType_status_data1(msg->mm_Status,msg->mm_Data1);
55 AROS_LIBFUNC_EXIT