GenericRequest.cpp revision b1c1aaea5cf2f5540a82ee84f0913df6f4f30d0e
/** @file
*
* VBoxGuestLib - A support library for VirtualBox guest additions:
* Generic VMMDev request management
*/
/*
* Copyright (C) 2006 InnoTek Systemberatung GmbH
*
* 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 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.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#include <VBox/VBoxGuestLib.h>
#include "VBGLInternal.h"
{
if (VBOX_FAILURE(rc))
return rc;
{
return VERR_INVALID_PARAMETER;
}
if (!pReq)
{
dprintf(("VbglGRAlloc: no memory\n"));
rc = VERR_NO_MEMORY;
}
else
{
}
return rc;
}
{
if (VBOX_FAILURE(rc))
return rc;
if (!pReq)
return VERR_INVALID_PARAMETER;
if (g_vbgldata.portVMMDev == 0)
return VERR_VBGL_NOT_INITIALIZED;
if (!physaddr)
{
}
else
{
/* Make the compiler aware that the host has changed memory. */
}
return rc;
}
{
if (VBOX_FAILURE(rc))
return;
}