vbox的更動 39248 路徑 trunk/src/VBox/Main/xml
- 時間撮記:
- 2011-11-9 下午12:29:53 (13 年 以前)
- 位置:
- trunk/src/VBox/Main/xml
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/xml/SchemaDefs.xsl
r29385 r39248 9 9 * and should be reviewed on every Schema change. 10 10 11 Copyright (C) 2006-20 08Oracle Corporation11 Copyright (C) 2006-2011 Oracle Corporation 12 12 13 13 This file is part of VirtualBox Open Source Edition (OSE), as … … 172 172 "/> 173 173 </xsl:call-template> 174 <xsl:call-template name="defineEnumMember">175 <xsl:with-param name="member" select="' NetworkAdapterCount'"/>176 <xsl:with-param name="select" select="177 xsd:complexType[@name='TNetworkAdapter']/xsd:attribute[@name='slot']//xsd:maxExclusive/@value178 "/>179 </xsl:call-template>180 174 181 175 <xsl:call-template name="defineEnumMember"> … … 199 193 "/> 200 194 </xsl:call-template> 201 202 </xsl:template>203 204 <!--205 * aliases (defines) for individual OSTypeIds array elements206 -->207 <xsl:template match="xsd:schema" mode="declare">208 209 <xsl:text>
 extern const char *OSTypeIds[];
</xsl:text>210 211 <xsl:text>
 enum { OSTypeId_COUNT = </xsl:text>212 <xsl:value-of select="count (213 xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration |214 document(xsd:include[not(@schemaLocation='VirtualBox-settings-root.xsd')]/@schemaLocation)/xsd:schema/xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration215 )"/>216 <xsl:text> };

</xsl:text>217 218 <xsl:for-each select="219 xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration |220 document(xsd:include[not(@schemaLocation='VirtualBox-settings-root.xsd')]/@schemaLocation)/xsd:schema/xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration221 ">222 <xsl:text> #define SchemaDefs_OSTypeId_</xsl:text>223 <xsl:value-of select="@value"/>224 <xsl:text> SchemaDefs::OSTypeIds [</xsl:text>225 <xsl:value-of select="position()-1"/>226 <xsl:text>]
</xsl:text>227 </xsl:for-each>228 195 229 196 </xsl:template> … … 257 224 258 225 <!-- 259 * array of OSTypeIds260 -->261 <xsl:template match="xsd:schema" mode="define">262 <xsl:text> const char *OSTypeIds[] =263 {264 </xsl:text>265 <xsl:for-each select="266 xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration |267 document(xsd:include[not(@schemaLocation='VirtualBox-settings-root.xsd')]/@schemaLocation)/xsd:schema/xsd:simpleType[@name='TGuestOSType']/xsd:restriction[@base='xsd:string']/xsd:enumeration268 ">269 <xsl:text> "</xsl:text>270 <xsl:value-of select="@value"/>271 <xsl:text>",272 </xsl:text>273 </xsl:for-each>274 <xsl:text> };275 </xsl:text>276 </xsl:template>277 278 <!--279 226 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 280 227 * END -
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r38755 r39248 132 132 <xsd:maxInclusive value="199999999-12-31T23:59:59Z"/> 133 133 <xsd:pattern value=".+-.+-.+T.+:.+:[0-9]{2}Z"/> 134 </xsd:restriction>135 </xsd:simpleType>136 137 <xsd:simpleType name="TGuestOSType">138 <xsd:restriction base="xsd:string">139 <xsd:enumeration value="Other"/>140 <xsd:enumeration value="DOS"/>141 <xsd:enumeration value="Netware"/>142 <xsd:enumeration value="L4"/>143 <xsd:enumeration value="Windows31"/>144 <xsd:enumeration value="Windows95"/>145 <xsd:enumeration value="Windows98"/>146 <xsd:enumeration value="WindowsMe"/>147 <xsd:enumeration value="WindowsNT4"/>148 <xsd:enumeration value="Windows2000"/>149 <xsd:enumeration value="WindowsXP"/>150 <xsd:enumeration value="WindowsXP_64"/>151 <xsd:enumeration value="Windows2003"/>152 <xsd:enumeration value="Windows2003_64"/>153 <xsd:enumeration value="WindowsVista"/>154 <xsd:enumeration value="WindowsVista_64"/>155 <xsd:enumeration value="Windows2008"/>156 <xsd:enumeration value="Windows2008_64"/>157 <xsd:enumeration value="Windows7"/>158 <xsd:enumeration value="Windows7_64"/>159 <xsd:enumeration value="Windows8"/>160 <xsd:enumeration value="Windows8_64"/>161 <xsd:enumeration value="WindowsNT"/>162 <xsd:enumeration value="OS2Warp3"/>163 <xsd:enumeration value="OS2Warp4"/>164 <xsd:enumeration value="OS2Warp45"/>165 <xsd:enumeration value="OS2eCS"/>166 <xsd:enumeration value="OS2"/>167 <xsd:enumeration value="Linux22"/>168 <xsd:enumeration value="Linux24"/>169 <xsd:enumeration value="Linux24_64"/>170 <xsd:enumeration value="Linux26"/>171 <xsd:enumeration value="Linux26_64"/>172 <xsd:enumeration value="ArchLinux"/>173 <xsd:enumeration value="ArchLinux_64"/>174 <xsd:enumeration value="Debian"/>175 <xsd:enumeration value="Debian_64"/>176 <xsd:enumeration value="OpenSUSE"/>177 <xsd:enumeration value="OpenSUSE_64"/>178 <xsd:enumeration value="Fedora"/>179 <xsd:enumeration value="Fedora_64"/>180 <xsd:enumeration value="Gentoo"/>181 <xsd:enumeration value="Gentoo_64"/>182 <xsd:enumeration value="Mandriva"/>183 <xsd:enumeration value="Mandriva_64"/>184 <xsd:enumeration value="RedHat"/>185 <xsd:enumeration value="RedHat_64"/>186 <xsd:enumeration value="Turbolinux"/>187 <xsd:enumeration value="Turbolinux_64"/>188 <xsd:enumeration value="Ubuntu"/>189 <xsd:enumeration value="Ubuntu_64"/>190 <xsd:enumeration value="Xandros"/>191 <xsd:enumeration value="Xandros_64"/>192 <xsd:enumeration value="Oracle"/>193 <xsd:enumeration value="Oracle_64"/>194 <xsd:enumeration value="Linux"/>195 <xsd:enumeration value="FreeBSD"/>196 <xsd:enumeration value="FreeBSD_64"/>197 <xsd:enumeration value="OpenBSD"/>198 <xsd:enumeration value="OpenBSD_64"/>199 <xsd:enumeration value="NetBSD"/>200 <xsd:enumeration value="NetBSD_64"/>201 <xsd:enumeration value="Solaris"/>202 <xsd:enumeration value="Solaris_64"/>203 <xsd:enumeration value="OpenSolaris"/>204 <xsd:enumeration value="OpenSolaris_64"/>205 <xsd:enumeration value="QNX"/>206 <xsd:enumeration value="MacOS"/>207 <xsd:enumeration value="MacOS_64"/>208 <xsd:enumeration value="JRockitVE"/>209 134 </xsd:restriction> 210 135 </xsd:simpleType> … … 783 708 </xsd:choice> 784 709 <xsd:attribute name="type" type="TNetworkAdapterType" default="Am79C970A"/> 785 <xsd:attribute name="slot" use="required"> 786 <xsd:simpleType> 787 <xsd:restriction base="xsd:unsignedInt"> 788 <xsd:minInclusive value="0"/> 789 <xsd:maxExclusive value="8"/> 790 </xsd:restriction> 791 </xsd:simpleType> 792 </xsd:attribute> 710 <xsd:attribute name="slot" type="xsd:unsignedInt" use="required"/> 793 711 <xsd:attribute name="enabled" type="xsd:boolean" use="required"/> 794 712 <xsd:attribute name="MACAddress"> … … 967 885 <xsd:attribute name="name" type="TNonEmptyString" use="required"/> 968 886 <xsd:attribute name="nameSync" type="xsd:boolean" default="true"/> 969 <xsd:attribute name="OSType" type="T GuestOSType" use="required"/>887 <xsd:attribute name="OSType" type="TNonEmptyString" use="required"/> 970 888 <xsd:attribute name="uuid" type="TNonNullUUID" use="required"/> 971 889 <xsd:attribute name="stateFile" type="TLocalFile"/>
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器