VirtualBox

Changeset 1906 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 4, 2007 1:40:36 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20156
Message:

The IHost part of #1912.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r1762 r1906  
    6060#include "Logging.h"
    6161
     62#ifdef __DARWIN__
     63#include "darwin/iokit.h"
     64#endif
     65
    6266#ifdef __WIN__
    6367#include "HostNetworkInterfaceImpl.h"
     
    226230        parseMountTable((char*)"/etc/fstab", list);
    227231    }
     232#elif defined(__DARWIN__)
     233    PDARWINDVD cur = DarwinGetDVDDrives();
     234    while (cur)
     235    {
     236        ComObjPtr<HostDVDDrive> hostDVDDriveObj;
     237        hostDVDDriveObj.createObject();
     238        hostDVDDriveObj->init(Bstr(cur->szName));
     239        list.push_back(hostDVDDriveObj);
     240
     241        /* next */
     242        void *freeMe = cur;
     243        cur = cur->pNext;
     244        RTMemFree(freeMe);
     245    }
     246
    228247#else
    229248    /* PORTME */
  • trunk/src/VBox/Main/Makefile

    r1872 r1906  
    182182endif
    183183
     184VBoxSVC_SOURCES.darwin = \
     185        darwin/iokit.cpp
     186
    184187VBoxSVC_SOURCES.win = \
    185188        HostNetworkInterfaceImpl.cpp \
     
    198201endif
    199202
     203VBoxSVC_LDFLAGS.darwin = -framework IOKit
    200204ifeq ($(BUILD_TYPE),debug)
    201205VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
     
    466470## @todo Figure out why Linux really needs this, darwin doesn't...
    467471xpcom-components_INST = $(INST_BIN)components/
    468 ifeq ($(BUILD_TARGET),linux) 
     472ifeq ($(BUILD_TARGET),linux)
    469473xpcom-components_SYMLINKS = \
    470474        VirtualBox_XPCOM.xpt=>../VirtualBox_XPCOM.xpt \
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