Blame client/Wayland/wlfreerdp.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Wayland Client
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2014 Manuel Bachmann <tarnyko@tarnyko.net>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CLIENT_WAYLAND_FREERDP_H
Packit 1fb8d4
#define FREERDP_CLIENT_WAYLAND_FREERDP_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/client/encomsp.h>
Packit 1fb8d4
#include <freerdp/client/rdpei.h>
Packit 1fb8d4
#include <freerdp/gdi/gfx.h>
Packit 1fb8d4
#include <freerdp/freerdp.h>
Packit 1fb8d4
#include <freerdp/log.h>
Packit 1fb8d4
#include <winpr/wtypes.h>
Packit 1fb8d4
#include <uwac/uwac.h>
Packit 1fb8d4
Packit 1fb8d4
typedef struct wlf_context wlfContext;
Packit Service 5a9772
typedef struct wlf_clipboard wfClipboard;
Packit Service 5a9772
typedef struct _wlfDispContext wlfDispContext;
Packit 1fb8d4
Packit 1fb8d4
struct wlf_context
Packit 1fb8d4
{
Packit 1fb8d4
	rdpContext context;
Packit 1fb8d4
Packit 1fb8d4
	UwacDisplay* display;
Packit 1fb8d4
	HANDLE displayHandle;
Packit 1fb8d4
	UwacWindow* window;
Packit Service 5a9772
	UwacSeat* seat;
Packit 1fb8d4
Packit Service 5a9772
	BOOL fullscreen;
Packit 1fb8d4
Packit 1fb8d4
	/* Channels */
Packit 1fb8d4
	RdpeiClientContext* rdpei;
Packit 1fb8d4
	RdpgfxClientContext* gfx;
Packit 1fb8d4
	EncomspClientContext* encomsp;
Packit Service 5a9772
	wfClipboard* clipboard;
Packit Service 5a9772
	wlfDispContext* disp;
Packit Service 5a9772
	wLog* log;
Packit 1fb8d4
};
Packit 1fb8d4
Packit Service 5a9772
BOOL wlf_scale_coordinates(rdpContext* context, UINT32* px, UINT32* py, BOOL fromLocalToRDP);
Packit Service 5a9772
BOOL wlf_copy_image(const void* src, size_t srcStride, size_t srcWidth, size_t srcHeight, void* dst,
Packit Service 5a9772
                    size_t dstStride, size_t dstWidth, size_t dstHeight, const RECTANGLE_16* area,
Packit Service 5a9772
                    BOOL scale);
Packit 1fb8d4
Packit Service 5a9772
#endif /* FREERDP_CLIENT_WAYLAND_FREERDP_H */