VirtualBox

Ignore:
Timestamp:
Mar 3, 2015 8:28:01 PM (10 years ago)
Author:
vboxsync
Message:

VBoxGuest: cleanups, mainly fixing and shortening function name prefixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestInternal.h

    r54606 r54608  
    55
    66/*
    7  * Copyright (C) 2010-2014 Oracle Corporation
     7 * Copyright (C) 2010-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6565    uint32_t volatile           fResEvents;
    6666#ifdef VBOXGUEST_USE_DEFERRED_WAKE_UP
    67     /** Set by VBoxGuestWaitDoWakeUps before leaving the spinlock to call
     67    /** Set by VbgdCommonWaitDoWakeUps before leaving the spinlock to call
    6868     *  RTSemEventMultiSignal. */
    6969    bool volatile               fPendingWakeUp;
    7070    /** Set by the requestor thread if it got the spinlock before the
    71      * signaller.  Deals with the race in VBoxGuestWaitDoWakeUps. */
     71     * signaller.  Deals with the race in VbgdCommonWaitDoWakeUps. */
    7272    bool volatile               fFreeMe;
    7373#endif
     
    314314RT_C_DECLS_BEGIN
    315315
    316 int  VBoxGuestInitDevExt(PVBOXGUESTDEVEXT pDevExt, uint16_t IOPortBase, void *pvMMIOBase, uint32_t cbMMIO, VBOXOSTYPE enmOSType, uint32_t fEvents);
    317 bool VBoxGuestCommonISR(PVBOXGUESTDEVEXT pDevExt);
    318 void VBoxGuestDeleteDevExt(PVBOXGUESTDEVEXT pDevExt);
    319 int  VBoxGuestReinitDevExtAfterHibernation(PVBOXGUESTDEVEXT pDevExt, VBOXOSTYPE enmOSType);
    320 int  VBoxGuestSetGuestCapabilities(uint32_t fOr, uint32_t fNot);
     316int  VbgdCommonInitDevExt(PVBOXGUESTDEVEXT pDevExt, uint16_t IOPortBase, void *pvMMIOBase, uint32_t cbMMIO,
     317                          VBOXOSTYPE enmOSType, uint32_t fEvents);
     318bool VbgdCommonISR(PVBOXGUESTDEVEXT pDevExt);
     319void VbgdCommonDeleteDevExt(PVBOXGUESTDEVEXT pDevExt);
     320int  VbgdCommonReinitDevExtAfterHibernation(PVBOXGUESTDEVEXT pDevExt, VBOXOSTYPE enmOSType);
    321321#ifdef VBOXGUEST_USE_DEFERRED_WAKE_UP
    322 void VBoxGuestWaitDoWakeUps(PVBOXGUESTDEVEXT pDevExt);
    323 #endif
    324 
    325 int  VBoxGuestCreateUserSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
    326 int  VBoxGuestCreateKernelSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
    327 void VBoxGuestCloseSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession);
    328 
    329 int  VBoxGuestCommonIOCtlFast(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession);
    330 int  VBoxGuestCommonIOCtl(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession,
    331                           void *pvData, size_t cbData, size_t *pcbDataReturned);
    332 
    333 #if defined(RT_OS_SOLARIS) \
    334  || defined(RT_OS_FREEBSD) \
    335  || defined(RT_OS_LINUX)
    336 DECLVBGL(void *) VBoxGuestNativeServiceOpen(uint32_t *pu32Version);
    337 DECLVBGL(void)   VBoxGuestNativeServiceClose(void *pvOpaque);
    338 DECLVBGL(int)    VBoxGuestNativeServiceCall(void *pvOpaque, unsigned int iCmd, void *pvData, size_t cbSize, size_t *pcbReturn);
    339 #endif
     322void VbgdCommonWaitDoWakeUps(PVBOXGUESTDEVEXT pDevExt);
     323#endif
     324
     325int  VbgdCommonCreateUserSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
     326int  VbgdCommonCreateKernelSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION *ppSession);
     327void VbgdCommonCloseSession(PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession);
     328
     329int  VbgdCommonIoCtlFast(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession);
     330int  VbgdCommonIoCtl(unsigned iFunction, PVBOXGUESTDEVEXT pDevExt, PVBOXGUESTSESSION pSession,
     331                     void *pvData, size_t cbData, size_t *pcbDataReturned);
    340332
    341333/**
     
    347339 * @param   pDevExt     The device extension.
    348340 */
    349 void VBoxGuestNativeISRMousePollEvent(PVBOXGUESTDEVEXT pDevExt);
     341void VbgdNativeISRMousePollEvent(PVBOXGUESTDEVEXT pDevExt);
    350342
    351343
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