1 karl 1.39 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.11 //
|
3 karl 1.32 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.27 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.32 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.35 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.39 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.11 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
15 karl 1.12 // of this software and associated documentation files (the "Software"), to
16 // deal in the Software without restriction, including without limitation the
17 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
18 mike 1.11 // sell copies of the Software, and to permit persons to whom the Software is
19 // furnished to do so, subject to the following conditions:
|
20 kumpf 1.19 //
|
21 karl 1.12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
22 mike 1.11 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
24 karl 1.12 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
27 mike 1.11 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 //==============================================================================
31 //
32 // Author: Karl Schopmeyer (k.schopmeyer@opengroup.org)
33 //
|
34 kumpf 1.20 // Modified By: Jenny Yu (jenny_yu@hp.com)
|
35 kumpf 1.23 // Warren Otsuka (warren.otsuka@hp.com)
|
36 kumpf 1.33 // Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
|
37 mike 1.11 //
38 //%/////////////////////////////////////////////////////////////////////////////
39
40 #ifndef Pegasus_Version_h
41 #define Pegasus_Version_h
42
43 #include <Pegasus/Common/Config.h>
44
45 PEGASUS_NAMESPACE_BEGIN
46
|
47 kumpf 1.33 #ifdef PEGASUS_OVERRIDE_PRODUCT_ID
48 # include <Pegasus/Common/ProductVersion.h>
49 #else
50 # define PEGASUS_PRODUCT_NAME "CIM Server"
|
51 kumpf 1.34 # define PEGASUS_PRODUCT_VERSION "2.5"
|
52 kumpf 1.38 # define PEGASUS_PRODUCT_STATUS ""
|
53 karl 1.37 # define PEGASUS_CIMOM_GENERIC_NAME "Pegasus"
54 // If the following is non-zero length it becomes SLP description.
55 # define PEGASUS_CIMOM_DESCRIPTION ""
|
56 kumpf 1.18 #endif
57
|
58 kumpf 1.36 #ifdef PEGASUS_OS_HPUX
59 // Define the "what" string for binary files
60
61 # ifndef PLATFORM_BUILD_DATE
62 # define PLATFORM_BUILD_DATE __DATE__
63 # endif
64
65 # ifndef PLATFORM_COMPONENT_NAME
66 # define PLATFORM_COMPONENT_NAME "Pegasus Component"
67 # endif
68
69 # ifndef PLATFORM_COMPONENT_VERSION
70 # define PLATFORM_COMPONENT_VERSION PEGASUS_PRODUCT_VERSION
71 # endif
72
73 # ifndef PLATFORM_COMPONENT_STATUS
74 # define PLATFORM_COMPONENT_STATUS PEGASUS_PRODUCT_STATUS
75 # endif
76
77 # ifndef COMPONENT_BUILD_DATE
78 # define COMPONENT_BUILD_DATE __DATE__
79 kumpf 1.36 # endif
80
81 static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING =
82 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "
83 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"
84 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "
85 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("
86 COMPONENT_BUILD_DATE ")";
87
|
88 mike 1.41 #endif /* PEGASUS_OS_HPUX */
89
|
90 mike 1.40 // This macro can be examined by preprocessor directives (i.e., #if) to
91 // make compile time branch decisions based on the Pegasus version number.
92 // When read from left to right, the bytes have the following meaning:
93 //
94 // Byte 0: major version number
95 // Byte 1: minor version number
96 // Byte 2: revision
97 // Byte 3: reserved
98 //
99 // This macro appeared for the first time in version 2.5.1 (0x02050100).
100 // Hence its absence indicates a version earlier than that. The following
101 // tests for a Pegasus version of at least 2.5.1:
102 //
103 // #if defined(PEGASUS_VERSION_NUMBER)
104 // ..
105 // #endif
106 //
107 // And this tests whether the version is greater than 2.5.2:
108 //
109 // #if defined(PEGASUS_VERSION_NUMBER) && PEGASUS_VERSION_NUMBER > 0x02050200
110 // ..
111 mike 1.40 // #endif
112 //
113 // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when
114 // integrating with versions prior to 2.5.1.
115 //
116 #define PEGASUS_VERSION_NUMBER 0x02050100
117
|
118 mike 1.11 PEGASUS_NAMESPACE_END
119
120 #endif /* Pegasus_Version_h */
|