VirtualBox

Changeset 35913 in vbox


Ignore:
Timestamp:
Feb 9, 2011 12:44:03 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69940
Message:

Main: pass in safearrays as SAFEARRAY*

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r34331 r35913  
    619619
    620620        AssertReturnVoid (aArg != NULL);
    621         SAFEARRAY *arg = *aArg;
     621        SAFEARRAY *arg = aArg;
    622622
    623623        if (arg)
     
    10251025
    10261026    /** Internal function Never call it directly. */
    1027     SAFEARRAY ** __asInParam() { return &m.arr; }
     1027    SAFEARRAY * __asInParam() { return m.arr; }
    10281028
    10291029    /** Internal function Never call it directly. */
     
    15191519
    15201520        AssertReturnVoid (aArg != NULL);
    1521         SAFEARRAY *arg = *aArg;
     1521        SAFEARRAY *arg = aArg;
    15221522
    15231523        if (arg)
  • trunk/include/VBox/com/defs.h

    r35724 r35913  
    137137 * @param aArg  Parameter/attribute name.
    138138 */
    139 #define ComSafeArrayIn(aType, aArg)     SAFEARRAY **aArg
     139#define ComSafeArrayIn(aType, aArg)     SAFEARRAY *aArg
    140140
    141141/**
     
    143143 * which makes it impossible to use it for reading safearray data.
    144144 */
    145 #define ComSafeArrayInIsNull(aArg)      ((aArg) == NULL || *(aArg) == NULL)
     145#define ComSafeArrayInIsNull(aArg)      ((aArg) == NULL)
    146146
    147147/**
     
    194194 * @param aArg Parameter name to wrap.
    195195 */
    196 #define ComSafeGUIDArrayIn(aArg)        SAFEARRAY **aArg
     196#define ComSafeGUIDArrayIn(aArg)        SAFEARRAY *aArg
    197197
    198198/**
  • trunk/src/VBox/Main/idl/comimpl.xsl

    r35639 r35913  
    294294         </xsl:variable>
    295295         <xsl:value-of select="       '#ifdef RT_OS_WINDOWS&#10;'"/>
    296          <xsl:value-of select="       '              SAFEARRAY **    aPtr = va_arg(args, SAFEARRAY **);&#10;'"/>
     296         <xsl:value-of select="       '              SAFEARRAY *    aPtr = va_arg(args, SAFEARRAY *);&#10;'"/>
    297297         <xsl:value-of select="concat('              com::SafeArray&lt;', $elemtype,'&gt;   aArr(aPtr);&#10;')"/>
    298298         <xsl:value-of select="       '#else&#10;'"/>
  • trunk/src/VBox/Main/idl/midl.xsl

    r31699 r35913  
    687687    <xsl:otherwise>in</xsl:otherwise>
    688688  </xsl:choose>
    689   <xsl:if test="@safearray='yes'">
    690     <!-- VB supports only [in, out], [out] and [out, retval] arrays -->
    691     <xsl:if test="@dir='in'">, out</xsl:if>
    692   </xsl:if>
    693689  <xsl:text>] </xsl:text>
    694690  <xsl:if test="@safearray='yes'">
     
    699695    <xsl:text>)</xsl:text>
    700696  </xsl:if>
    701   <xsl:if test="@dir='out' or @dir='return' or @safearray='yes'">
     697  <xsl:if test="@dir='out' or @dir='return'">
    702698    <xsl:text> *</xsl:text>
    703699  </xsl:if>
Note: See TracChangeset for help on using the changeset viewer.

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