Changeset 85310 in vbox
- Timestamp:
- Jul 13, 2020 1:09:53 PM (4 years ago)
- Location:
- trunk/src/VBox/Main/idl
- Files:
-
- 3 edited
-
VirtualBox.dtd (modified) (1 diff)
-
VirtualBox.xidl (modified) (4 diffs)
-
comimpl.xsl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.dtd
r82969 r85310 67 67 <!-- autogen names the style of code auto-generation for this 68 68 interface (currently only VBoxEvent). --> 69 <!ATTLIST interface autogenflags CDATA #IMPLIED> 70 <!-- autogenflags contains autogen tweaks. 71 For autoget=VBoxEvent: 'BSTR' - generate IN_BSTR variants of the functions. --> 69 72 <!ATTLIST interface id CDATA #IMPLIED> 70 73 <!-- id is only relevant for event interfaces, and specifies -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r85133 r85310 25841 25841 name="IRuntimeErrorEvent" extends="IEvent" 25842 25842 uuid="883DD18B-0721-4CDE-867C-1A82ABAF914C" 25843 wsmap="managed" autogen="VBoxEvent" id="OnRuntimeError"25843 wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnRuntimeError" 25844 25844 > 25845 25845 <desc> … … 25937 25937 name="IExtraDataChangedEvent" extends="IEvent" 25938 25938 uuid="024F00CE-6E0B-492A-A8D0-968472A94DC7" 25939 wsmap="managed" autogen="VBoxEvent" id="OnExtraDataChanged"25939 wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnExtraDataChanged" 25940 25940 > 25941 25941 <desc> … … 26178 26178 waitable="yes" 26179 26179 uuid="a0bad6df-d612-47d3-89d4-db3992533948" 26180 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug"26180 wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnHostPCIDevicePlug" 26181 26181 > 26182 26182 <desc> … … 26419 26419 <interface name="INATNetworkCreationDeletionEvent" extends="INATNetworkAlterEvent" 26420 26420 uuid="8d984a7e-b855-40b8-ab0c-44d3515b4528" 26421 wsmap="managed" autogen="VBoxEvent" id="OnNATNetworkCreationDeletion">26421 wsmap="managed" autogen="VBoxEvent" autogenflags="BSTR" id="OnNATNetworkCreationDeletion"> 26422 26422 <attribute name="creationEvent" type="boolean" readonly="yes"/> 26423 26423 </interface> -
trunk/src/VBox/Main/idl/comimpl.xsl
r85306 r85310 35 35 <!-- $G_kind contains what kind of COM class implementation we generate --> 36 36 <xsl:variable name="G_xsltFilename" select="'autogen.xsl'" /> 37 <xsl:variable name="G_generateBstrVariants" select="' yes'" />37 <xsl:variable name="G_generateBstrVariants" select="'no'" /> 38 38 39 39 … … 905 905 </xsl:call-template> 906 906 907 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">907 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 908 908 <xsl:call-template name="genReinitFunction"> 909 909 <xsl:with-param name="name" select="@name"/> … … 927 927 </xsl:call-template> 928 928 929 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">929 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 930 930 <xsl:call-template name="genCreateFunction"> 931 931 <xsl:with-param name="name" select="@name"/> … … 946 946 </xsl:call-template> 947 947 948 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">948 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 949 949 <xsl:call-template name="genFireFunction"> 950 950 <xsl:with-param name="evname" select="$evname"/> … … 1043 1043 <xsl:text>); </xsl:text> 1044 1044 1045 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">1045 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 1046 1046 <xsl:value-of select="concat('DECLHIDDEN(HRESULT) Fire', $evname, '(IEventSource *aSource')"/> 1047 1047 <xsl:call-template name="genFormalParams"> … … 1078 1078 <xsl:text>); </xsl:text> 1079 1079 1080 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">1080 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 1081 1081 <xsl:value-of select="concat('DECLHIDDEN(HRESULT) Create', $evname, '(IEvent **aEvent, IEventSource *aSource')"/> 1082 1082 <xsl:call-template name="genFormalParams"> … … 1115 1115 <xsl:text>); </xsl:text> 1116 1116 1117 <xsl:if test="($hasStringAttribs != '') and ( $G_generateBstrVariants = 'yes')">1117 <xsl:if test="($hasStringAttribs != '') and (($G_generateBstrVariants = 'yes') or (contains(@autogenflags, 'BSTR')))"> 1118 1118 <xsl:value-of select="concat('DECLHIDDEN(HRESULT) Reinit', $evname, '(IEvent *aEvent')"/> 1119 1119 <xsl:call-template name="genFormalParams">
Note:
See TracChangeset
for help on using the changeset viewer.

