~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/include/vm_tools_version.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
#ifndef RC_INVOKED
65
65
 
66
66
typedef uint32 ToolsVersion;
 
67
typedef struct {
 
68
   uint8 major;
 
69
   uint8 minor;
 
70
   uint8 base;
 
71
} ToolsVersionComponents;
67
72
 
 
73
static INLINE void
 
74
TOOLS_VERSION_UINT_TO_COMPONENTS(const ToolsVersion toolsVersion,   // IN
 
75
                                 ToolsVersionComponents *comps)     // IN/OUT
 
76
{
 
77
   comps->major = (toolsVersion >> 10) & 0x1f;      /* Keep lowest 5 bits after shift. */
 
78
   comps->minor = (toolsVersion >> 5) & 0x1f;
 
79
   comps->base  = toolsVersion & 0x1f;
 
80
}
68
81
#endif
69
82
 
70
83
/*
103
116
 
104
117
#define TOOLS_VERSION_UINT(MJR, MNR, BASE)    (((MJR) << 10) + ((MNR) << 5) + (BASE))
105
118
 
 
119
 
106
120
/*
107
121
 * Allocate 5 bits to each sub-version in the dotted tools version. This
108
122
 * should take care of us for any reasonable usage: 32 x 32 x 32.
109
 
 * This macro takes the base variant appended with _V suffix and 
 
123
 * This macro takes the base variant appended with _V suffix and
110
124
 * constructs the version number defines for the version.
111
125
 * It then passes the version numbers into the UINT construct macro above.
112
126
 */
113
127
#define TOOLS_VERSION_TO_UINT(BASE_VARIANT_VER)   \
114
 
   TOOLS_VERSION_UINT(BASE_VARIANT_VER##_MJR,BASE_VARIANT_VER##_MNR,BASE_VARIANT_VER##_BASE) 
115
 
 
 
128
   TOOLS_VERSION_UINT(BASE_VARIANT_VER##_MJR,BASE_VARIANT_VER##_MNR,BASE_VARIANT_VER##_BASE)
116
129
 
117
130
 
118
131
/*
132
145
#define   TOOLS_VERSION_WS30         4
133
146
#define   TOOLS_VERSION_WS31_BETA    5
134
147
 
135
 
/* 
 
148
/*
136
149
 * Versions:-
137
150
 * For non-RC compiled variant:
138
151
 * Define each version component pass to macro with BASENAME+SUFFIX (_V).
139
 
 * Where BASENAME describes the version and append 
 
152
 * Where BASENAME describes the version and append
140
153
 * the appropriate suffix:_V
141
154
 * For RC and non-RC define BASENAME_V and append _MJR or _MNR or _BASE.
142
155
 * Set each version number accordingly.
997
1010
#define   TOOLS_VERSION_HOSTED10_RELEASE_V_MNR  4
998
1011
#define   TOOLS_VERSION_HOSTED10_RELEASE_V_BASE 2
999
1012
 
1000
 
#define   TOOLS_VERSION_CURRENT        TOOLS_VERSION_HOSTED10_RELEASE
1001
 
#define   TOOLS_VERSION_CURRENT_STR    TOOLS_VERSION_TO_STR(TOOLS_VERSION_HOSTED10_RELEASE)
1002
 
#define   TOOLS_VERSION_CURRENT_CSV    TOOLS_VERSION_TO_CSV(TOOLS_VERSION_HOSTED10_RELEASE)
 
1013
#ifndef RC_INVOKED
 
1014
#define   TOOLS_VERSION_HOSTED10_UPDATE1 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_HOSTED10_UPDATE1_V)
 
1015
#endif /* RC_INVOKED */
 
1016
#define   TOOLS_VERSION_HOSTED10_UPDATE1_V_MJR  8
 
1017
#define   TOOLS_VERSION_HOSTED10_UPDATE1_V_MNR  4
 
1018
#define   TOOLS_VERSION_HOSTED10_UPDATE1_V_BASE 3
 
1019
 
 
1020
#ifndef RC_INVOKED
 
1021
#define   TOOLS_VERSION_HOSTED10_UPDATE2 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_HOSTED10_UPDATE2_V)
 
1022
#endif /* RC_INVOKED */
 
1023
#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_MJR  8
 
1024
#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_MNR  4
 
1025
#define   TOOLS_VERSION_HOSTED10_UPDATE2_V_BASE 4
 
1026
 
 
1027
#ifndef RC_INVOKED
 
1028
#define   TOOLS_VERSION_ESX50_BETA1 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_ESX50_BETA1_V)
 
1029
#endif /* RC_INVOKED */
 
1030
#define   TOOLS_VERSION_ESX50_BETA1_V_MJR  8
 
1031
#define   TOOLS_VERSION_ESX50_BETA1_V_MNR  5
 
1032
#define   TOOLS_VERSION_ESX50_BETA1_V_BASE 0
 
1033
 
 
1034
#ifndef RC_INVOKED
 
1035
#define   TOOLS_VERSION_ESX50_RC1 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_ESX50_RC1_V)
 
1036
#endif /* RC_INVOKED */
 
1037
#define   TOOLS_VERSION_ESX50_RC1_V_MJR  8
 
1038
#define   TOOLS_VERSION_ESX50_RC1_V_MNR  5
 
1039
#define   TOOLS_VERSION_ESX50_RC1_V_BASE 1
 
1040
 
 
1041
#ifndef RC_INVOKED
 
1042
#define   TOOLS_VERSION_ESX50_RELEASE TOOLS_VERSION_TO_UINT(TOOLS_VERSION_ESX50_RELEASE_V)
 
1043
#endif /* RC_INVOKED */
 
1044
#define   TOOLS_VERSION_ESX50_RELEASE_V_MJR  8
 
1045
#define   TOOLS_VERSION_ESX50_RELEASE_V_MNR  6
 
1046
#define   TOOLS_VERSION_ESX50_RELEASE_V_BASE 0
 
1047
 
 
1048
#ifndef RC_INVOKED
 
1049
#define   TOOLS_VERSION_HOSTED11_BETA1 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_HOSTED11_BETA1_V)
 
1050
#endif /* RC_INVOKED */
 
1051
#define   TOOLS_VERSION_HOSTED11_BETA1_V_MJR  8
 
1052
#define   TOOLS_VERSION_HOSTED11_BETA1_V_MNR  7
 
1053
#define   TOOLS_VERSION_HOSTED11_BETA1_V_BASE 0
 
1054
 
 
1055
#ifndef RC_INVOKED
 
1056
#define   TOOLS_VERSION_HOSTED11_BETA2 TOOLS_VERSION_TO_UINT(TOOLS_VERSION_HOSTED11_BETA2_V)
 
1057
#endif /* RC_INVOKED */
 
1058
#define   TOOLS_VERSION_HOSTED11_BETA2_V_MJR  8
 
1059
#define   TOOLS_VERSION_HOSTED11_BETA2_V_MNR  7
 
1060
#define   TOOLS_VERSION_HOSTED11_BETA2_V_BASE 1
 
1061
 
 
1062
#ifndef RC_INVOKED
 
1063
#define   TOOLS_VERSION_NEXT TOOLS_VERSION_TO_UINT(TOOLS_VERSION_NEXT_V)
 
1064
#endif /* RC_INVOKED */
 
1065
#define   TOOLS_VERSION_NEXT_V_MJR  8
 
1066
#define   TOOLS_VERSION_NEXT_V_MNR  9
 
1067
#define   TOOLS_VERSION_NEXT_V_BASE 0
 
1068
 
 
1069
#define   TOOLS_VERSION_CURRENT        TOOLS_VERSION_NEXT
 
1070
#define   TOOLS_VERSION_CURRENT_STR    TOOLS_VERSION_TO_STR(TOOLS_VERSION_NEXT)
 
1071
#define   TOOLS_VERSION_CURRENT_CSV    TOOLS_VERSION_TO_CSV(TOOLS_VERSION_NEXT)
1003
1072
 
1004
1073
/*
1005
1074
 * The extended Tools version is the current Tools version with the