VirtualBox

Changeset 6246 in vbox


Ignore:
Timestamp:
Jan 4, 2008 7:18:18 PM (17 years ago)
Author:
vboxsync
Message:

hungarian and doxytalk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r6241 r6246  
    13591359# endif
    13601360VBGLR3DECL(int)     VbglR3InterruptEventWaits(void);
    1361 
    1362 /* Shared clipboard */
    1363 
     1361VBGLR3DECL(int)     VbglR3WriteLog(const char *pch, size_t cb);
     1362
     1363/** @name Shared clipboard
     1364 * @{ */
    13641365VBGLR3DECL(int)     VbglR3ClipboardConnect(uint32_t *pu32ClientId);
    13651366VBGLR3DECL(int)     VbglR3ClipboardDisconnect(uint32_t u32ClientId);
     
    13681369VBGLR3DECL(int)     VbglR3ClipboardReportFormats(uint32_t u32ClientId, uint32_t fFormats);
    13691370VBGLR3DECL(int)     VbglR3ClipboardWriteData(uint32_t u32ClientId, uint32_t fFormat, void *pv, uint32_t cb);
    1370 
    1371 /* Seamless mode */
    1372 
    1373 VBGLR3DECL(int)     VbglR3SeamlessSetCap(bool bState);
     1371/** @} */
     1372
     1373/** @name Seamless mode
     1374 * @{ */
     1375VBGLR3DECL(int)     VbglR3SeamlessSetCap(bool fState);
    13741376VBGLR3DECL(int)     VbglR3SeamlessWaitEvent(VMMDevSeamlessMode *pMode);
    13751377VBGLR3DECL(int)     VbglR3SeamlessSendRects(uint32_t cRects, PRTRECT pRects);
    1376 
    1377 /* Mouse */
    1378 
    1379 VBGLR3DECL(int)     VbglR3GetMouseStatus(uint32_t *pu32Features, uint32_t *pu32PointerX, uint32_t *pu32PointerY);
    1380 VBGLR3DECL(int)     VbglR3SetMouseStatus(uint32_t u32Features);
    1381 
    1382 /* Backdoor logging */
    1383 
    1384 VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cb);
     1378/** @}  */
     1379
     1380/** @name Mouse
     1381 * @{ */
     1382VBGLR3DECL(int)     VbglR3GetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py);
     1383VBGLR3DECL(int)     VbglR3SetMouseStatus(uint32_t fFeatures);
     1384/** @}  */
     1385
    13851386
    13861387__END_DECLS
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r6241 r6246  
    2424# define INCL_ERRORS
    2525# include <os2.h>
    26 #endif 
     26#endif
    2727
    2828#include <iprt/time.h>
     
    4949#if defined(RT_OS_OS2)
    5050    /*
    51      * We might wish to compile this with Watcom, so stick to 
    52      * the OS/2 APIs all the way. And in any case we have to use 
     51     * We might wish to compile this with Watcom, so stick to
     52     * the OS/2 APIs all the way. And in any case we have to use
    5353     * DosDevIOCtl for the requests, why not use Dos* for everything.
    5454     */
     
    107107    g_File = File;
    108108
    109 #endif 
     109#endif
    110110
    111111    return VINF_SUCCESS;
     
    131131/**
    132132 * Internal wrapper around various OS specific ioctl implemenations.
    133  * 
     133 *
    134134 * @returns VBox status code as returned by VBoxGuestCommonIOCtl, or
    135135 *          an failure returned by the OS specific ioctl APIs.
    136  * 
     136 *
    137137 * @param   iFunction   The requested function.
    138138 * @param   pvData      The input and output data buffer.
    139139 * @param   cbData      The size of the buffer.
    140  * 
     140 *
    141141 * @remark  Exactly how the VBoxGuestCommonIOCtl is ferried back
    142  *          here is OS specific. On BSD and Darwin we can use errno, 
     142 *          here is OS specific. On BSD and Darwin we can use errno,
    143143 *          while on OS/2 we use the 2nd buffer of the IOCtl.
    144144 */
     
    149149    int32_t vrc = VERR_INTERNAL_ERROR;
    150150    ULONG cbOS2Data = sizeof(vrc);
    151     APIRET rc = DosDevIOCtl(g_File, VBOXGUEST_IOCTL_CATEGORY, iFunction, 
     151    APIRET rc = DosDevIOCtl(g_File, VBOXGUEST_IOCTL_CATEGORY, iFunction,
    152152                            pvData, cbData, &cbOS2Parm,
    153153                            &vrc, sizeof(vrc), &cbOS2Data);
     
    157157
    158158    /* PORTME */
    159 #else 
     159#else
    160160    /* Defalut implementation (linux, solaris). */
    161161    int rc2 = VERR_INTERNAL_ERROR;
     
    173173
    174174    AssertPtrReturn(ppReq, VERR_INVALID_PARAMETER);
    175     AssertMsgReturn(cb >= sizeof(VMMDevRequestHeader), ("%#x vs %#zx\n", cb, sizeof(VMMDevRequestHeader)), 
     175    AssertMsgReturn(cb >= sizeof(VMMDevRequestHeader), ("%#x vs %#zx\n", cb, sizeof(VMMDevRequestHeader)),
    176176                    VERR_INVALID_PARAMETER);
    177177
     
    217217
    218218
    219 VBGLR3DECL(int) VbglR3GetMouseStatus(uint32_t *pu32Features, uint32_t *pu32PointerX, uint32_t *pu32PointerY)
     219VBGLR3DECL(int) VbglR3GetMouseStatus(uint32_t *pfFeatures, uint32_t *px, uint32_t *py)
    220220{
    221221    VMMDevReqMouseStatus Req;
     
    227227    if (RT_SUCCESS(rc))
    228228    {
    229         if (pu32Features)
    230             *pu32Features = Req.mouseFeatures;
    231         if (pu32PointerX)
    232             *pu32PointerX = Req.pointerXPos;
    233         if (pu32PointerY)
    234             *pu32PointerY = Req.pointerYPos;
     229        if (pfFeatures)
     230            *pfFeatures = Req.mouseFeatures;
     231        if (px)
     232            *px = Req.pointerXPos;
     233        if (py)
     234            *py = Req.pointerYPos;
    235235    }
    236236    return rc;
     
    238238
    239239
    240 VBGLR3DECL(int) VbglR3SetMouseStatus(uint32_t u32Features)
     240VBGLR3DECL(int) VbglR3SetMouseStatus(uint32_t fFeatures)
    241241{
    242242    VMMDevReqMouseStatus Req;
    243243    vmmdevInitRequest(&Req.header, VMMDevReq_SetMouseStatus);
    244     Req.mouseFeatures = u32Features;
     244    Req.mouseFeatures = fFeatures;
    245245    Req.pointerXPos = 0;
    246246    Req.pointerYPos = 0;
     
    250250
    251251/**
    252  * Cause any pending WaitEvent calls (VBOXGUEST_IOCTL_WAITEVENT) to return 
     252 * Cause any pending WaitEvent calls (VBOXGUEST_IOCTL_WAITEVENT) to return
    253253 * with a VERR_INTERRUPTED status.
    254  * 
    255  * Can be used in combination with a termination flag variable for interrupting 
     254 *
     255 * Can be used in combination with a termination flag variable for interrupting
    256256 * event loops. Avoiding race conditions is the responsibility of the caller.
    257257 *
     
    266266/**
    267267 * Write to the backdoor logger from ring 3 guest code.
    268  * 
     268 *
    269269 * @returns IPRT status code
    270  * 
     270 *
    271271 * @remakes This currently does not accept more than 255 bytes of data at
    272272 *          one time. It should probably be rewritten to use pass a pointer
     
    275275VBGLR3DECL(int) VbglR3WriteLog(const char *pch, size_t cb)
    276276{
    277     /* 
     277    /*
    278278     * Solaris does not accept more than 255 bytes of data per ioctl request,
    279279     * so split large string into 128 byte chunks to prevent truncation.
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