version 1.75.2.4, 2007/09/27 03:01:13
|
version 1.87, 2012/07/30 09:23:47
|
|
|
/* |
//%LICENSE//////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// |
|
// Licensed to The Open Group (TOG) under one or more contributor license |
|
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
|
// this work for additional information regarding copyright ownership. |
|
// Each contributor licenses this file to you under the OpenPegasus Open |
|
// Source License; you may not use this file except in compliance with the |
|
// License. |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Permission is hereby granted, free of charge, to any person obtaining a |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// copy of this software and associated documentation files (the "Software"), |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
// to deal in the Software without restriction, including without limitation |
// IBM Corp.; EMC Corporation, The Open Group. |
// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// and/or sell copies of the Software, and to permit persons to whom the |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Software is furnished to do so, subject to the following conditions: |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
|
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
// The above copyright notice and this permission notice shall be included |
// of this software and associated documentation files (the "Software"), to |
// in all copies or substantial portions of the Software. |
// deal in the Software without restriction, including without limitation the |
|
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
// sell copies of the Software, and to permit persons to whom the Software is |
|
// furnished to do so, subject to the following conditions: |
|
// | // |
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
// | // |
//============================================================================== |
////////////////////////////////////////////////////////////////////////// |
|
/* |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
*/ | */ |
|
|
# include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h> | # include <Pegasus/Common/Platform_AIX_RS_IBMCXX.h> |
#elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC) | #elif defined (PEGASUS_PLATFORM_HPUX_PARISC_ACC) |
# include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h> | # include <Pegasus/Common/Platform_HPUX_PARISC_ACC.h> |
|
#elif defined (PEGASUS_PLATFORM_HPUX_PARISC_GNU) |
|
# include <Pegasus/Common/Platform_HPUX_PARISC_GNU.h> |
#elif defined (PEGASUS_PLATFORM_HPUX_IA64_ACC) | #elif defined (PEGASUS_PLATFORM_HPUX_IA64_ACC) |
# include <Pegasus/Common/Platform_HPUX_IA64_ACC.h> | # include <Pegasus/Common/Platform_HPUX_IA64_ACC.h> |
|
#elif defined (PEGASUS_PLATFORM_HPUX_IA64_GNU) |
|
# include <Pegasus/Common/Platform_HPUX_IA64_GNU.h> |
#elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) | #elif defined (PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) |
# include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h> | # include <Pegasus/Common/Platform_TRU64_ALPHA_DECCXX.h> |
#elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU) | #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_GNU) |
# include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h> | # include <Pegasus/Common/Platform_SOLARIS_SPARC_GNU.h> |
#elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_CC) | #elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
# include <Pegasus/Common/Platform_SOLARIS_SPARC_CC.h> | # include <Pegasus/Common/Platform_SOLARIS_SPARC_CC.h> |
|
#elif defined (PEGASUS_PLATFORM_SOLARIS_SPARC_64_CC) |
|
# include <Pegasus/Common/Platform_SOLARIS_SPARC_CC_64.h> |
|
#elif defined (PEGASUS_PLATFORM_SOLARIS_IX86_CC) |
|
# include <Pegasus/Common/Platform_SOLARIS_IX86_CC.h> |
|
#elif defined (PEGASUS_PLATFORM_SOLARIS_X86_64_CC) |
|
# include <Pegasus/Common/Platform_SOLARIS_X86_64_CC.h> |
#elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) | #elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
# include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h> | # include <Pegasus/Common/Platform_ZOS_ZSERIES_IBM.h> |
|
#elif defined (PEGASUS_PLATFORM_ZOS_ZSERIES64_IBM) |
|
# include <Pegasus/Common/Platform_ZOS_ZSERIES64_IBM.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_IA64_GNU) |
# include <Pegasus/Common/Platform_LINUX_IA64_GNU.h> | # include <Pegasus/Common/Platform_LINUX_IA64_GNU.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_X86_64_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_X86_64_GNU) |
|
|
# include <Pegasus/Common/Platform_LINUX_PPC_GNU.h> | # include <Pegasus/Common/Platform_LINUX_PPC_GNU.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_PPC64_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_PPC64_GNU) |
# include <Pegasus/Common/Platform_LINUX_PPC64_GNU.h> | # include <Pegasus/Common/Platform_LINUX_PPC64_GNU.h> |
|
#elif defined (PEGASUS_PLATFORM_LINUX_PPC_E500_GNU) |
|
# include <Pegasus/Common/Platform_LINUX_PPC_E500_GNU.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES_GNU) |
# include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h> | # include <Pegasus/Common/Platform_LINUX_ZSERIES_GNU.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_ZSERIES64_GNU) |
|
|
# include <Pegasus/Common/Platform_VMS_IA64_DECCXX.h> | # include <Pegasus/Common/Platform_VMS_IA64_DECCXX.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_XSCALE_GNU) |
# include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h> | # include <Pegasus/Common/Platform_LINUX_XSCALE_GNU.h> |
#elif defined (PEGASUS_PLATFORM_VXWORKS_PENTIUM_GNU) |
#elif defined (PEGASUS_PLATFORM_LINUX_X86_64_CLANG) |
# include <Pegasus/Common/Platform_VXWORKS_PENTIUM_GNU.h> |
# include <Pegasus/Common/Platform_LINUX_X86_64_CLANG.h> |
#elif defined (PEGASUS_PLATFORM_VXWORKS_XSCALE_GNU) |
#elif defined (PEGASUS_PLATFORM_LINUX_IX86_CLANG) |
# include <Pegasus/Common/Platform_VXWORKS_XSCALE_GNU.h> |
# include <Pegasus/Common/Platform_LINUX_IX86_CLANG.h> |
#else | #else |
# error "<Pegasus/Common/Config.h>: Unsupported Platform" | # error "<Pegasus/Common/Config.h>: Unsupported Platform" |
#endif | #endif |
|
|
# define PEGASUS_EXPLICIT /* empty */ | # define PEGASUS_EXPLICIT /* empty */ |
#endif | #endif |
| |
#ifdef PEGASUS_HAVE_MUTABLE |
|
#ifdef __cplusplus |
|
# define PEGASUS_MUTABLE mutable |
|
#else |
|
# define PEGASUS_MUTABLE /* empty */ |
|
#endif |
|
#else |
|
# define PEGASUS_MUTABLE /* empty */ |
|
#endif |
|
|
|
#ifndef PEGASUS_HAVE_FOR_SCOPE | #ifndef PEGASUS_HAVE_FOR_SCOPE |
# define for if (0) ; else for | # define for if (0) ; else for |
#endif | #endif |
|
|
#ifdef __cplusplus | #ifdef __cplusplus |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
typedef bool Boolean; // If platform w/o bool, add flag and include Boolean.h |
typedef bool Boolean; |
typedef unsigned char Uint8; | typedef unsigned char Uint8; |
typedef signed char Sint8; | typedef signed char Sint8; |
typedef unsigned short Uint16; | typedef unsigned short Uint16; |
|
|
# define PEGASUS_FORMAT(A1, A2) /* not implemented */ | # define PEGASUS_FORMAT(A1, A2) /* not implemented */ |
#endif | #endif |
| |
// ATTN-MEB: remove this when done! |
/* |
#define PEGTRACE \ |
** PEGASUS_INITIAL_THREADSTACK_SIZE |
printf("PEGTRACE: %s(%d): %s\n", __FILE__, __LINE__, __FUNCTION__) |
** |
|
** This macro is used to restrict the maximal stack size used per thread. |
|
** Since OpenPegasus makes heavy use of multi-threading reducing the system |
|
** default is espescially important on embedded systems. |
|
** |
|
** This value can be overridden platform specific by defining the macro in |
|
** the corresponding PEGASUS_PLATFORM_*.h file. |
|
*/ |
|
#ifndef PEGASUS_INITIAL_THREADSTACK_SIZE |
|
# define PEGASUS_INITIAL_THREADSTACK_SIZE 256*1024 |
|
#endif |
|
|
|
/* |
|
** PEGASUS_PG_OBJECTMANAGER_ELEMENTNAME |
|
** |
|
** This macro is used to set ElementName property on the PG_ObjectManager |
|
** instance. This value is also used in SLP announcment for service-hi-name. |
|
** |
|
** This value can be overridden platform specific by defining the macro in |
|
** the corresponding PEGASUS_PLATFORM_*.h file. |
|
*/ |
|
#ifndef PEGASUS_PG_OBJECTMANAGER_ELEMENTNAME |
|
# ifdef PEGASUS_FLAVOR |
|
# define PEGASUS_PG_OBJECTMANAGER_ELEMENTNAME PEGASUS_FLAVOR"-pegasus" |
|
# else |
|
# define PEGASUS_PG_OBJECTMANAGER_ELEMENTNAME "Pegasus" |
|
# endif |
|
#endif |
|
|
|
/* |
|
** PEGASUS_INSTANCEID_GLOBAL_PREFIX |
|
** This macro is used to create the Name property on the PG_ObjectManager |
|
** instance. This value is also used in SLP announcement for service-id. |
|
** |
|
** This value can be overridden platform specific by defining the macro in |
|
** the corresponding PEGASUS_PLATFORM_*.h file. |
|
*/ |
|
#ifndef PEGASUS_INSTANCEID_GLOBAL_PREFIX |
|
# ifdef PEGASUS_FLAVOR |
|
# define PEGASUS_INSTANCEID_GLOBAL_PREFIX "PG-"PEGASUS_FLAVOR |
|
# else |
|
# define PEGASUS_INSTANCEID_GLOBAL_PREFIX "PG" |
|
# endif |
|
#endif |
| |
#endif /* Pegasus_Config_h */ | #endif /* Pegasus_Config_h */ |