xref: /haiku/src/apps/cortex/cortex_defs.h (revision 19ae20e67e91fc09cc9fc5c0e60e21e24e7a53eb)
1 /*
2  * Copyright (c) 1999-2000, Eric Moon.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions, and the following disclaimer.
11  *
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.
15  *
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.
18  *
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.
29  */
30 
31 
32 // cortex_defs.h
33 // * PURPOSE
34 //   Preprocessor stuff for the Cortex toolkit.
35 //
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.
40 //
41 //   Message 'namespaces' are defined here as well.
42 //
43 // * HISTORY
44 //   e.moon		25jun99		Begun
45 #ifndef CORTEX_DEFS_H
46 #define CORTEX_DEFS_H
47 
48 
49 #include <SupportDefs.h>
50 
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
64 
65 #define TOUCH(x) ((void)(x))
66 
67 // message 'what' code base values
68 
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';
74 
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';
79 
80 const uint32 TransportWindow_message_base		= 'TrWA';
81 const uint32 TransportView_message_base			= 'TrVA';
82 
83 const uint32 ValControl_message_base			= 'VcnA';
84 
85 const uint32 Observable_message_base			= 'ObTA';
86 const uint32 Observer_message_base				= 'Ob_A';
87 
88 const uint32 AddOnHostApp_message_base 			= 'NahA';
89 
90 const uint32 RouteAppNodeManager_message_base	= 'RMaA';
91 
92 const uint32 InfoView_message_base				= 'InVA';
93 
94 const uint32 ParameterWindow_message_base		= 'PaWA';
95 
96 #endif	// CORTEX_DEFS_H
97