btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / cortex / cortex_defs.h
bloba0cc72bdb1d8f87c99c20ff1a7c6595e4f5fcb0f
1 /*
2 * Copyright (c) 1999-2000, Eric Moon.
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions, and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions, and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * 3. The name of the author may not be used to endorse or promote products
17 * derived from this software without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
27 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 // cortex_defs.h
33 // * PURPOSE
34 // Preprocessor stuff for the Cortex toolkit.
36 // * NOTES
37 // To place the Cortex classes in a namespace of your
38 // choosing, set the preprocessor variable CORTEX_NAMESPACE
39 // to whatever string you want.
41 // Message 'namespaces' are defined here as well.
43 // * HISTORY
44 // e.moon 25jun99 Begun
45 #ifndef CORTEX_DEFS_H
46 #define CORTEX_DEFS_H
49 #include <SupportDefs.h>
51 // namespace support
52 #ifdef CORTEX_NAMESPACE
53 #define __BEGIN_CORTEX_NAMESPACE namespace CORTEX_NAMESPACE {
54 #define __END_CORTEX_NAMESPACE }
55 #define __USE_CORTEX_NAMESPACE using namespace CORTEX_NAMESPACE;
56 #define __CORTEX_NAMESPACE__ CORTEX_NAMESPACE::
57 #else
58 #define CORTEX_NAMESPACE
59 #define __BEGIN_CORTEX_NAMESPACE
60 #define __END_CORTEX_NAMESPACE
61 #define __USE_CORTEX_NAMESPACE
62 #define __CORTEX_NAMESPACE__
63 #endif
65 #define TOUCH(x) ((void)(x))
67 // message 'what' code base values
69 const uint32 NodeManager_message_base = 'NMaA';
70 const uint32 NodeManager_int_message_base = 'Nm_A';
71 const uint32 NodeGroup_message_base = 'NGrA';
72 const uint32 NodeRef_message_base = 'NReA';
73 const uint32 NodeSyncThread_message_base = 'NStA';
75 const uint32 RouteApp_message_base = 'RoAA';
76 const uint32 RouteWindow_message_base = 'RoWA';
77 const uint32 DiagramView_message_base = 'DiVA';
78 const uint32 MediaRoutingView_message_base = 'RoVA';
80 const uint32 TransportWindow_message_base = 'TrWA';
81 const uint32 TransportView_message_base = 'TrVA';
83 const uint32 ValControl_message_base = 'VcnA';
85 const uint32 Observable_message_base = 'ObTA';
86 const uint32 Observer_message_base = 'Ob_A';
88 const uint32 AddOnHostApp_message_base = 'NahA';
90 const uint32 RouteAppNodeManager_message_base = 'RMaA';
92 const uint32 InfoView_message_base = 'InVA';
94 const uint32 ParameterWindow_message_base = 'PaWA';
96 #endif // CORTEX_DEFS_H