FramebufferVNC.h revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $Id$ */
/** @file
* VBox Remote Desktop Protocol - VNC server interface.
*/
/*
* Contributed by Ivo Smits <Ivo@UFO-Net.nl>
*
* Copyright (C) 2006-2007 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.
*/
#include <iprt/initterm.h>
#include <iprt/critsect.h>
#include <pthread.h>
{
#ifndef VBOX_WITH_XPCOM
return ::InterlockedIncrement (&refcnt);
}
return cnt;
}
#endif
// public methods only for internal purposes
/** Guest framebuffer pixel format */
/** Guest framebuffer color depth */
/** Guest framebuffer line length */
//Our own framebuffer, in case we can't use the VRAM
//The source framebuffer (either our own mRGBBuffer or the guest VRAM)
//VNC display framebuffer (RGB -> BGR converted)
int mVncPort;
int kbdShiftState;
void kbdSetShift(int state);
void kbdPutCode(int code);
/** The password that was passed to the constructor. NULL if no
* authentication required. */
char const *mVncPassword;
void handleVncMouseEvent(int buttonMask, int x, int y);
void handleVncKeyboardReleaseEvent();
#ifndef VBOX_WITH_XPCOM
long refcnt;
#endif
};