⛏️ index : haiku.git

/*
 * Copyright (c) 1999-2000, Eric Moon.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions, and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions, and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * 3. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */


// cortex_defs.h
// * PURPOSE
//   Preprocessor stuff for the Cortex toolkit.
//
// * NOTES
//   To place the Cortex classes in a namespace of your
//   choosing, set the preprocessor variable CORTEX_NAMESPACE
//   to whatever string you want.
//
//   Message 'namespaces' are defined here as well.
//
// * HISTORY
//   e.moon		25jun99		Begun
#ifndef CORTEX_DEFS_H
#define CORTEX_DEFS_H


#include <SupportDefs.h>

// namespace support
#ifdef CORTEX_NAMESPACE
	#define __BEGIN_CORTEX_NAMESPACE namespace CORTEX_NAMESPACE {
	#define __END_CORTEX_NAMESPACE }
	#define __USE_CORTEX_NAMESPACE using namespace CORTEX_NAMESPACE;
	#define __CORTEX_NAMESPACE__ CORTEX_NAMESPACE::
#else
	#define CORTEX_NAMESPACE
	#define __BEGIN_CORTEX_NAMESPACE
	#define __END_CORTEX_NAMESPACE
	#define __USE_CORTEX_NAMESPACE
	#define __CORTEX_NAMESPACE__
#endif

#define TOUCH(x) ((void)(x))

// message 'what' code base values

const uint32 NodeManager_message_base			= 'NMaA';
const uint32 NodeManager_int_message_base		= 'Nm_A';
const uint32 NodeGroup_message_base				= 'NGrA';
const uint32 NodeRef_message_base				= 'NReA';
const uint32 NodeSyncThread_message_base		= 'NStA';

const uint32 RouteApp_message_base				= 'RoAA';
const uint32 RouteWindow_message_base			= 'RoWA';
const uint32 DiagramView_message_base			= 'DiVA';
const uint32 MediaRoutingView_message_base		= 'RoVA';

const uint32 TransportWindow_message_base		= 'TrWA';
const uint32 TransportView_message_base			= 'TrVA';

const uint32 ValControl_message_base			= 'VcnA';

const uint32 Observable_message_base			= 'ObTA';
const uint32 Observer_message_base				= 'Ob_A';

const uint32 AddOnHostApp_message_base 			= 'NahA';

const uint32 RouteAppNodeManager_message_base	= 'RMaA';																

const uint32 InfoView_message_base				= 'InVA';

const uint32 ParameterWindow_message_base		= 'PaWA';

#endif	// CORTEX_DEFS_H