Blame server/shadow/X11/x11_shadow.h

Packit Service fa4841
/**
Packit Service fa4841
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit Service fa4841
 *
Packit Service fa4841
 * Copyright 2011-2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
 *
Packit Service fa4841
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
 * you may not use this file except in compliance with the License.
Packit Service fa4841
 * You may obtain a copy of the License at
Packit Service fa4841
 *
Packit Service fa4841
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
 *
Packit Service fa4841
 * Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
 * See the License for the specific language governing permissions and
Packit Service fa4841
 * limitations under the License.
Packit Service fa4841
 */
Packit Service fa4841
Packit Service fa4841
#ifndef FREERDP_SERVER_SHADOW_X11_H
Packit Service fa4841
#define FREERDP_SERVER_SHADOW_X11_H
Packit Service fa4841
Packit Service fa4841
#include <freerdp/server/shadow.h>
Packit Service fa4841
Packit Service fa4841
typedef struct x11_shadow_subsystem x11ShadowSubsystem;
Packit Service fa4841
Packit Service fa4841
#include <winpr/crt.h>
Packit Service fa4841
#include <winpr/synch.h>
Packit Service fa4841
#include <winpr/thread.h>
Packit Service fa4841
#include <winpr/stream.h>
Packit Service fa4841
#include <winpr/collections.h>
Packit Service fa4841
Packit Service fa4841
#include <X11/Xlib.h>
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XSHM
Packit Service fa4841
#include <X11/extensions/XShm.h>
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XFIXES
Packit Service fa4841
#include <X11/extensions/Xfixes.h>
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XTEST
Packit Service fa4841
#include <X11/extensions/XTest.h>
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XDAMAGE
Packit Service fa4841
#include <X11/extensions/Xdamage.h>
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XINERAMA
Packit Service fa4841
#include <X11/extensions/Xinerama.h>
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
struct x11_shadow_subsystem
Packit Service fa4841
{
Packit Service fa4841
	rdpShadowSubsystem common;
Packit Service fa4841
Packit Service fa4841
	HANDLE thread;
Packit Service fa4841
Packit Service fa4841
	UINT32 bpp;
Packit Service fa4841
	int xfds;
Packit Service fa4841
	UINT32 depth;
Packit Service fa4841
	UINT32 width;
Packit Service fa4841
	UINT32 height;
Packit Service fa4841
	int number;
Packit Service fa4841
	XImage* image;
Packit Service fa4841
	Screen* screen;
Packit Service fa4841
	Visual* visual;
Packit Service fa4841
	Display* display;
Packit Service fa4841
	UINT32 scanline_pad;
Packit Service fa4841
	BOOL composite;
Packit Service fa4841
Packit Service fa4841
	BOOL use_xshm;
Packit Service fa4841
	BOOL use_xfixes;
Packit Service fa4841
	BOOL use_xdamage;
Packit Service fa4841
	BOOL use_xinerama;
Packit Service fa4841
Packit Service fa4841
	XImage* fb_image;
Packit Service fa4841
	Pixmap fb_pixmap;
Packit Service fa4841
	Window root_window;
Packit Service fa4841
	XShmSegmentInfo fb_shm_info;
Packit Service fa4841
Packit Service fa4841
	UINT32 cursorHotX;
Packit Service fa4841
	UINT32 cursorHotY;
Packit Service fa4841
	UINT32 cursorWidth;
Packit Service fa4841
	UINT32 cursorHeight;
Packit Service fa4841
	UINT32 cursorId;
Packit Service fa4841
	BYTE* cursorPixels;
Packit Service fa4841
	UINT32 cursorMaxWidth;
Packit Service fa4841
	UINT32 cursorMaxHeight;
Packit Service fa4841
	rdpShadowClient* lastMouseClient;
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XDAMAGE
Packit Service fa4841
	GC xshm_gc;
Packit Service fa4841
	Damage xdamage;
Packit Service fa4841
	int xdamage_notify_event;
Packit Service fa4841
	XserverRegion xdamage_region;
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef WITH_XFIXES
Packit Service fa4841
	int xfixes_cursor_notify_event;
Packit Service fa4841
#endif
Packit Service fa4841
};
Packit Service fa4841
Packit Service fa4841
#ifdef __cplusplus
Packit Service b1ea74
extern "C"
Packit Service b1ea74
{
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#ifdef __cplusplus
Packit Service fa4841
}
Packit Service fa4841
#endif
Packit Service fa4841
Packit Service fa4841
#endif /* FREERDP_SERVER_SHADOW_X11_H */