VirtualBox

Changeset 50359 in vbox


Ignore:
Timestamp:
Feb 7, 2014 2:41:59 AM (11 years ago)
Author:
vboxsync
Message:

Main/server.h: (please review) fixes of clang build and gcc-warning of invalid conversion introduced in r92097. Makes VirtualBox_GetInterfacesHelper matching in arity requirement of type NSGetInterfacesProcPtr/2. In addition specification of NSGetInterfacesProcPtr requires to zero passed parameters, if its implementation isn't support returning list of interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/xpcom/server.h

    r50355 r50359  
    3535
    3636#endif /* ____H_LINUX_SERVER */
    37 HRESULT VirtualBox_GetInterfacesHelper() { return S_OK; }
     37
     38/**
     39 * Implements NSGetInterfacesProcPtr (nsIGenericFactory.h)
     40 * @note: declaration in nsIGenericFactory.h asks for zeroing
     41 * count and array, if returning of list of interfaces isn't supported.
     42 */
     43HRESULT VirtualBox_GetInterfacesHelper(PRUint32 *count, nsIID** *array)
     44{
     45    if (count != NULL) *count = 0;
     46    if (array != NULL) *array = NULL;
     47
     48    return S_OK;
     49}
    3850nsIClassInfo* VirtualBox_classInfoGlobal;
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