VirtualBox

Ignore:
Timestamp:
Oct 8, 2010 10:23:59 AM (14 years ago)
Author:
vboxsync
Message:

Renamed VBox-VRDP interface to VRDE.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Display
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdp.c

    r32354 r33004  
    2020#include "driver.h"
    2121#include "vrdpbmp.h"
    22 #include <VBox/VRDPOrders.h>
     22#include <VBox/RemoteDesktop/VRDEOrders.h>
    2323
    2424#define VRDP_MAKE_OP(__c) (__c)
     
    372372    BOOL bRc = FALSE;
    373373
    374     VRDPDATABITS bits;
     374    VRDEDATABITS bits;
    375375
    376376    bits.cb      = cHeight * cWidth * bytesPerPixel;
     
    436436    if (bytesPerPixel > 0)
    437437    {
    438         bRc = vrdpWriteHdr (ppdev, VRDP_MAKE_OP(VRDP_ORDER_DIRTY_RECT));
     438        bRc = vrdpWriteHdr (ppdev, VRDP_MAKE_OP(VRDE_ORDER_DIRTY_RECT));
    439439
    440440        if (bRc)
     
    512512                              const RECTL *prcl)
    513513{
    514     VRDPORDERBOUNDS bounds;
     514    VRDEORDERBOUNDS bounds;
    515515
    516516    bounds.pt1.x = (int16_t)(prcl->left);
     
    519519    bounds.pt2.y = (int16_t)(prcl->bottom);
    520520
    521     return vrdpReportOrder (ppdev, &bounds, sizeof (bounds), VRDP_ORDER_BOUNDS);
     521    return vrdpReportOrder (ppdev, &bounds, sizeof (bounds), VRDE_ORDER_BOUNDS);
    522522}
    523523
     
    535535        for (; i < pRects->c; i++, prcl++)
    536536        {
    537             VRDPORDERREPEAT repeat;
     537            VRDEORDERREPEAT repeat;
    538538
    539539            repeat.bounds.pt1.x = (int16_t)(prcl->left);
     
    542542            repeat.bounds.pt2.y = (int16_t)(prcl->bottom);
    543543
    544             bRc = vrdpReportOrder (ppdev, &repeat, sizeof (repeat), VRDP_ORDER_REPEAT);
     544            bRc = vrdpReportOrder (ppdev, &repeat, sizeof (repeat), VRDE_ORDER_REPEAT);
    545545
    546546            if (!bRc)
     
    556556static BOOL vrdpIntersectRectWithBounds (RECTL *prclIntersect,
    557557                                         const RECTL *prcl,
    558                                          const VRDPORDERBOUNDS *pBounds)
     558                                         const VRDEORDERBOUNDS *pBounds)
    559559{
    560560    if (   prcl->left   < pBounds->pt2.x     /* left < bounds_right */
     
    582582static BOOL vrdpGetIntersectingRects (CLIPRECTS *pRects,
    583583                                      const VRDPCLIPRECTS *pClipRects,
    584                                       const VRDPORDERBOUNDS *pBounds)
     584                                      const VRDEORDERBOUNDS *pBounds)
    585585{
    586586    BOOL fReportOrder = TRUE;
     
    663663static void vrdpReportOrderGenericBounds (PPDEV ppdev,
    664664                                          const VRDPCLIPRECTS *pClipRects,
    665                                           const VRDPORDERBOUNDS *pBounds,
     665                                          const VRDEORDERBOUNDS *pBounds,
    666666                                          const void *pvOrder,
    667667                                          unsigned cbOrder,
     
    681681                                 ULONG rgb)
    682682{
    683     VRDPORDERSOLIDRECT order;
     683    VRDEORDERSOLIDRECT order;
    684684
    685685    order.x     = (int16_t)prclTrg->left;
     
    689689    order.rgb   = rgb;
    690690
    691     vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDP_ORDER_SOLIDRECT);
     691    vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SOLIDRECT);
    692692}
    693693
     
    698698                                uint8_t rop3)
    699699{
    700     VRDPORDERSOLIDBLT order;
     700    VRDEORDERSOLIDBLT order;
    701701
    702702    order.x     = (int16_t)prclTrg->left;
     
    707707    order.rop   = rop3;
    708708
    709     vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDP_ORDER_SOLIDBLT);
     709    vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SOLIDBLT);
    710710}
    711711
     
    717717                              uint8_t rop3)
    718718{
    719     VRDPORDERPATBLTBRUSH order;
     719    VRDEORDERPATBLTBRUSH order;
    720720
    721721    int8_t xSrc = 0;
     
    757757    memcpy (order.pattern, pBrush->u.pat.au8Pattern, sizeof (order.pattern));
    758758
    759     vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDP_ORDER_PATBLTBRUSH);
     759    vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_PATBLTBRUSH);
    760760}
    761761
     
    765765                              uint8_t rop3)
    766766{
    767     VRDPORDERDSTBLT order;
     767    VRDEORDERDSTBLT order;
    768768
    769769    order.x     = (int16_t)prclTrg->left;
     
    773773    order.rop   = rop3;
    774774
    775     vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDP_ORDER_DSTBLT);
     775    vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_DSTBLT);
    776776}
    777777
     
    782782                                 uint8_t rop3)
    783783{
    784     VRDPORDERSCREENBLT order;
     784    VRDEORDERSCREENBLT order;
    785785
    786786    order.x     = (int16_t)prclTrg->left;
     
    792792    order.rop   = rop3;
    793793
    794     vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDP_ORDER_SCREENBLT);
     794    vrdpReportOrderGeneric (ppdev, pClipRects, &order, sizeof (order), VRDE_ORDER_SCREENBLT);
    795795}
    796796
     
    802802                                  const VRDPBCHASH *phash)
    803803{
    804     VRDPORDERMEMBLT order;
     804    VRDEORDERMEMBLT order;
    805805
    806806    order.x    = (int16_t)prcl->left;
     
    815815    memcpy (order.hash, phash, sizeof (*phash));
    816816
    817     vrdpReportOrder (ppdev, &order, sizeof (order), VRDP_ORDER_MEMBLT);
     817    vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_MEMBLT);
    818818}
    819819
     
    854854    BOOL bRc;
    855855
    856     VRDPORDERCACHEDBITMAP order;
     856    VRDEORDERCACHEDBITMAP order;
    857857
    858858    VBVA_ASSERT(sizeof (*phash) == sizeof (order.hash));
    859859    memcpy (order.hash, phash, sizeof (*phash));
    860860
    861     bRc = vrdpReportOrder (ppdev, &order, sizeof (order), VRDP_ORDER_CACHED_BITMAP);
     861    bRc = vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_CACHED_BITMAP);
    862862
    863863    if (bRc)
     
    879879                                     const VRDPBCHASH *phash)
    880880{
    881     VRDPORDERDELETEDBITMAP order;
     881    VRDEORDERDELETEDBITMAP order;
    882882
    883883    VBVA_ASSERT(sizeof (*phash) == sizeof (order.hash));
    884884    memcpy (order.hash, phash, sizeof (*phash));
    885885
    886     vrdpReportOrder (ppdev, &order, sizeof (order), VRDP_ORDER_DELETED_BITMAP);
     886    vrdpReportOrder (ppdev, &order, sizeof (order), VRDE_ORDER_DELETED_BITMAP);
    887887}
    888888
     
    12521252    else
    12531253    {
    1254         VRDPORDERLINE order;
     1254        VRDEORDERLINE order;
    12551255
    12561256        order.x1 = (int16_t)x1;
     
    12711271                    prclBounds->left, prclBounds->right, prclBounds->top, prclBounds->bottom, clipRects.rects.c));
    12721272
    1273         vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDP_ORDER_LINE);
     1273        vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDE_ORDER_LINE);
    12741274    }
    12751275}
     
    13351335}
    13361336
    1337 static void vrdpPointFX2Point (const POINTFIX *pptfx, VRDPORDERPOINT *ppt)
     1337static void vrdpPointFX2Point (const POINTFIX *pptfx, VRDEORDERPOINT *ppt)
    13381338{
    13391339    ppt->x = (int16_t)FXTOLROUND(pptfx->x);
     
    13411341}
    13421342
    1343 static void vrdpPolyPointsAdd (VRDPORDERPOLYPOINTS *pPoints, const VRDPORDERPOINT *ppt)
     1343static void vrdpPolyPointsAdd (VRDEORDERPOLYPOINTS *pPoints, const VRDEORDERPOINT *ppt)
    13441344{
    13451345    VBVA_ASSERT(pPoints->c < RT_ELEMENTS(pPoints->a));
     
    13501350}
    13511351
    1352 static void vrdpExtendOrderBounds (VRDPORDERBOUNDS *pBounds, const VRDPORDERPOINT *ppt)
     1352static void vrdpExtendOrderBounds (VRDEORDERBOUNDS *pBounds, const VRDEORDERPOINT *ppt)
    13531353{
    13541354    /* Bounds have inclusive pt1 and exclusive pt2. */
     
    14341434    else if (ppo->fl & PO_ELLIPSE)
    14351435    {
    1436         if (vboxOrderSupported (ppdev, VRDP_ORDER_ELLIPSE))
    1437         {
    1438             VRDPORDERELLIPSE order;
     1436        if (vboxOrderSupported (ppdev, VRDE_ORDER_ELLIPSE))
     1437        {
     1438            VRDEORDERELLIPSE order;
    14391439
    14401440            order.pt1.x = (int16_t)FXTOLROUND(rcfxBounds.xLeft   + 4);
     
    14471447            order.rgb = vrdpColor2RGB (pso, pbo->iSolidColor);
    14481448
    1449             vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDP_ORDER_ELLIPSE);
     1449            vrdpReportOrderGeneric (ppdev, &clipRects, &order, sizeof (order), VRDE_ORDER_ELLIPSE);
    14501450        }
    14511451        else
     
    14621462        PATHDATA pd;
    14631463        BOOL bMore;
    1464         VRDPORDERPOLYLINE order;
    1465         VRDPORDERPOINT ptStart;
    1466         VRDPORDERBOUNDS bounds;
     1464        VRDEORDERPOLYLINE order;
     1465        VRDEORDERPOINT ptStart;
     1466        VRDEORDERBOUNDS bounds;
    14671467
    14681468        order.rgb = vrdpColor2RGB (pso, pbo->iSolidColor);
     
    14751475        do {
    14761476            POINTFIX *pptfx;
    1477             VRDPORDERPOINT pt;
     1477            VRDEORDERPOINT pt;
    14781478
    14791479            bMore = PATHOBJ_bEnum (ppo, &pd);
     
    15201520                    DISPDBG((1, "vrdpStrokePath: Report order, points overflow.\n"));
    15211521
    1522                     vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDP_ORDER_POLYLINE);
     1522                    vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDE_ORDER_POLYLINE);
    15231523
    15241524                    order.points.c = 0;
     
    15501550                if (order.points.c > 0)
    15511551                {
    1552                     vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDP_ORDER_POLYLINE);
     1552                    vrdpReportOrderGenericBounds (ppdev, &clipRects, &bounds, &order, sizeof (order), VRDE_ORDER_POLYLINE);
    15531553                }
    15541554
     
    17271727        case SS_SAVE:
    17281728        {
    1729             VRDPORDERSAVESCREEN order;
     1729            VRDEORDERSAVESCREEN order;
    17301730
    17311731            order.pt1.x = (int16_t)prcl->left;
     
    17371737            order.restore = 0;
    17381738
    1739             vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDP_ORDER_SAVESCREEN);
     1739            vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDE_ORDER_SAVESCREEN);
    17401740        } break;
    17411741
    17421742        case SS_RESTORE:
    17431743        {
    1744             VRDPORDERSAVESCREEN order;
     1744            VRDEORDERSAVESCREEN order;
    17451745
    17461746            order.pt1.x = (int16_t)prcl->left;
     
    17521752            order.restore = 1;
    17531753
    1754             if (vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDP_ORDER_SAVESCREEN))
     1754            if (vrdpReportOrderGeneric (ppdev, NULL, &order, sizeof (order), VRDE_ORDER_SAVESCREEN))
    17551755            {
    17561756                uint8_t *pu8Bits;
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdpbmp.c

    r31847 r33004  
    2222#include "vrdpbmp.h"
    2323#include <iprt/crc.h>
    24 #include <VBox/VRDPOrders.h>
     24#include <VBox/RemoteDesktop/VRDEOrders.h>
    2525
    2626/*
     
    211211    int i;
    212212
    213     VBVA_ASSERT(sizeof (VRDPBCHASH) == sizeof (VRDPBITMAPHASH));
     213    VBVA_ASSERT(sizeof (VRDPBCHASH) == sizeof (VRDEBITMAPHASH));
    214214
    215215    /* Reinitialize the cache structure. */
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vrdptext.c

    r31847 r33004  
    1919
    2020#include "driver.h"
    21 #include <VBox/VRDPOrders.h>
     21#include <VBox/RemoteDesktop/VRDEOrders.h>
    2222#include <iprt/crc.h>
    2323
     
    7171 *       represents a 'space' character might allow some optimizations.
    7272 *
    73  * The VRDPORDERTEXT consists of the string info and glyph infos.
     73 * The VRDEORDERTEXT consists of the string info and glyph infos.
    7474 *
    7575 */
     
    8080    uint32_t cbBitmap;
    8181
    82     VRDPORDERGLYPH *pOrder = (VRDPORDERGLYPH *)*ppu8Ptr;
     82    VRDEORDERGLYPH *pOrder = (VRDEORDERGLYPH *)*ppu8Ptr;
    8383
    8484    GLYPHBITS *pgb = pGlyphPos->pgdf->pgb;
     
    124124static uint32_t vboxSizeofTextOrder (ULONG cGlyphs, ULONG cbMaxGlyph)
    125125{
    126     uint32_t cb = sizeof (VRDPORDERTEXT);
    127 
    128     cb += cGlyphs * (sizeof (VRDPORDERGLYPH) + cbMaxGlyph);
     126    uint32_t cb = sizeof (VRDEORDERTEXT);
     127
     128    cb += cGlyphs * (sizeof (VRDEORDERGLYPH) + cbMaxGlyph);
    129129
    130130    return cb;
     
    142142    FONTINFO fi;
    143143    uint32_t cbOrderMax;
    144     VRDPORDERTEXT *pOrder;
     144    VRDEORDERTEXT *pOrder;
    145145    BOOL fResult;
    146146    uint8_t *pu8GlyphPtr;
     
    180180    DISPDBG((1, "VRDP::vrdpReportText: pstro->cGlyphs = %d, fi.cjMaxGlyph1 = 0x%x, cbOrderMax = 0x%x.\n", pstro->cGlyphs, fi.cjMaxGlyph1, cbOrderMax));
    181181
    182     pOrder = (VRDPORDERTEXT *)EngAllocMem (0, cbOrderMax, ALLOC_TAG);
     182    pOrder = (VRDEORDERTEXT *)EngAllocMem (0, cbOrderMax, ALLOC_TAG);
    183183
    184184    if (!pOrder)
     
    261261        pOrder->cbOrder = (uint32_t)(pu8GlyphPtr - (uint8_t *)pOrder);
    262262
    263         vrdpReportOrderGeneric (ppdev, pClipRects, pOrder, pOrder->cbOrder, VRDP_ORDER_TEXT);
     263        vrdpReportOrderGeneric (ppdev, pClipRects, pOrder, pOrder->cbOrder, VRDE_ORDER_TEXT);
    264264    }
    265265
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