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 s.kodali 1.57 # define PEGASUS_PRODUCT_STATUS "Development"
|
76 karl 1.57.2.3 # define PEGASUS_PRODUCT_VERSION "2.14.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 karl 1.57.2.2 #if defined (PEGASUS_PLATFORM_HPUX_IA64_ACC) || \
107 defined (PEGASUS_PLATFORM_HPUX_IA64_GNU)
|
108 mateus.baur 1.44 #pragma VERSIONID \
109 "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "\
110 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"\
111 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "\
112 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("\
113 COMPONENT_BUILD_DATE ")"
114 #else
|
115 kumpf 1.36 static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING =
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 mateus.baur 1.44 #endif
|
122 kumpf 1.36
|
123 mike 1.41 #endif /* PEGASUS_OS_HPUX */
124
|
125 kumpf 1.45 // This macro can be examined by preprocessor directives (i.e., #if) to
126 // make compile time branch decisions based on the Pegasus version number.
|
127 mike 1.40 // When read from left to right, the bytes have the following meaning:
128 //
129 // Byte 0: major version number
130 // Byte 1: minor version number
131 // Byte 2: revision
132 // Byte 3: reserved
133 //
134 // This macro appeared for the first time in version 2.5.1 (0x02050100).
135 // Hence its absence indicates a version earlier than that. The following
136 // tests for a Pegasus version of at least 2.5.1:
137 //
138 // #if defined(PEGASUS_VERSION_NUMBER)
139 // ..
140 // #endif
141 //
142 // And this tests whether the version is greater than 2.5.2:
143 //
144 // #if defined(PEGASUS_VERSION_NUMBER) && PEGASUS_VERSION_NUMBER > 0x02050200
145 // ..
146 // #endif
147 //
|
148 kumpf 1.45 // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when
|
149 mike 1.40 // integrating with versions prior to 2.5.1.
150 //
|
151 karl 1.57.2.3 #define PEGASUS_VERSION_NUMBER 0x02140000
|
152 mike 1.40
|
153 mike 1.11 #endif /* Pegasus_Version_h */
|