VBoxHostVersion.cpp revision f2d0753897caed541f3318cab1778c67792ca523
/* $Id$ */
/** @file
* VBoxHostVersion - Checks the host's VirtualBox version and notifies
* the user in case of an update.
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
#include "VBoxHostVersion.h"
#include "VBoxTray.h"
#include "helpers.h"
#include <VBox/VBoxGuestLib.h>
int VBoxCheckHostVersion ()
{
int rc;
char *pszHostVersion;
char *pszGuestVersion;
if (RT_SUCCESS(rc))
{
char szTitle[64];
/** @todo add some translation macros here */
"We recommend updating to the latest version (%s) by choosing the "
if (RT_FAILURE(rc))
}
/* If we didn't have to check for the host version then this is not an error */
if (rc == VERR_NOT_SUPPORTED)
rc = VINF_SUCCESS;
return rc;
}