Changeset 66274 in vbox for trunk/src/VBox/Main/cbinding
- Timestamp:
- Mar 28, 2017 12:19:45 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/capiidl.xsl
r62770 r66274 1607 1607 * libraries 1608 1608 --> 1609 <xsl:template match=" library">1609 <xsl:template match="idl/library"> 1610 1610 <!-- result codes --> 1611 1611 <xsl:call-template name="xsltprocNewlineOutputHack"/> 1612 <xsl:for-each select=" result">1612 <xsl:for-each select="application/result"> 1613 1613 <xsl:apply-templates select="."/> 1614 1614 </xsl:for-each> … … 1616 1616 <xsl:call-template name="xsltprocNewlineOutputHack"/> 1617 1617 <!-- forward declarations --> 1618 <xsl:apply-templates select=" interface |if/interface" mode="forward"/>1618 <xsl:apply-templates select="application/interface | application/if/interface" mode="forward"/> 1619 1619 <xsl:call-template name="xsltprocNewlineOutputHack"/> 1620 1620 <!-- typedef'ing the struct declarations --> 1621 <xsl:apply-templates select=" interface |if/interface" mode="typedef"/>1621 <xsl:apply-templates select="application/interface | application/if/interface" mode="typedef"/> 1622 1622 <xsl:call-template name="xsltprocNewlineOutputHack"/> 1623 1623 <!-- all enums go first --> 1624 <xsl:apply-templates select=" enum |if/enum"/>1625 <!-- everything else but result codes and enums -->1624 <xsl:apply-templates select="application/enum | application/if/enum"/> 1625 <!-- everything else but result codes and enums 1626 1626 <xsl:apply-templates select="*[not(self::result or self::enum) and 1627 not(self::if[result] or self::if[enum])]"/> 1627 not(self::if[result] or self::if[enum])]"/> --> 1628 <!-- the modules (i.e. everything else) --> 1629 <xsl:apply-templates select="application/interface | application/if[interface] 1630 | application/module | application/if[module]"/> 1628 1631 <!-- --> 1629 1632 </xsl:template> … … 2455 2458 2456 2459 <xsl:choose> 2457 <!-- modifiers (ignored for 'enumeration' attributes)-->2460 <!-- modifiers --> 2458 2461 <xsl:when test="name(current())='type' and ../@mod"> 2459 2462 <xsl:choose> … … 2557 2560 <!-- enum types --> 2558 2561 <xsl:when test=" 2559 (ancestor::library/ enum[@name=current()]) or2560 (ancestor::library/ if[@target=$self_target]/enum[@name=current()])2562 (ancestor::library/application/enum[@name=current()]) or 2563 (ancestor::library/application/if[@target=$self_target]/enum[@name=current()]) 2561 2564 "> 2562 2565 <xsl:text>PRUint32</xsl:text> … … 2564 2567 <!-- custom interface types --> 2565 2568 <xsl:when test=" 2566 (name(current())='enumerator' and 2567 ((ancestor::library/enumerator[@name=current()]) or 2568 (ancestor::library/if[@target=$self_target]/enumerator[@name=current()])) 2569 ) or 2570 ((ancestor::library/interface[@name=current()]) or 2571 (ancestor::library/if[@target=$self_target]/interface[@name=current()]) 2572 ) 2569 (ancestor::library/application/interface[@name=current()]) or 2570 (ancestor::library/application/if[@target=$self_target]/interface[@name=current()]) 2573 2571 "> 2574 2572 <xsl:value-of select="."/> … … 2593 2591 2594 2592 <xsl:choose> 2595 <!-- modifiers (ignored for 'enumeration' attributes)-->2593 <!-- modifiers --> 2596 2594 <xsl:when test="name(current())='type' and ../@mod"> 2597 2595 <xsl:choose> … … 2683 2681 <!-- enum types --> 2684 2682 <xsl:when test=" 2685 (ancestor::library/ enum[@name=current()]) or2686 (ancestor::library/ if[@target=$self_target]/enum[@name=current()])2683 (ancestor::library/application/enum[@name=current()]) or 2684 (ancestor::library/application/if[@target=$self_target]/enum[@name=current()]) 2687 2685 "> 2688 2686 <xsl:text>PRUint32</xsl:text> … … 2690 2688 <!-- custom interface types --> 2691 2689 <xsl:when test=" 2692 (name(current())='enumerator' and 2693 ((ancestor::library/enumerator[@name=current()]) or 2694 (ancestor::library/if[@target=$self_target]/enumerator[@name=current()])) 2695 ) or 2696 ((ancestor::library/interface[@name=current()]) or 2697 (ancestor::library/if[@target=$self_target]/interface[@name=current()]) 2698 ) 2690 (ancestor::library/application/interface[@name=current()]) or 2691 (ancestor::library/application/if[@target=$self_target]/interface[@name=current()]) 2699 2692 "> 2700 2693 <xsl:value-of select="."/> … … 2709 2702 </xsl:template> 2710 2703 2704 2705 <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']//module/class" /> 2706 2707 <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']/if//interface 2708 | application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']//interface" /> 2709 2710 <xsl:template match="application[@uuid='ec0e78e8-fa43-43e8-ac0a-02c784c4a4fa']//interface" mode="forward" /> 2711 2712 2711 2713 </xsl:stylesheet> 2712
Note:
See TracChangeset
for help on using the changeset viewer.