version 1.64, 2006/09/05 17:13:09
|
version 1.82.2.5, 2013/10/14 16:25:58
|
|
|
//%2006//////////////////////////////////////////////////////////////////////// |
//%LICENSE//////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Licensed to The Open Group (TOG) under one or more contributor license |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
// this work for additional information regarding copyright ownership. |
// IBM Corp.; EMC Corporation, The Open Group. |
// Each contributor licenses this file to you under the OpenPegasus Open |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// Source License; you may not use this file except in compliance with the |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// License. |
// 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 |
|
// of this software and associated documentation files (the "Software"), to |
|
// 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 |
|
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
|
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
|
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
|
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
// | // |
//============================================================================== |
// Permission is hereby granted, free of charge, to any person obtaining a |
|
// copy of this software and associated documentation files (the "Software"), |
|
// to 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 all copies or substantial portions of the Software. |
|
// |
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
|
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
|
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
// |
|
////////////////////////////////////////////////////////////////////////// |
|
/* |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
|
*/ |
| |
#ifndef Pegasus_Config_h | #ifndef Pegasus_Config_h |
#define Pegasus_Config_h | #define Pegasus_Config_h |
| |
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) | #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
# include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h> | # include <Pegasus/Common/Platform_WIN32_IX86_MSVC.h> |
|
#elif defined(PEGASUS_PLATFORM_WIN64_IA64_MSVC) |
|
# include <Pegasus/Common/Platform_WIN64_IA64_MSVC.h> |
|
#elif defined(PEGASUS_PLATFORM_WIN64_X86_64_MSVC) |
|
# include <Pegasus/Common/Platform_WIN64_X86_64_MSVC.h> |
#elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU) | #elif defined (PEGASUS_PLATFORM_LINUX_IX86_GNU) |
# include <Pegasus/Common/Platform_LINUX_IX86_GNU.h> | # include <Pegasus/Common/Platform_LINUX_IX86_GNU.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_PASE_ISERIES_IBMCXX) |
|
#include <Pegasus/Common/Platform_PASE_ISERIES_IBMCXX.h> |
#elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX) | #elif defined (PEGASUS_PLATFORM_AIX_RS_IBMCXX) |
# 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_LINUX_ZSERIES64_GNU.h> | # include <Pegasus/Common/Platform_LINUX_ZSERIES64_GNU.h> |
#elif defined (__OS400__) |
|
# if !defined (PEGASUS_PLATFORM_OS400_ISERIES_IBM) |
|
# define PEGASUS_PLATFORM_OS400_ISERIES_IBM |
|
# endif |
|
# include <Pegasus/Common/Platform_OS400_ISERIES_IBM.h> |
|
#elif defined (PEGASUS_PLATFORM_DARWIN_PPC_GNU) | #elif defined (PEGASUS_PLATFORM_DARWIN_PPC_GNU) |
# include <Pegasus/Common/Platform_DARWIN_PPC_GNU.h> | # include <Pegasus/Common/Platform_DARWIN_PPC_GNU.h> |
|
#elif defined (PEGASUS_PLATFORM_DARWIN_IX86_GNU) |
|
# include <Pegasus/Common/Platform_DARWIN_IX86_GNU.h> |
#elif defined (PEGASUS_PLATFORM_VMS_ALPHA_DECCXX) | #elif defined (PEGASUS_PLATFORM_VMS_ALPHA_DECCXX) |
# include <Pegasus/Common/Platform_VMS_ALPHA_DECCXX.h> | # include <Pegasus/Common/Platform_VMS_ALPHA_DECCXX.h> |
#elif defined (PEGASUS_PLATFORM_VMS_IA64_DECCXX) | #elif defined (PEGASUS_PLATFORM_VMS_IA64_DECCXX) |
# 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_LINUX_AARCH64_GNU) |
|
# include <Pegasus/Common/Platform_LINUX_AARCH64_GNU.h> |
|
#elif defined (PEGASUS_PLATFORM_LINUX_X86_64_CLANG) |
|
# include <Pegasus/Common/Platform_LINUX_X86_64_CLANG.h> |
|
#elif defined (PEGASUS_PLATFORM_LINUX_IX86_CLANG) |
|
# include <Pegasus/Common/Platform_LINUX_IX86_CLANG.h> |
|
#elif defined (PEGASUS_PLATFORM_LINUX_SH4_GNU) |
|
# include <Pegasus/Common/Platform_LINUX_SH4_GNU.h> |
#else | #else |
# error "<Pegasus/Common/Config.h>: Unsupported Platform" | # error "<Pegasus/Common/Config.h>: Unsupported Platform" |
#endif | #endif |
| |
|
/* |
|
|
|
|
//<<< Sun Apr 6 19:28:00 2003 mdd >>> |
|
// | // |
// COMPILER Checks | // COMPILER Checks |
// | // |
// This is to allow a check for GCC > 3.2 | // This is to allow a check for GCC > 3.2 |
// It needs to be the first thing we check because the next lines load | // It needs to be the first thing we check because the next lines load |
// further source files | // further source files |
|
*/ |
| |
#if defined(__GNUC__) | #if defined(__GNUC__) |
#define GCC_VERSION (__GNUC__ * 10000 \ | #define GCC_VERSION (__GNUC__ * 10000 \ |
+ __GNUC_MINOR__ * 100 \ | + __GNUC_MINOR__ * 100 \ |
+ __GNUC_PATCHLEVEL__) | + __GNUC_PATCHLEVEL__) |
| |
|
/* |
// To test for GCC > 3.2.0: | // To test for GCC > 3.2.0: |
// #if GCC_VERSION > 30200 | // #if GCC_VERSION > 30200 |
|
*/ |
| |
#endif | #endif |
| |
|
|
#endif | #endif |
| |
#ifdef PEGASUS_HAVE_NAMESPACES | #ifdef PEGASUS_HAVE_NAMESPACES |
|
#ifdef __cplusplus |
# define PEGASUS_NAMESPACE_BEGIN namespace Pegasus { | # define PEGASUS_NAMESPACE_BEGIN namespace Pegasus { |
# define PEGASUS_NAMESPACE_END } | # define PEGASUS_NAMESPACE_END } |
# define PEGASUS_NAMESPACE(X) Pegasus::X | # define PEGASUS_NAMESPACE(X) Pegasus::X |
|
|
# define PEGASUS_USING_STD | # define PEGASUS_USING_STD |
# define PEGASUS_USING_PEGASUS | # define PEGASUS_USING_PEGASUS |
#endif | #endif |
|
#else |
|
# define PEGASUS_NAMESPACE_BEGIN /* empty */ |
|
# define PEGASUS_NAMESPACE_END /* empty */ |
|
# define PEGASUS_NAMESPACE(X) X |
|
# define PEGASUS_STD(X) X |
|
# define PEGASUS_USING_STD |
|
# define PEGASUS_USING_PEGASUS |
|
#endif |
| |
#ifdef PEGASUS_HAVE_EXPLICIT | #ifdef PEGASUS_HAVE_EXPLICIT |
|
#ifdef __cplusplus |
# define PEGASUS_EXPLICIT explicit | # define PEGASUS_EXPLICIT explicit |
#else | #else |
# define PEGASUS_EXPLICIT /* empty */ | # define PEGASUS_EXPLICIT /* empty */ |
#endif | #endif |
|
|
#ifdef PEGASUS_HAVE_MUTABLE |
|
# define PEGASUS_MUTABLE mutable |
|
#else | #else |
# define PEGASUS_MUTABLE /* empty */ |
# define PEGASUS_EXPLICIT /* empty */ |
#endif | #endif |
| |
#ifndef PEGASUS_HAVE_FOR_SCOPE | #ifndef PEGASUS_HAVE_FOR_SCOPE |
|
|
#endif | #endif |
| |
#ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION | #ifdef PEGASUS_HAVE_TEMPLATE_SPECIALIZATION |
|
#ifdef __cplusplus |
# define PEGASUS_TEMPLATE_SPECIALIZATION template <> | # define PEGASUS_TEMPLATE_SPECIALIZATION template <> |
#else | #else |
# define PEGASUS_TEMPLATE_SPECIALIZATION | # define PEGASUS_TEMPLATE_SPECIALIZATION |
#endif | #endif |
|
#else |
|
# define PEGASUS_TEMPLATE_SPECIALIZATION |
|
#endif |
| |
#ifdef PEGASUS_HAVE_IOS_BINARY | #ifdef PEGASUS_HAVE_IOS_BINARY |
#if defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM) |
#ifdef __cplusplus |
#define PEGASUS_IOS_BINARY ,std::ios::binary,PEGASUS_STD(_CCSID_T(1208)) |
|
#else |
|
#define PEGASUS_IOS_BINARY ,std::ios::binary | #define PEGASUS_IOS_BINARY ,std::ios::binary |
#endif |
|
#define PEGASUS_OR_IOS_BINARY | std::ios::binary | #define PEGASUS_OR_IOS_BINARY | std::ios::binary |
#else | #else |
#define PEGASUS_IOS_BINARY /* empty */ | #define PEGASUS_IOS_BINARY /* empty */ |
#define PEGASUS_OR_IOS_BINARY /* empty */ | #define PEGASUS_OR_IOS_BINARY /* empty */ |
#endif | #endif |
|
#else |
|
#define PEGASUS_IOS_BINARY /* empty */ |
|
#define PEGASUS_OR_IOS_BINARY /* empty */ |
|
#endif |
| |
#ifndef PEGASUS_SINT64_LITERAL | #ifndef PEGASUS_SINT64_LITERAL |
#define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL)) | #define PEGASUS_SINT64_LITERAL(X) (Sint64 (X##LL)) |
|
|
#define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL)) | #define PEGASUS_UINT64_LITERAL(X) (Uint64 (X##ULL)) |
#endif | #endif |
| |
// Used in printf and scanf conversion strings for Uint64 and Sint64 arguments |
/* Used in printf and scanf conversion strings for Uint64 and Sint64 args */ |
#ifndef PEGASUS_64BIT_CONVERSION_WIDTH | #ifndef PEGASUS_64BIT_CONVERSION_WIDTH |
#define PEGASUS_64BIT_CONVERSION_WIDTH "ll" | #define PEGASUS_64BIT_CONVERSION_WIDTH "ll" |
#endif | #endif |
| |
#ifndef PEGASUS_MAXHOSTNAMELEN | #ifndef PEGASUS_MAXHOSTNAMELEN |
|
# ifdef _POSIX_HOST_NAME_MAX |
|
# define PEGASUS_MAXHOSTNAMELEN _POSIX_HOST_NAME_MAX |
|
# else |
#define PEGASUS_MAXHOSTNAMELEN MAXHOSTNAMELEN | #define PEGASUS_MAXHOSTNAMELEN MAXHOSTNAMELEN |
#endif | #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; |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
#endif | #endif |
| |
|
|
|
/* |
|
*PEGASUS_UNREACHABLE implies unreachable code in pegasus. |
|
*Should be used in places where the control should not reached. |
|
*Please use in this way |
|
* PEGASUS_UNREACHABLE( expression;) |
|
*not in this way |
|
* PEGASUS_UNREACHABLE(expression); |
|
* |
|
*Though both are same, Former will prevent ;;(double semicolon) |
|
* |
|
*/ |
|
|
#ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS | #ifdef PEGASUS_SUPPRESS_UNREACHABLE_STATEMENTS |
# define PEGASUS_UNREACHABLE(CODE) | # define PEGASUS_UNREACHABLE(CODE) |
#else | #else |
|
# if defined(__clang__ ) |
|
# define PEGASUS_UNREACHABLE(CODE) __builtin_unreachable(); |
|
# elif defined(GCC_VERSION) |
|
# if GCC_VERSION >= 40500 //Unreachable supported only for gcc 4.5 and above |
|
# define PEGASUS_UNREACHABLE(CODE) __builtin_unreachable(); |
|
# else |
|
# define PEGASUS_UNREACHABLE(CODE) CODE |
|
# endif |
|
# elif defined(_MSC_VER) //PEGASUS_OS_TYPE_WINDOWS |
|
# define PEGASUS_UNREACHABLE(CODE) __assume(0); |
|
# else |
# define PEGASUS_UNREACHABLE(CODE) CODE | # define PEGASUS_UNREACHABLE(CODE) CODE |
#endif | #endif |
|
#endif |
|
|
|
/* |
|
**============================================================================== |
|
** |
|
** PEGASUS_FORMAT |
|
** |
|
** This macro allows the compiler to check the arguments to format |
|
** specifiers in the printf family of functions. For example, the following |
|
** enables format checking for the foo function. |
|
** |
|
** PEGASUS_FORMAT(1, 2) |
|
** void foo(const char* format, ...); |
|
** |
|
** On GCC, the following error is detected below (when using this macro). |
|
** |
|
** foo("%s %d", 99, "hello"); // mismatch specifiers! |
|
** |
|
**============================================================================== |
|
*/ |
|
|
|
#if defined(__GNUC__) && (__GNUC__ >= 4) |
|
# define PEGASUS_FORMAT(A1, A2) __attribute__((format (printf, A1, A2))) |
|
#else |
|
# define PEGASUS_FORMAT(A1, A2) /* not implemented */ |
|
#endif |
|
|
|
/* |
|
** PEGASUS_INITIAL_THREADSTACK_SIZE |
|
** |
|
** 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 |
| |
#ifdef PEGASUS_HAVE_EBCDIC |
/* |
# define PEGASUS_MAX_PRINTABLE_CHAR 255 |
** 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 | #else |
# define PEGASUS_MAX_PRINTABLE_CHAR 127 |
# define PEGASUS_INSTANCEID_GLOBAL_PREFIX "PG" |
|
# endif |
#endif | #endif |
| |
#endif /* Pegasus_Config_h */ | #endif /* Pegasus_Config_h */ |