VirtualBox

Changeset 16016 in vbox for trunk/src


Ignore:
Timestamp:
Jan 18, 2009 12:25:10 AM (16 years ago)
Author:
vboxsync
Message:

Main: FreeBSD stubbing.

Location:
trunk/src/VBox/Main
Files:
1 added
2 edited
1 copied

Legend:

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

    r16005 r16016  
    15151515#elif defined(RT_OS_LINUX)
    15161516/// @todo aleksey: is there anything to be done here?
     1517#elif defined(RT_OS_FREEBSD)
     1518/** @todo FreeBSD: Check out this later (HIF networking). */
    15171519#else
    15181520# error "Port me"
  • trunk/src/VBox/Main/Makefile.kmk

    r15708 r16016  
    329329        Performance.cpp
    330330 VBoxSVC_SOURCES.darwin  +=  darwin/PerformanceDarwin.cpp
     331 VBoxSVC_SOURCES.freebsd += freebsd/PerformanceFreeBSD.cpp
    331332 VBoxSVC_SOURCES.linux   +=   linux/PerformanceLinux.cpp
    332333 VBoxSVC_SOURCES.os2     +=     os2/PerformanceOs2.cpp
  • trunk/src/VBox/Main/freebsd/PerformanceFreeBSD.cpp

    r16004 r16016  
    11/* $Id$ */
    2 
    32/** @file
    4  *
    5  * VBox OS/2-specific Performance Classes implementation.
     3 * VirtualBox Performance Collector, FreeBSD Specialization.
    64 */
    75
    86/*
    9  * Copyright (C) 2008 Sun Microsystems, Inc.
     7 * Copyright (C) 2008-2009 Sun Microsystems, Inc.
    108 *
    119 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2624namespace pm {
    2725
    28 class CollectorOS2 : public CollectorHAL
     26class CollectorFreeBSD : public CollectorHAL
    2927{
    3028public:
     
    3937CollectorHAL *createHAL()
    4038{
    41     return new CollectorOS2();
     39    return new CollectorFreeBSD();
    4240}
    4341
    44 int CollectorOS2::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
     42int CollectorFreeBSD::getHostCpuLoad(ULONG *user, ULONG *kernel, ULONG *idle)
    4543{
    4644    return E_NOTIMPL;
    4745}
    4846
    49 int CollectorOS2::getHostCpuMHz(ULONG *mhz)
     47int CollectorFreeBSD::getHostCpuMHz(ULONG *mhz)
    5048{
    5149    return E_NOTIMPL;
    5250}
    5351
    54 int CollectorOS2::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
     52int CollectorFreeBSD::getHostMemoryUsage(ULONG *total, ULONG *used, ULONG *available)
    5553{
    5654    return E_NOTIMPL;
    5755}
    5856
    59 int CollectorOS2::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
     57int CollectorFreeBSD::getProcessCpuLoad(RTPROCESS process, ULONG *user, ULONG *kernel)
    6058{
    6159    return E_NOTIMPL;
    6260}
    6361
    64 int CollectorOS2::getProcessMemoryUsage(RTPROCESS process, ULONG *used)
     62int CollectorFreeBSD::getProcessMemoryUsage(RTPROCESS process, ULONG *used)
    6563{
    6664    return E_NOTIMPL;
    6765}
    6866
    69 }
     67} /* namespace pm */
     68
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