VirtualBox

Changeset 10478 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jul 10, 2008 4:20:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33151
Message:

Guest Lib R3: More IOCTL handling for Windows (not tested yet!).

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk

    r10234 r10478  
    9898        VBoxGuestR3LibTime.cpp \
    9999        VBoxGuestR3LibVideo.cpp
    100 ifeq ($(KBUILD_TARGET),win) ## @todo get rid of this hack.
    101  VBoxGuestR3Lib_SOURCES   = VBoxGuestR3Lib.cpp
     100ifeq ($(KBUILD_TARGET),win) ## @todo get rid of this hack (as soon as it's all implemented / #defined).
     101 VBoxGuestR3Lib_SOURCES   = \
     102        VBoxGuestR3Lib.cpp \
     103        VBoxGuestR3LibMisc.cpp
    102104endif
    103105
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp

    r8155 r10478  
    5454VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cb)
    5555{
     56    int rc = VINF_SUCCESS;
     57
     58#if defined(RT_OS_WINDOWS)
     59
     60    rc = vbglR3DoIOCtl(VBOXGUEST_IOCTL_LOG(cb), (char *)pch, cb);
     61#else
     62
    5663    /*
    5764     * *BSD does not accept more than 4KB per ioctl request,
     
    5966     */
    6067#define STEP 2048
    61     int rc = VINF_SUCCESS;
    6268    for (size_t off = 0; off < cb && RT_SUCCESS(rc); off += STEP)
    6369    {
     
    6672    }
    6773#undef STEP
     74#endif
    6875    return rc;
    6976}
     
    7986VBGLR3DECL(int) VbglR3CtlFilterMask(uint32_t fOr, uint32_t fNot)
    8087{
     88
     89#if defined(RT_OS_WINDOWS)
     90
     91    /* @todo Not yet implemented. */
     92    return VINF_SUCCESS;
     93#else
     94
    8195    VBoxGuestFilterMaskInfo Info;
    8296    Info.u32OrMask = fOr;
    8397    Info.u32NotMask = fNot;
    8498    return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_FILTER_MASK, &Info, sizeof(Info));
     99#endif
    85100}
    86101
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