Ticket #1: main.diff

File main.diff, 23.2 KB (added by Valery V. Sedletski, 9 years ago)

Main (VBox XPCOM server)

  • \src\VBox\Main/cbinding/Makefile.kmk

    diff -urN vbox-trunk-bk\src\VBox\Main/cbinding/Makefile.kmk vbox-trunk\src\VBox\Main/cbinding/Makefile.kmk
    old new  
    7878 VBoxCAPI_TEMPLATE = VBOXMAINCLIENTDLL
    7979 ifdef VBOX_WITH_XPCOM
    8080  # Keep old name on XPCOM so that legacy code is happy.
    81   VBoxCAPI_INST = $(INST_BIN)VBoxXPCOMC$(VBOX_SUFF_DLL)
     81  ifeq ($(KBUILD_TARGET),os2)
     82    VBoxCAPI_INST = $(INST_BIN)VBoxXPC$(VBOX_SUFF_DLL)
     83  else
     84    VBoxCAPI_INST = $(INST_BIN)VBoxXPCOMC$(VBOX_SUFF_DLL)
     85  endif
    8286 endif
    8387 VBoxCAPI_DEFS = IN_VBOXCAPI
    8488 VBoxCAPI_SOURCES = \
     
    137141        tstCAPIGlue.c
    138142  tstCAPIGlue_LIBS = \
    139143        $(VBoxCAPIGlue_1_TARGET)
     144
     145  ifeq ($(KBUILD_TARGET),os2)
     146   tstCAPIGlue_LIBS += \
     147        $(PATH_STAGE_LIB)/VBox-os2-poll$(VBOX_SUFF_LIB) \
     148        pthread
     149   tstCAPIGlue_INCS += \
     150        $(PATH_SUB_CURRENT)/src/libs/poll-os2
     151  endif
     152
    140153 endif
    141154
    142155endif # ! VBOX_ONLY_SDK
  • \src\VBox\Main/cbinding/VBoxCAPIGlue.c

    diff -urN vbox-trunk-bk\src\VBox\Main/cbinding/VBoxCAPIGlue.c vbox-trunk\src\VBox\Main/cbinding/VBoxCAPIGlue.c
    old new  
    5555#elif defined(__APPLE__)
    5656# define DYNLIB_NAME        "VBoxXPCOMC.dylib"
    5757#elif defined(__OS2__)
    58 # define DYNLIB_NAME        "VBoxXPCOMC.dll"
     58# define DYNLIB_NAME        "VBoxXPC.dll"
    5959#elif defined(WIN32)
    6060# define DYNLIB_NAME        "VBoxCAPI.dll"
    6161#else
  • \src\VBox\Main/glue/initterm.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/glue/initterm.cpp vbox-trunk\src\VBox\Main/glue/initterm.cpp
    old new  
    330330    char szCompReg[RTPATH_MAX];
    331331    char szXptiDat[RTPATH_MAX];
    332332
     333#if 1
    333334    int vrc = GetVBoxUserHomeDirectory(szCompReg, sizeof(szCompReg));
    334335    if (vrc == VERR_ACCESS_DENIED)
    335336        return NS_ERROR_FILE_ACCESS_DENIED;
     
    351352    LogFlowFunc(("component registry  : \"%s\"\n", szCompReg));
    352353    LogFlowFunc(("XPTI data file      : \"%s\"\n", szXptiDat));
    353354
     355#else
     356    int vrc = NULL;
     357#endif
    354358    static const char *kAppPathsToProbe[] =
    355359    {
    356360        NULL, /* 0: will use VBOX_APP_HOME */
     
    425429        }
    426430        LogFlowFunc(("component directory : \"%s\"\n", szCompDir));
    427431
     432        RTStrCopy(szCompReg, sizeof(szXptiDat), szCompDir);
     433        RTStrCopy(szXptiDat, sizeof(szXptiDat), szCompReg);
     434
     435        vrc = RTPathAppend(szCompReg, sizeof(szCompReg), "compreg.dat");
     436        AssertRCReturn(vrc, NS_ERROR_FAILURE);
     437        vrc = RTPathAppend(szXptiDat, sizeof(szXptiDat), "xpti.dat");
     438        AssertRCReturn(vrc, NS_ERROR_FAILURE);
     439
    428440        nsCOMPtr<DirectoryServiceProvider> dsProv;
    429441        dsProv = new DirectoryServiceProvider();
    430442        if (dsProv)
  • \src\VBox\Main/glue/NativeEventQueue.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/glue/NativeEventQueue.cpp vbox-trunk\src\VBox\Main/glue/NativeEventQueue.cpp
    old new  
    2424# include <CoreFoundation/CFRunLoop.h>
    2525#endif
    2626
    27 #if defined(VBOX_WITH_XPCOM) && !defined(RT_OS_DARWIN) && !defined(RT_OS_OS2)
     27#if defined(VBOX_WITH_XPCOM) && !defined(RT_OS_DARWIN) // && !defined(RT_OS_OS2)
    2828# define USE_XPCOM_QUEUE
    2929#endif
    3030
     
    3636# include <errno.h>
    3737#endif
    3838
     39#ifdef RT_OS_OS2
     40#include <sys/time.h>
     41#endif
     42
    3943namespace com
    4044{
    4145
  • \src\VBox\Main/include/ClientToken.h

    diff -urN vbox-trunk-bk\src\VBox\Main/include/ClientToken.h vbox-trunk\src\VBox\Main/include/ClientToken.h
    old new  
    3131#if defined(RT_OS_WINDOWS)
    3232# define CTTOKENARG NULL
    3333# define CTTOKENTYPE HANDLE
    34 #elif defined(RT_OS_OS2)
     34#elif 0 //defined(RT_OS_OS2)
    3535# define CTTOKENARG NULLHANDLE
    3636# define CTTOKENTYPE HMTX
    3737#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER)
  • \src\VBox\Main/include/ClientTokenHolder.h

    diff -urN vbox-trunk-bk\src\VBox\Main/include/ClientTokenHolder.h vbox-trunk\src\VBox\Main/include/ClientTokenHolder.h
    old new  
    2828/* this second semaphore is only used on Windows */
    2929# define CTHTHREADSEMARG NULL
    3030# define CTHTHREADSEMTYPE HANDLE
    31 #elif defined(RT_OS_OS2)
     31#elif 0 //defined(RT_OS_OS2)
    3232# define CTHSEMARG NIL_RTSEMEVENT
    3333# define CTHSEMTYPE RTSEMEVENT
    3434#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER)
  • \src\VBox\Main/include/ClientWatcher.h

    diff -urN vbox-trunk-bk\src\VBox\Main/include/ClientWatcher.h vbox-trunk\src\VBox\Main/include/ClientWatcher.h
    old new  
    2929#if defined(RT_OS_WINDOWS)
    3030# define CWUPDATEREQARG NULL
    3131# define CWUPDATEREQTYPE HANDLE
    32 #elif defined(RT_OS_OS2)
     32#elif 0 //defined(RT_OS_OS2)
    3333# define CWUPDATEREQARG NIL_RTSEMEVENT
    3434# define CWUPDATEREQTYPE RTSEMEVENT
    3535#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER) || defined(VBOX_WITH_GENERIC_SESSION_WATCHER)
  • \src\VBox\Main/include/DHCPServerImpl.h

    diff -urN vbox-trunk-bk\src\VBox\Main/include/DHCPServerImpl.h vbox-trunk\src\VBox\Main/include/DHCPServerImpl.h
    old new  
    2727struct NETIFINFO;
    2828#endif
    2929
    30 #ifdef RT_OS_WINDOWS
     30#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    3131# define DHCP_EXECUTABLE_NAME "VBoxNetDHCP.exe"
    3232#else
    3333# define DHCP_EXECUTABLE_NAME "VBoxNetDHCP"
  • \src\VBox\Main/include/NATNetworkImpl.h

    diff -urN vbox-trunk-bk\src\VBox\Main/include/NATNetworkImpl.h vbox-trunk\src\VBox\Main/include/NATNetworkImpl.h
    old new  
    3030    struct NATRule;
    3131}
    3232
    33 #ifdef RT_OS_WINDOWS
     33#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    3434# define NATSR_EXECUTABLE_NAME "VBoxNetNAT.exe"
    3535#else
    3636# define NATSR_EXECUTABLE_NAME "VBoxNetNAT"
  • \src\VBox\Main/src-client/ClientTokenHolder.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-client/ClientTokenHolder.cpp vbox-trunk\src\VBox\Main/src-client/ClientTokenHolder.cpp
    old new  
    6868        mThread = NIL_RTTHREAD;
    6969    }
    7070
    71 #elif defined(RT_OS_OS2)
     71#elif 0 //defined(RT_OS_OS2)
    7272
    7373    if (mThread != NIL_RTTHREAD)
    7474    {
     
    167167        ::CloseHandle(mThreadSem);
    168168        mThreadSem = NULL;
    169169    }
    170 #elif defined(RT_OS_OS2)
     170#elif 0 //defined(RT_OS_OS2) // 0 // defined(VBOX_WITH_GENERIC_SESSION_WATCHER)
    171171    Bstr bstrTokenId(strTokenId);
    172172
    173173    /*
     
    228228
    229229bool Session::ClientTokenHolder::isReady()
    230230{
    231 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     231#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    232232    return mSem != CTHSEMARG;
    233233#else /* VBOX_WITH_GENERIC_SESSION_WATCHER */
    234234    return !mToken.isNull();
    235235#endif /* VBOX_WITH_GENERIC_SESSION_WATCHER */
    236236}
    237237
    238 #if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
     238#if defined(RT_OS_WINDOWS) // || defined(RT_OS_OS2)
    239239/** client token holder thread */
    240240DECLCALLBACK(int) ClientTokenHolderThread(RTTHREAD Thread, void *pvUser)
    241241{
     
    280280
    281281    /* signal we're done */
    282282    ::SetEvent(initDoneSem);
    283 # elif defined(RT_OS_OS2)
    284     Utf8Str sessionId = (BSTR)data[0];
     283# elif 0 //defined(RT_OS_OS2)
     284    //Utf8Str sessionId = (BSTR)data[0];
     285    BSTR sessionId = (BSTR)data[0];
    285286    RTSEMEVENT finishSem = (RTSEMEVENT)data[1];
    286287
    287288    LogFlowFunc(("sessionId='%s', finishSem=%p\n", sessionId.raw(), finishSem));
    288289
    289290    HMTX mutex = NULLHANDLE;
    290     APIRET arc = ::DosOpenMutexSem((PSZ)sessionId.raw(), &mutex);
     291    //APIRET arc = ::DosOpenMutexSem((PSZ)sessionId.raw(), &mutex);
     292    APIRET arc = ::DosOpenMutexSem((PSZ)sessionId, &mutex);
    291293    AssertMsg(arc == NO_ERROR, ("cannot open token, arc=%ld\n", arc));
    292294
    293295    if (arc == NO_ERROR)
  • \src\VBox\Main/src-client/ConsoleImpl2.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-client/ConsoleImpl2.cpp vbox-trunk\src\VBox\Main/src-client/ConsoleImpl2.cpp
    old new  
    28932893            if (/* mode != ClipboardMode_Disabled */ true)
    28942894            {
    28952895                /* Load the service */
     2896#ifndef RT_OS_OS2
    28962897                rc = pVMMDev->hgcmLoadService("VBoxSharedClipboard", "VBoxSharedClipboard");
     2898#else
     2899                rc = pVMMDev->hgcmLoadService("VBoxSC", "VBoxSharedClipboard");
     2900#endif
    28972901                if (RT_FAILURE(rc))
    28982902                {
    28992903                    LogRel(("Shared clipboard is not available, rc=%Rrc\n", rc));
     
    29272931            if (   hrc   == S_OK
    29282932                && value == "1")
    29292933            {
     2934#ifndef RT_OS_OS2
    29302935                rc = pVMMDev->hgcmLoadService("VBoxHostChannel", "VBoxHostChannel");
     2936#else
     2937                rc = pVMMDev->hgcmLoadService("VBoxHC", "VBoxHostChannel");
     2938#endif
    29312939                if (RT_FAILURE(rc))
    29322940                {
    29332941                    LogRel(("VBoxHostChannel is not available, rc=%Rrc\n", rc));
     
    29462954            hrc = pMachine->COMGETTER(DnDMode)(&enmMode);                                   H();
    29472955
    29482956            /* Load the service */
     2957#ifndef RT_OS_OS2
    29492958            rc = pVMMDev->hgcmLoadService("VBoxDragAndDropSvc", "VBoxDragAndDropSvc");
     2959#else
     2960            rc = pVMMDev->hgcmLoadService("VBoxDnD", "VBoxDragAndDropSvc");
     2961#endif
    29502962            if (RT_FAILURE(rc))
    29512963            {
    29522964                LogRel(("Drag and drop service is not available, rc=%Rrc\n", rc));
     
    52075219
    52085220#elif defined(RT_OS_WINDOWS) /* not defined NetFlt */
    52095221            /* NOTHING TO DO HERE */
     5222#elif defined(RT_OS_OS2)
     5223            /* NOTHING TO DO HERE */
    52105224#elif defined(RT_OS_LINUX)
    52115225/// @todo aleksey: is there anything to be done here?
    52125226#elif defined(RT_OS_FREEBSD)
     
    56665680    AssertReturn(pConsole->m_pVMMDev, VERR_INVALID_POINTER);
    56675681
    56685682    /* Load the service */
     5683#ifndef RT_OS_OS2
    56695684    int rc = pConsole->m_pVMMDev->hgcmLoadService("VBoxGuestPropSvc", "VBoxGuestPropSvc");
     5685#else
     5686    int rc = pConsole->m_pVMMDev->hgcmLoadService("VBoxSIS", "VBoxGuestPropSvc");
     5687#endif
    56705688
    56715689    if (RT_FAILURE(rc))
    56725690    {
     
    58225840    ComObjPtr<Console> pConsole = static_cast<Console *>(pvConsole);
    58235841
    58245842    /* Load the service */
     5843#ifndef RT_OS_OS2
    58255844    int rc = pConsole->m_pVMMDev->hgcmLoadService("VBoxGuestControlSvc", "VBoxGuestControlSvc");
     5845#else
     5846    int rc = pConsole->m_pVMMDev->hgcmLoadService("VBoxSIS", "VBoxGuestControlSvc");
     5847#endif
    58265848
    58275849    if (RT_FAILURE(rc))
    58285850    {
  • \src\VBox\Main/src-client/SessionImpl.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-client/SessionImpl.cpp vbox-trunk\src\VBox\Main/src-client/SessionImpl.cpp
    old new  
    297297#endif
    298298}
    299299
    300 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     300#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    301301HRESULT Session::assignMachine(const ComPtr<IMachine> &aMachine,
    302302                               LockType_T aLockType,
    303303                               const com::Utf8Str &aTokenId)
     
    348348    mRemoteMachine = aMachine;
    349349#endif
    350350
    351 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     351#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    352352    Utf8Str strTokenId(aTokenId);
    353353    Assert(!strTokenId.isEmpty());
    354354#else /* VBOX_WITH_GENERIC_SESSION_WATCHER */
     
    357357    /* create the machine client token */
    358358    try
    359359    {
    360 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     360#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    361361        mClientTokenHolder = new ClientTokenHolder(strTokenId);
    362362#else /* VBOX_WITH_GENERIC_SESSION_WATCHER */
    363363        mClientTokenHolder = new ClientTokenHolder(aToken);
  • \src\VBox\Main/src-server/ClientToken.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/ClientToken.cpp vbox-trunk\src\VBox\Main/src-server/ClientToken.cpp
    old new  
    4949#if defined(RT_OS_WINDOWS)
    5050    if (mClientToken)
    5151        ::CloseHandle(mClientToken);
    52 #elif defined(RT_OS_OS2)
     52#elif 0 // defined(RT_OS_OS2)
    5353    if (mClientToken != NULLHANDLE)
    5454        ::DosCloseMutexSem(mClientToken);
    5555#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER)
     
    8787    AssertMsg(mClientToken,
    8888              ("Cannot create token '%s', err=%d",
    8989               mClientTokenId.c_str(), ::GetLastError()));
    90 #elif defined(RT_OS_OS2)
     90#elif 0 //defined(RT_OS_OS2)
    9191    NOREF(pSessionMachine);
    9292    Utf8Str ipcSem = Utf8StrFmt("\\SEM32\\VBOX\\VM\\{%RTuuid}",
    9393                                pMachine->mData->mUuid.raw());
     
    228228    /* release the token */
    229229    ::ReleaseMutex(mClientToken);
    230230    terminated = true;
    231 #elif defined(RT_OS_OS2)
     231#elif 0 //defined(RT_OS_OS2)
    232232    AssertMsg(mClientToken, ("semaphore must be created"));
    233233
    234234    /* release the token */
  • \src\VBox\Main/src-server/ClientWatcher.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/ClientWatcher.cpp vbox-trunk\src\VBox\Main/src-server/ClientWatcher.cpp
    old new  
    8585{
    8686#if defined(RT_OS_WINDOWS)
    8787    mUpdateReq = ::CreateEvent(NULL, FALSE, FALSE, NULL);
    88 #elif defined(RT_OS_OS2)
     88#elif 0 //defined(RT_OS_OS2)
    8989    RTSemEventCreate(&mUpdateReq);
    9090#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER) || defined(VBOX_WITH_GENERIC_SESSION_WATCHER)
    9191    RTSemEventCreate(&mUpdateReq);
     
    120120    /* sent an update request */
    121121#if defined(RT_OS_WINDOWS)
    122122    ::SetEvent(mUpdateReq);
    123 #elif defined(RT_OS_OS2)
     123#elif 0 //defined(RT_OS_OS2)
    124124    RTSemEventSignal(mUpdateReq);
    125125#elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER)
    126126    /* use short timeouts, as we expect changes */
     
    329329
    330330    ::CoUninitialize();
    331331
    332 #elif defined(RT_OS_OS2)
     332#elif 0 //defined(RT_OS_OS2)
    333333
    334334    /// @todo (dmik) processes reaping!
    335335
     
    477477                            {
    478478                                AutoReadLock smLock(sm COMMA_LOCKVAL_SRC_POS);
    479479                                ClientToken *ct = sm->i_getClientToken();
     480                                //Machine::ClientToken *ct = sm->i_get();
    480481                                if (ct)
    481482                                {
    482483                                    HMTX ipcSem = ct->getToken();
  • \src\VBox\Main/src-server/HostNetworkInterfaceImpl.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/HostNetworkInterfaceImpl.cpp vbox-trunk\src\VBox\Main/src-server/HostNetworkInterfaceImpl.cpp
    old new  
    2727
    2828#include <iprt/cpp/utils.h>
    2929
    30 #ifdef RT_OS_FREEBSD
     30#if defined(RT_OS_FREEBSD) || defined(RT_OS_OS2)
    3131# include <netinet/in.h> /* INADDR_NONE */
    3232#endif /* RT_OS_FREEBSD */
    3333
     
    152152
    153153#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    154154
     155Bstr HostNetworkInterface::i_composeNetworkName(const Utf8Str aShortName)
     156{
     157    return Utf8Str("HostInterfaceNetworking-").append(aShortName);
     158}
     159
    155160#ifdef VBOX_WITH_HOSTNETIF_API
    156161
    157162HRESULT HostNetworkInterface::updateConfig()
     
    179184    return rc == VERR_NOT_IMPLEMENTED ? E_NOTIMPL : E_FAIL;
    180185}
    181186
     187#if 0
    182188Bstr HostNetworkInterface::i_composeNetworkName(const Utf8Str aShortName)
    183189{
    184190    return Utf8Str("HostInterfaceNetworking-").append(aShortName);
    185191}
     192#endif
    186193/**
    187194 * Initializes the host object.
    188195 *
  • \src\VBox\Main/src-server/MachineImpl.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/MachineImpl.cpp vbox-trunk\src\VBox\Main/src-server/MachineImpl.cpp
    old new  
    33703370            SessionState_T origState = mData->mSession.mState;
    33713371            mData->mSession.mState = SessionState_Spawning;
    33723372
    3373 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     3373#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    33743374            /* Get the client token ID to be passed to the client process */
    33753375            Utf8Str strTokenId;
    33763376            sessionMachine->i_getTokenId(strTokenId);
     
    33963396            alock.release();
    33973397
    33983398            LogFlowThisFunc(("Calling AssignMachine()...\n"));
    3399 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     3399#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    34003400            rc = pSessionControl->AssignMachine(sessionMachine, aLockType, Bstr(strTokenId).raw());
    34013401#else /* VBOX_WITH_GENERIC_SESSION_WATCHER */
    34023402            rc = pSessionControl->AssignMachine(sessionMachine, aLockType, pToken);
     
    77117711
    77127712        /* inform the session that it will be a remote one */
    77137713        LogFlowThisFunc(("Calling AssignMachine (NULL)...\n"));
    7714 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     7714#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    77157715        HRESULT rc = aControl->AssignMachine(NULL, LockType_Write, Bstr::Empty.raw());
    77167716#else /* VBOX_WITH_GENERIC_SESSION_WATCHER */
    77177717        HRESULT rc = aControl->AssignMachine(NULL, LockType_Write, NULL);
     
    1355113551// public methods only for internal purposes
    1355213552/////////////////////////////////////////////////////////////////////////////
    1355313553
    13554 #ifndef VBOX_WITH_GENERIC_SESSION_WATCHER
     13554#if !defined(VBOX_WITH_GENERIC_SESSION_WATCHER) // && !defined(RT_OS_OS2)
    1355513555/**
    1355613556 * Called from the client watcher thread to check for expected or unexpected
    1355713557 * death of the client process that has a direct session to this machine.
  • \src\VBox\Main/src-server/os2/NetIf-os2.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/os2/NetIf-os2.cpp vbox-trunk\src\VBox\Main/src-server/os2/NetIf-os2.cpp
    old new  
    2222*********************************************************************************************************************************/
    2323#define LOG_GROUP LOG_GROUP_MAIN
    2424
     25#include <VBox/com/defs.h>
    2526#include <iprt/err.h>
    2627#include <list>
    2728
     
    3334    return VERR_NOT_IMPLEMENTED;
    3435}
    3536
    36 int NetIfEnableStaticIpConfig(VirtualBox *pVBox, HostNetworkInterface * pIf, ULONG ip, ULONG mask)
     37int NetIfEnableStaticIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf, ULONG aOldIp, ULONG ip, ULONG mask)
    3738{
    3839    return VERR_NOT_IMPLEMENTED;
    3940}
    4041
    41 int NetIfEnableStaticIpConfigV6(VirtualBox *pVBox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
     42int NetIfEnableStaticIpConfigV6(VirtualBox *vBox, HostNetworkInterface * pIf, IN_BSTR aOldIPV6Address,
     43                                IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)
    4244{
    4345    return VERR_NOT_IMPLEMENTED;
    4446}
     
    5355{
    5456    return VERR_NOT_IMPLEMENTED;
    5557}
     58
     59
     60int NetIfGetState(const char *pcszIfName, NETIFSTATUS *penmState)
     61{
     62    return VERR_NOT_IMPLEMENTED;
     63}
     64
     65int NetIfGetLinkSpeed(const char *pcszIfName, uint32_t *puMbits)
     66{
     67    return VERR_NOT_IMPLEMENTED;
     68}
     69
     70int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVirtualBox,
     71                                        IHostNetworkInterface **aHostNetworkInterface,
     72                                        IProgress **aProgress,
     73                                        const char *pcszName)
     74{
     75    return VERR_NOT_IMPLEMENTED;
     76}
     77
     78int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *pInfo)
     79{
     80    return VERR_NOT_IMPLEMENTED;
     81}
     82
     83int NetIfRemoveHostOnlyNetworkInterface(VirtualBox *pVirtualBox, IN_GUID aId,
     84                                        IProgress **aProgress)
     85{
     86    return VERR_NOT_IMPLEMENTED;
     87}
    5688
  • \src\VBox\Main/src-server/os2/USBProxyServiceOs2.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/os2/USBProxyServiceOs2.cpp vbox-trunk\src\VBox\Main/src-server/os2/USBProxyServiceOs2.cpp
    old new  
    251251        pCur->u64SerialHash = 0;
    252252        //pCur->bNumConfigurations = pDevDesc->bNumConfigurations;
    253253        pCur->bNumConfigurations = 0;
    254         pCur->paConfigurations = NULL;
     254        //pCur->paConfigurations = NULL; // vs: Now USBDEVICE format changed
    255255        pCur->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE;
    256256        pCur->enmSpeed = USBDEVICESPEED_UNKNOWN;
    257257        pCur->pszAddress = NULL;
     
    259259                     pDevDesc->idProduct, pDevDesc->idVendor, pDevDesc->bcdDevice, i);
    260260
    261261        pCur->bBus = 0;
    262         pCur->bLevel = 0;
    263         pCur->bDevNum = 0;
    264         pCur->bDevNumParent = 0;
     262        //pCur->bLevel = 0;
     263        //pCur->bDevNum = 0;
     264        //pCur->bDevNumParent = 0;
    265265        pCur->bPort = 0;
    266         pCur->bNumDevices = 0;
    267         pCur->bMaxChildren = 0;
     266        //pCur->bNumDevices = 0;
     267        //pCur->bMaxChildren = 0;
    268268
    269269        /* link it */
    270270        pCur->pNext = NULL;
  • \src\VBox\Main/src-server/xpcom/server_module.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/xpcom/server_module.cpp vbox-trunk\src\VBox\Main/src-server/xpcom/server_module.cpp
    old new  
    118118    if (PR_ProcessAttrSetInheritableFD(attr, writable, VBOXSVC_STARTUP_PIPE_NAME) != PR_SUCCESS)
    119119        goto end;
    120120
     121#ifndef RT_OS_OS2
    121122    devNull = PR_Open("/dev/null", PR_RDWR, 0);
     123#else
     124    devNull = PR_Open("/dev/nul", PR_RDWR, 0);
     125#endif
    122126    if (!devNull)
    123127        goto end;
    124128
  • \src\VBox\Main/src-server/xpcom/server.cpp

    diff -urN vbox-trunk-bk\src\VBox\Main/src-server/xpcom/server.cpp vbox-trunk\src\VBox\Main/src-server/xpcom/server.cpp
    old new  
    629629    if (PR_ProcessAttrSetInheritableFD(attr, writable, VBOXSVC_STARTUP_PIPE_NAME) != PR_SUCCESS)
    630630        goto end;
    631631
     632#ifndef RT_OS_OS2
    632633    devNull = PR_Open("/dev/null", PR_RDWR, 0);
     634#else
     635    devNull = PR_Open("/dev/nul", PR_RDWR, 0);
     636#endif
    633637    if (!devNull)
    634638        goto end;
    635639