seamless.h revision 9d088c69cafcc736acc5bcc234c5ea68cf9e9620
/** @file
*
* Guest client: seamless mode.
*/
/*
* Copyright (C) 2006-2011 Oracle Corporation
*
* 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.
*/
#ifndef __Additions_xclient_seamless_h
# define __Additions_xclient_seamless_h
#include "seamless-host.h"
#include "seamless-x11.h"
{
bool isInitialised;
int init(void)
{
int rc = VINF_SUCCESS;
LogRelFlowFunc(("\n"));
if (isInitialised) /* Assertion */
{
LogRelFunc(("error: called a second time! (VBoxClient)\n"));
}
if (RT_SUCCESS(rc))
{
}
if (RT_SUCCESS(rc))
{
}
if (RT_SUCCESS(rc))
{
}
if (RT_SUCCESS(rc))
{
isInitialised = true;
}
if (RT_FAILURE(rc))
{
}
return rc;
}
{
LogRelFlowFunc(("\n"));
if (isInitialised)
{
isInitialised = false;
}
LogRelFlowFunc(("returning\n"));
}
VBoxGuestSeamless() { isInitialised = false; }
~VBoxGuestSeamless() { uninit(); }
};
#endif /* __Additions_xclient_seamless_h not defined */