VirtualBox

Changeset 21520 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Jul 13, 2009 8:18:44 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49972
Message:

COM: missed pieces of scriptability support

Location:
trunk/src/VBox/Frontends/VBoxSDL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/Framebuffer.h

    r20433 r21520  
    7171        return cnt;
    7272    }
    73     STDMETHOD(QueryInterface) (REFIID riid , void **ppObj)
    74     {
    75         if (riid == IID_IUnknown)
    76         {
    77             *ppObj = this;
    78             AddRef();
    79             return S_OK;
    80         }
    81         if (riid == IID_IFramebuffer)
    82         {
    83             *ppObj = this;
    84             AddRef();
    85             return S_OK;
    86         }
    87         *ppObj = NULL;
    88         return E_NOINTERFACE;
    89     }
    90 #endif
     73#endif
     74    VBOX_SCRIPTABLE_DISPATCH_IMPL(IFramebuffer)
    9175
    9276    NS_DECL_ISUPPORTS
     
    242226        return cnt;
    243227    }
    244     STDMETHOD(QueryInterface) (REFIID riid , void **ppObj)
    245     {
    246         if (riid == IID_IUnknown)
    247         {
    248             *ppObj = this;
    249             AddRef();
    250             return S_OK;
    251         }
    252         if (riid == IID_IFramebuffer)
    253         {
    254             *ppObj = this;
    255             AddRef();
    256             return S_OK;
    257         }
    258         *ppObj = NULL;
    259         return E_NOINTERFACE;
    260     }
    261 #endif
     228#endif
     229    VBOX_SCRIPTABLE_DISPATCH_IMPL(IFramebuffer)
    262230
    263231    NS_DECL_ISUPPORTS
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r21446 r21520  
    272272        return cnt;
    273273    }
    274     STDMETHOD(QueryInterface)(REFIID riid , void **ppObj)
    275     {
    276         if (riid == IID_IUnknown)
    277         {
    278             *ppObj = this;
    279             AddRef();
    280             return S_OK;
    281         }
    282         if (riid == IID_IVirtualBoxCallback)
    283         {
    284             *ppObj = this;
    285             AddRef();
    286             return S_OK;
    287         }
    288         *ppObj = NULL;
    289         return E_NOINTERFACE;
    290     }
    291 #endif
     274#endif
     275    VBOX_SCRIPTABLE_DISPATCH_IMPL(IVirtualBoxCallback)
    292276
    293277    NS_DECL_ISUPPORTS
     
    419403        return cnt;
    420404    }
    421     STDMETHOD(QueryInterface)(REFIID riid , void **ppObj)
    422     {
    423         if (riid == IID_IUnknown)
    424         {
    425             *ppObj = this;
    426             AddRef();
    427             return S_OK;
    428         }
    429         if (riid == IID_IConsoleCallback)
    430         {
    431             *ppObj = this;
    432             AddRef();
    433             return S_OK;
    434         }
    435         *ppObj = NULL;
    436         return E_NOINTERFACE;
    437     }
    438 #endif
     405#endif
     406    VBOX_SCRIPTABLE_DISPATCH_IMPL(IConsoleCallback)
    439407
    440408    NS_DECL_ISUPPORTS
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