VirtualBox

Changeset 76091 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Dec 9, 2018 11:02:49 PM (6 years ago)
Author:
vboxsync
Message:

VBoxSVC: Hook all IVirtualBox calls to catch new client processes so we can watch them for termination. Work in progress. bugref:3300

Location:
trunk/src/VBox/Main/idl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.dtd

    r76085 r76091  
    7575    <!ATTLIST interface wrap-hint-server-addinterfaces CDATA #IMPLIED>
    7676    <!ATTLIST interface wrap-hint-server CDATA #IMPLIED>
     77    <!ATTLIST interface wrap-gen-hook (yes|no) "no">
    7778    <!-- DTrace has a probe name length limit, so dtracename helps dealing with excessivly long names. -->
    7879    <!ATTLIST interface dtracename CDATA #IMPLIED>
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r76085 r76091  
    20102010    wsmap="managed"
    20112011    reservedMethods="8" reservedAttributes="12"
     2012    wrap-gen-hook="yes"
    20122013    >
    20132014    <desc>
  • trunk/src/VBox/Main/idl/apiwrap-server.xsl

    r76085 r76091  
    179179<xsl:template match="interface" mode="classfooter">
    180180    <xsl:param name="addinterfaces"/>
     181    <xsl:if test="@wrap-gen-hook = 'yes'">
     182        <xsl:text>
     183public:
     184    virtual void i_callHook(const char *a_pszFunction) { RT_NOREF_PV(a_pszFunction); }
     185</xsl:text>
     186    </xsl:if>
    181187    <xsl:text>
    182188private:
     
    12201226    </xsl:apply-templates>
    12211227    <xsl:text>));
    1222 
     1228</xsl:text>
     1229    <xsl:if test="ancestor::interface[@wrap-gen-hook = 'yes']">
     1230        <xsl:text>
     1231    i_callHook(__FUNCTION__);</xsl:text>
     1232    </xsl:if>
     1233<xsl:text>
    12231234    VirtualBoxBase::clearError();
    12241235
     
    13621373        </xsl:apply-templates>
    13631374        <xsl:text>));
    1364 
     1375</xsl:text>
     1376    <xsl:if test="ancestor::interface[@wrap-gen-hook = 'yes']">
     1377        <xsl:text>
     1378    i_callHook(__FUNCTION__);</xsl:text>
     1379    </xsl:if>
     1380<xsl:text>
    13651381    VirtualBoxBase::clearError();
    13661382
     
    18001816    </xsl:for-each>
    18011817    <xsl:text>));
    1802 
     1818</xsl:text>
     1819    <xsl:if test="ancestor::interface[@wrap-gen-hook = 'yes']">
     1820        <xsl:text>
     1821    i_callHook(__FUNCTION__);</xsl:text>
     1822    </xsl:if>
     1823<xsl:text>
    18031824    VirtualBoxBase::clearError();
    18041825
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