VirtualBox

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


Ignore:
Timestamp:
Aug 3, 2009 2:38:55 PM (15 years ago)
Author:
vboxsync
Message:

VBoxService: Added slightly modified patch to report the Guest Additions version on non-Windows systems.

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

Legend:

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

    r21250 r21941  
    7676VBoxServiceNT_DEFS.win    = _WIN32_WINNT=0x0400 _UNICODE UNICODE TARGET_NT4
    7777
     78#VBoxServiceVMInfo.cpp uses VBOX_SVN_REV.
     79VBoxServiceVMInfo.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
     80VBoxServiceVMInfo.cpp_DEPS = $(VBOX_SVN_REV_KMK)
     81
    7882#
    7983# The icon is configurable.
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r21528 r21941  
    5252#include <iprt/time.h>
    5353#include <iprt/assert.h>
     54#include <VBox/version.h>
    5455#include <VBox/VBoxGuestLib.h>
    5556#include "VBoxServiceInternal.h"
     
    174175    rc = VboxServiceWinGetComponentVersions(g_VMInfoGuestPropSvcClientID);
    175176#else
    176     /** @todo */
     177    /* VboxServiceGetAddsVersion !RT_OS_WINDOWS */
     178    VboxServiceWriteProp(g_VMInfoGuestPropSvcClientID, "GuestAdd/Version", VBOX_VERSION_STRING);
     179
     180    char szRevision[32] = {0};
     181    RTStrPrintf(szRevision, sizeof(szRevision), "%lu", VBOX_SVN_REV);
     182    VboxServiceWriteProp(g_VMInfoGuestPropSvcClientID, "GuestAdd/Revision", szRevision);
    177183#endif
    178184
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