VirtualBox

Ignore:
Timestamp:
Jun 26, 2019 1:49:48 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131592
Message:

Main/glue/python: Include the VBox status codes from iprt/err.h and VBox/err.h in the constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/constants-python.xsl

    r60463 r79360  
    2525  encoding="utf-8"
    2626  indent="no"/>
     27
     28<xsl:param name="g_sErrHFile"/>
    2729
    2830<xsl:template match="/">
     
    6971        self.__fIsSym = fIsSym
    7072
    71     __dValues = {</xsl:text>
     73    # iprt/err.h + VBox/err.h constants:
     74    __dVBoxStatuses = {</xsl:text>
     75    <xsl:value-of select="document($g_sErrHFile)"/>
    7276
     77    <xsl:text disable-output-escaping="yes"><![CDATA[
     78    }
     79
     80    __dValues = {]]></xsl:text>
    7381    <xsl:for-each select="//enum">
    7482        <xsl:text>
     
    8391        },</xsl:text>
    8492    </xsl:for-each>
    85     <!-- hack alert: force new output element to avoid large reallocations. -->
     93    <!-- VBox status codes: -->
    8694    <xsl:text disable-output-escaping="yes"><![CDATA[
     95        # iprt/err.h + VBox/err.h constants:
     96        'VBoxStatus': __dVBoxStatuses,
    8797    }
    8898
     
    104114    }
    105115
    106     __dValuesFlat = {]]></xsl:text>
     116    __dValuesFlat = dict({]]></xsl:text>
    107117    <xsl:for-each select="//enum">
    108118        <xsl:variable name="ename">
     
    124134        <xsl:value-of select="@value"/><xsl:text>,</xsl:text>
    125135    </xsl:for-each>
     136
    126137    <!-- hack alert: force new output element to avoid large reallocations. -->
    127138    <xsl:text>
    128     }
     139    }, **__dVBoxStatuses)
    129140
    130141    __dValuesFlatSym = {</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette