1 martin 1.53 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.54 //
|
3 martin 1.53 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.54 //
|
10 martin 1.53 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.54 //
|
17 martin 1.53 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.54 //
|
20 martin 1.53 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.54 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.53 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.54 //
|
28 martin 1.53 //////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.50 /*
|
30 mike 1.11 //
31 //%/////////////////////////////////////////////////////////////////////////////
|
32 kumpf 1.50 */
|
33 mike 1.11
34 #ifndef Pegasus_Version_h
35 #define Pegasus_Version_h
36
37 #include <Pegasus/Common/Config.h>
38
|
39 kumpf 1.33 #ifdef PEGASUS_OVERRIDE_PRODUCT_ID
40 # include <Pegasus/Common/ProductVersion.h>
41 #else
|
42 jim.wunderlich 1.42 //
43 // The Pegasus version string should be changed immediatly after a release
44 // to include the word development and should then be changed immediatly
45 // prior to release to remove it. Leaving the Version set to the prior release
46 // makes it difficult to determine a development version from a released
47 // version that may be in use.
48 //
49 // The sequence would look like:
50 // # define PEGASUS_PRODUCT_VERSION "2.5"
|
51 kumpf 1.45 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
|
52 jim.wunderlich 1.42 //
53 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
54 // # define PEGASUS_PRODUCT_STATUS "Development"
55 //
56 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
57 // # define PEGASUS_PRODUCT_STATUS "Pre-Release"
58 //
59 // # define PEGASUS_PRODUCT_VERSION "2.5.1"
|
60 kumpf 1.45 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
|
61 jim.wunderlich 1.42 //
62 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
63 // # define PEGASUS_PRODUCT_STATUS "Development"
64 //
65 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
66 // # define PEGASUS_PRODUCT_STATUS "Pre-Release"
67 //
68 // # define PEGASUS_PRODUCT_VERSION "2.5.2"
|
69 kumpf 1.45 // # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released
70 //
|
71 jim.wunderlich 1.42
72
|
73 kumpf 1.33 # define PEGASUS_PRODUCT_NAME "CIM Server"
|
74 jim.wunderlich 1.42
|
75 denise.eckstein 1.54.2.1 # define PEGASUS_PRODUCT_STATUS ""
|
76 denise.eckstein 1.52 # define PEGASUS_PRODUCT_VERSION "2.9.0"
|
77 jim.wunderlich 1.42
|
78 karl 1.37 # define PEGASUS_CIMOM_GENERIC_NAME "Pegasus"
79 // If the following is non-zero length it becomes SLP description.
80 # define PEGASUS_CIMOM_DESCRIPTION ""
|
81 kumpf 1.18 #endif
82
|
83 kumpf 1.36 #ifdef PEGASUS_OS_HPUX
84 // Define the "what" string for binary files
85
86 # ifndef PLATFORM_BUILD_DATE
87 # define PLATFORM_BUILD_DATE __DATE__
88 # endif
89
90 # ifndef PLATFORM_COMPONENT_NAME
91 # define PLATFORM_COMPONENT_NAME "Pegasus Component"
92 # endif
93
|
94 kumpf 1.45 # ifndef PLATFORM_COMPONENT_VERSION
95 # define PLATFORM_COMPONENT_VERSION PEGASUS_PRODUCT_VERSION
|
96 kumpf 1.36 # endif
97
98 # ifndef PLATFORM_COMPONENT_STATUS
99 # define PLATFORM_COMPONENT_STATUS PEGASUS_PRODUCT_STATUS
100 # endif
101
102 # ifndef COMPONENT_BUILD_DATE
103 # define COMPONENT_BUILD_DATE __DATE__
104 # endif
105
|
106 mateus.baur 1.44 #ifdef PEGASUS_PLATFORM_HPUX_IA64_ACC
107 #pragma VERSIONID \
108 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "\
109 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"\
110 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "\
111 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("\
112 COMPONENT_BUILD_DATE ")"
113 #else
|
114 kumpf 1.36 static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING =
115 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "
116 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"
117 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "
118 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("
119 COMPONENT_BUILD_DATE ")";
|
120 mateus.baur 1.44 #endif
|
121 kumpf 1.36
|
122 mike 1.41 #endif /* PEGASUS_OS_HPUX */
123
|
124 kumpf 1.45 // This macro can be examined by preprocessor directives (i.e., #if) to
125 // make compile time branch decisions based on the Pegasus version number.
|
126 mike 1.40 // When read from left to right, the bytes have the following meaning:
127 //
128 // Byte 0: major version number
129 // Byte 1: minor version number
130 // Byte 2: revision
131 // Byte 3: reserved
132 //
133 // This macro appeared for the first time in version 2.5.1 (0x02050100).
134 // Hence its absence indicates a version earlier than that. The following
135 // tests for a Pegasus version of at least 2.5.1:
136 //
137 // #if defined(PEGASUS_VERSION_NUMBER)
138 // ..
139 // #endif
140 //
141 // And this tests whether the version is greater than 2.5.2:
142 //
143 // #if defined(PEGASUS_VERSION_NUMBER) && PEGASUS_VERSION_NUMBER > 0x02050200
144 // ..
145 // #endif
146 //
|
147 kumpf 1.45 // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when
|
148 mike 1.40 // integrating with versions prior to 2.5.1.
149 //
|
150 denise.eckstein 1.52 #define PEGASUS_VERSION_NUMBER 0x02090000
|
151 mike 1.40
|
152 mike 1.11 #endif /* Pegasus_Version_h */
|