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 jim.wunderlich 1.42 //
51 // The Pegasus version string should be changed immediatly after a release
52 // to include the word development and should then be changed immediatly
53 // prior to release to remove it. Leaving the Version set to the prior release
54 // makes it difficult to determine a development version from a released
55 // version that may be in use.
56 //
57 // The sequence would look like:
58 // # define PEGASUS_PRODUCT_VERSION "2.5"
59 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
60 //
61 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
62 // # define PEGASUS_PRODUCT_STATUS "Development"
63 //
64 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
65 // # define PEGASUS_PRODUCT_STATUS "Pre-Release"
66 //
67 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
68 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
69 //
70 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
71 jim.wunderlich 1.42 // # define PEGASUS_PRODUCT_STATUS "Development"
72 //
73 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
74 // # define PEGASUS_PRODUCT_STATUS "Pre-Release"
75 //
76 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
77 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
78 //
79
80
|
81 kumpf 1.33 # define PEGASUS_PRODUCT_NAME "CIM Server"
|
82 jim.wunderlich 1.42
|
83 denise.eckstein 1.42.2.6 # define PEGASUS_PRODUCT_VERSION "2.5.4"
|
84 kumpf 1.42.2.7 # define PEGASUS_PRODUCT_STATUS ""
|
85 jim.wunderlich 1.42
|
86 karl 1.37 # define PEGASUS_CIMOM_GENERIC_NAME "Pegasus"
87 // If the following is non-zero length it becomes SLP description.
88 # define PEGASUS_CIMOM_DESCRIPTION ""
|
89 kumpf 1.18 #endif
90
|
91 kumpf 1.36 #ifdef PEGASUS_OS_HPUX
92 // Define the "what" string for binary files
93
94 # ifndef PLATFORM_BUILD_DATE
95 # define PLATFORM_BUILD_DATE __DATE__
96 # endif
97
98 # ifndef PLATFORM_COMPONENT_NAME
99 # define PLATFORM_COMPONENT_NAME "Pegasus Component"
100 # endif
101
102 # ifndef PLATFORM_COMPONENT_VERSION
103 # define PLATFORM_COMPONENT_VERSION PEGASUS_PRODUCT_VERSION
104 # endif
105
106 # ifndef PLATFORM_COMPONENT_STATUS
107 # define PLATFORM_COMPONENT_STATUS PEGASUS_PRODUCT_STATUS
108 # endif
109
110 # ifndef COMPONENT_BUILD_DATE
111 # define COMPONENT_BUILD_DATE __DATE__
112 kumpf 1.36 # endif
113
|
114 mateus.baur 1.42.2.4 #ifdef PEGASUS_PLATFORM_HPUX_IA64_ACC
115 #pragma VERSIONID \
116 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "\
117 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"\
118 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "\
119 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("\
120 COMPONENT_BUILD_DATE ")"
121 #else
|
122 kumpf 1.36 static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING =
123 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "
124 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"
125 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "
126 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("
127 COMPONENT_BUILD_DATE ")";
|
128 mateus.baur 1.42.2.4 #endif
|
129 kumpf 1.36
|
130 mike 1.41 #endif /* PEGASUS_OS_HPUX */
131
|
132 mike 1.40 // This macro can be examined by preprocessor directives (i.e., #if) to
133 // make compile time branch decisions based on the Pegasus version number.
134 // When read from left to right, the bytes have the following meaning:
135 //
136 // Byte 0: major version number
137 // Byte 1: minor version number
138 // Byte 2: revision
139 // Byte 3: reserved
140 //
141 // This macro appeared for the first time in version 2.5.1 (0x02050100).
142 // Hence its absence indicates a version earlier than that. The following
143 // tests for a Pegasus version of at least 2.5.1:
144 //
145 // #if defined(PEGASUS_VERSION_NUMBER)
146 // ..
147 // #endif
148 //
149 // And this tests whether the version is greater than 2.5.2:
150 //
151 // #if defined(PEGASUS_VERSION_NUMBER) && PEGASUS_VERSION_NUMBER > 0x02050200
152 // ..
153 mike 1.40 // #endif
154 //
155 // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when
156 // integrating with versions prior to 2.5.1.
157 //
|
158 denise.eckstein 1.42.2.6 #define PEGASUS_VERSION_NUMBER 0x02050400
|
159 mike 1.40
|
160 mike 1.11 PEGASUS_NAMESPACE_END
161
162 #endif /* Pegasus_Version_h */
|