Subversion Repositories svn.mios

Rev

Rev 15 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
44 tk 1
// $Id: main.h 44 2008-01-30 21:39:30Z tk $
2
/*
3
 * MIDI Router project
4
 *
5
 * ==========================================================================
6
 *
7
 *  Copyright 2006 Thorsten Klose (tk@midibox.org)
8
 *  Licensed for personal non-commercial use only.
9
 *  All other rights reserved.
10
 *
11
 * ==========================================================================
12
 */
13
 
14
#ifndef _MAIN_H
15
#define _MAIN_H
16
 
17
/////////////////////////////////////////////////////////////////////////////
18
// Global definitions
19
/////////////////////////////////////////////////////////////////////////////
20
 
21
 
22
/////////////////////////////////////////////////////////////////////////////
23
// Global Types
24
/////////////////////////////////////////////////////////////////////////////
25
 
26
// status of application
27
typedef union {
28
  struct {
29
    unsigned ALL:8;
30
  };
31
  struct {
32
    unsigned DISPLAY_UPDATE_REQ:1;  // requests a display update
33
    unsigned PANIC_REQ:1;           // requests "panic" function (send Note off to MBSEQ/MBFM/MBSID)
34
  };
35
} app_flags_t;
36
 
37
 
38
/////////////////////////////////////////////////////////////////////////////
39
// Export global variables
40
/////////////////////////////////////////////////////////////////////////////
41
extern app_flags_t app_flags;
42
 
43
#endif /* _MAIN_H */