VirtualBox

Changeset 29043 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 4, 2010 8:29:57 PM (15 years ago)
Author:
vboxsync
Message:

Additions: report VMMDevReq_ReportGuestInfo2 in addition to VMMDevReq_ReportGuestInfo

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
3 edited

Legend:

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

    r28800 r29043  
    3434#ifdef VBOX_WITH_HGCM
    3535# include <iprt/thread.h>
     36#endif
     37#include "version-generated.h"
     38#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
     39# include "revision-generated.h"
    3640#endif
    3741
     
    273277        VbglGRFree(&pReq->header);
    274278    }
     279    VMMDevReportGuestInfo2 *pReq2;
     280    if (RT_SUCCESS(rc))
     281        rc = VbglGRAlloc((VMMDevRequestHeader **)&pReq2, sizeof(*pReq2), VMMDevReq_ReportGuestInfo2);
     282    if (RT_SUCCESS(rc))
     283    {
     284        pReq2->guestInfo.additionsMajor = VBOX_VERSION_MAJOR;
     285        pReq2->guestInfo.additionsMinor = VBOX_VERSION_MINOR;
     286        pReq2->guestInfo.additionsBuild = VBOX_VERSION_BUILD;
     287        pReq2->guestInfo.additionsRevision = VBOX_SVN_REV;
     288        pReq2->guestInfo.additionsFeatures = 0;
     289        RTStrCopy(pReq2->guestInfo.szName, sizeof(pReq2->guestInfo.szName), VBOX_VERSION_STRING);
     290        rc = VbglGRPerform(&pReq2->header);
     291        if (rc == VERR_NOT_IMPLEMENTED) /* compatibility with older guests */
     292            rc = VINF_SUCCESS;
     293        if (    RT_FAILURE(rc)
     294            ||  RT_FAILURE(pReq2->header.rc))
     295            LogRel(("vboxGuestInitReportGuestInfo2: failed with rc=%Rrc and VMMDev rc=%Rrc\n",
     296                    rc, pReq2->header.rc));
     297        VbglGRFree(&pReq2->header);
     298    }
    275299    return rc;
    276300}
  • trunk/src/VBox/Additions/common/VBoxGuest/freebsd/files_vboxguest

    r27149 r29043  
    175175    ${PATH_ROOT}/src/VBox/Runtime/VBox/logbackdoor.cpp=>VBox/logbackdoor.c \
    176176    ${PATH_OUT}/version-generated.h=>version-generated.h \
     177    ${PATH_OUT}/revision-generated.h=>revision-generated.h \
    177178"
    178179
  • trunk/src/VBox/Additions/common/VBoxGuest/linux/files_vboxguest

    r28800 r29043  
    142142    ${PATH_OUT}/version-generated.h=>version-generated.h \
    143143    ${PATH_OUT}/product-generated.h=>product-generated.h \
     144    ${PATH_OUT}/revision-generated.h=>revision-generated.h \
    144145"
    145146
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