VirtualBox

Changeset 17837 in vbox


Ignore:
Timestamp:
Mar 13, 2009 3:28:59 PM (16 years ago)
Author:
vboxsync
Message:

Cbinding: added a function to get vbox version.

Location:
trunk/src/VBox/Main/cbinding
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/VBoxXPCOMC.cpp

    r17793 r17837  
    3131#include "VBoxCAPI_v2_2.h"
    3232#include "VBox/com/com.h"
     33#include "VBox/version.h"
    3334
    3435using namespace std;
     
    143144}
    144145
     146uint32_t
     147VBoxVersion(void)
     148{
     149    uint32_t version = 0;
     150
     151    version = (VBOX_VERSION_MAJOR * 1000 * 1000) + (VBOX_VERSION_MINOR * 1000) + (VBOX_VERSION_BUILD);
     152
     153    return version;
     154}
    145155
    146156VBOXXPCOMC_DECL(PCVBOXXPCOM)
     
    152162        sizeof(VBOXXPCOMC),
    153163        VBOX_XPCOMC_VERSION,
     164
     165        VBoxVersion,
    154166
    155167        VBoxComInitialize,
  • trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c

    r17821 r17837  
    190190    if (g_hVBoxXPCOMC)
    191191    {
    192         dlclose(g_hVBoxXPCOMC);
     192        /* VBoxRT.so doesn't like being reloaded and it asserts at:
     193         * Expression: g_szrtProcExePath[0] != '\0'
     194         * Location  : src/VBox/Runtime/r3/process.cpp(100) char* RTProcGetExecutableName(char*, size_t)
     195         * so for time being not comment the following line
     196         */
     197        /* dlclose(g_hVBoxXPCOMC); */
    193198        g_hVBoxXPCOMC = NULL;
    194199    }
  • trunk/src/VBox/Main/cbinding/xpcidl.xsl

    r17757 r17837  
    600600    /** The structure version. */
    601601    unsigned uVersion;
     602
     603    unsigned int (*pfnGetVersion)(void);
     604
    602605    void  (*pfnComInitialize)(IVirtualBox **virtualBox, ISession **session);
    603606    void  (*pfnComUninitialize)(void);
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