|
Packit Service |
fa4841 |
/**
|
|
Packit Service |
fa4841 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit Service |
fa4841 |
* Graphics Pipeline Extension
|
|
Packit Service |
fa4841 |
*
|
|
Packit Service |
fa4841 |
* Copyright 2016 Jiang Zihao <zihao.jiang@yahoo.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_CHANNEL_RDPGFX_SERVER_RDPGFX_H
|
|
Packit Service |
fa4841 |
#define FREERDP_CHANNEL_RDPGFX_SERVER_RDPGFX_H
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#include <freerdp/channels/rdpgfx.h>
|
|
Packit Service |
b1ea74 |
#include <freerdp/freerdp.h>
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
typedef struct _rdpgfx_server_context RdpgfxServerContext;
|
|
Packit Service |
fa4841 |
typedef struct _rdpgfx_server_private RdpgfxServerPrivate;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
typedef BOOL (*psRdpgfxServerOpen)(RdpgfxServerContext* context);
|
|
Packit Service |
fa4841 |
typedef BOOL (*psRdpgfxServerClose)(RdpgfxServerContext* context);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxResetGraphics)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_RESET_GRAPHICS_PDU* resetGraphics);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxStartFrame)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_START_FRAME_PDU* startFrame);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxEndFrame)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_END_FRAME_PDU* endFrame);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxSurfaceCommand)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_SURFACE_COMMAND* cmd);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxSurfaceFrameCommand)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_SURFACE_COMMAND* cmd,
|
|
Packit Service |
b1ea74 |
const RDPGFX_START_FRAME_PDU* startFrame,
|
|
Packit Service |
b1ea74 |
const RDPGFX_END_FRAME_PDU* endFrame);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxDeleteEncodingContext)(
|
|
Packit Service |
b1ea74 |
RdpgfxServerContext* context, const RDPGFX_DELETE_ENCODING_CONTEXT_PDU* deleteEncodingContext);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCreateSurface)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CREATE_SURFACE_PDU* createSurface);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxDeleteSurface)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_DELETE_SURFACE_PDU* deleteSurface);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxSolidFill)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_SOLID_FILL_PDU* solidFill);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxSurfaceToSurface)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_SURFACE_TO_SURFACE_PDU* surfaceToSurface);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxSurfaceToCache)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_SURFACE_TO_CACHE_PDU* surfaceToCache);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCacheToSurface)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CACHE_TO_SURFACE_PDU* cacheToSurface);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCacheImportOffer)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CACHE_IMPORT_OFFER_PDU* cacheImportOffer);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCacheImportReply)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CACHE_IMPORT_REPLY_PDU* cacheImportReply);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxEvictCacheEntry)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_EVICT_CACHE_ENTRY_PDU* evictCacheEntry);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxMapSurfaceToOutput)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_MAP_SURFACE_TO_OUTPUT_PDU* surfaceToOutput);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxMapSurfaceToWindow)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_MAP_SURFACE_TO_WINDOW_PDU* surfaceToWindow);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxMapSurfaceToScaledOutput)(
|
|
Packit Service |
b1ea74 |
RdpgfxServerContext* context, const RDPGFX_MAP_SURFACE_TO_SCALED_OUTPUT_PDU* surfaceToOutput);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxMapSurfaceToScaledWindow)(
|
|
Packit Service |
b1ea74 |
RdpgfxServerContext* context, const RDPGFX_MAP_SURFACE_TO_SCALED_WINDOW_PDU* surfaceToWindow);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCapsAdvertise)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CAPS_ADVERTISE_PDU* capsAdvertise);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxCapsConfirm)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_CAPS_CONFIRM_PDU* capsConfirm);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxFrameAcknowledge)(RdpgfxServerContext* context,
|
|
Packit Service |
b1ea74 |
const RDPGFX_FRAME_ACKNOWLEDGE_PDU* frameAcknowledge);
|
|
Packit Service |
b1ea74 |
typedef UINT (*psRdpgfxQoeFrameAcknowledge)(
|
|
Packit Service |
b1ea74 |
RdpgfxServerContext* context, const RDPGFX_QOE_FRAME_ACKNOWLEDGE_PDU* qoeFrameAcknowledge);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
struct _rdpgfx_server_context
|
|
Packit Service |
fa4841 |
{
|
|
Packit Service |
fa4841 |
HANDLE vcm;
|
|
Packit Service |
fa4841 |
void* custom;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
psRdpgfxServerOpen Open;
|
|
Packit Service |
fa4841 |
psRdpgfxServerClose Close;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
psRdpgfxResetGraphics ResetGraphics;
|
|
Packit Service |
fa4841 |
psRdpgfxStartFrame StartFrame;
|
|
Packit Service |
fa4841 |
psRdpgfxEndFrame EndFrame;
|
|
Packit Service |
fa4841 |
psRdpgfxSurfaceCommand SurfaceCommand;
|
|
Packit Service |
fa4841 |
psRdpgfxSurfaceFrameCommand SurfaceFrameCommand;
|
|
Packit Service |
fa4841 |
psRdpgfxDeleteEncodingContext DeleteEncodingContext;
|
|
Packit Service |
fa4841 |
psRdpgfxCreateSurface CreateSurface;
|
|
Packit Service |
fa4841 |
psRdpgfxDeleteSurface DeleteSurface;
|
|
Packit Service |
fa4841 |
psRdpgfxSolidFill SolidFill;
|
|
Packit Service |
fa4841 |
psRdpgfxSurfaceToSurface SurfaceToSurface;
|
|
Packit Service |
fa4841 |
psRdpgfxSurfaceToCache SurfaceToCache;
|
|
Packit Service |
fa4841 |
psRdpgfxCacheToSurface CacheToSurface;
|
|
Packit Service |
fa4841 |
psRdpgfxCacheImportOffer CacheImportOffer;
|
|
Packit Service |
fa4841 |
psRdpgfxCacheImportReply CacheImportReply;
|
|
Packit Service |
fa4841 |
psRdpgfxEvictCacheEntry EvictCacheEntry;
|
|
Packit Service |
fa4841 |
psRdpgfxMapSurfaceToOutput MapSurfaceToOutput;
|
|
Packit Service |
fa4841 |
psRdpgfxMapSurfaceToWindow MapSurfaceToWindow;
|
|
Packit Service |
b1ea74 |
psRdpgfxMapSurfaceToScaledOutput MapSurfaceToScaledOutput;
|
|
Packit Service |
b1ea74 |
psRdpgfxMapSurfaceToScaledWindow MapSurfaceToScaledWindow;
|
|
Packit Service |
fa4841 |
psRdpgfxCapsAdvertise CapsAdvertise;
|
|
Packit Service |
fa4841 |
psRdpgfxCapsConfirm CapsConfirm;
|
|
Packit Service |
fa4841 |
psRdpgfxFrameAcknowledge FrameAcknowledge;
|
|
Packit Service |
fa4841 |
psRdpgfxQoeFrameAcknowledge QoeFrameAcknowledge;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
RdpgfxServerPrivate* priv;
|
|
Packit Service |
fa4841 |
rdpContext* rdpcontext;
|
|
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 |
b1ea74 |
FREERDP_API RdpgfxServerContext* rdpgfx_server_context_new(HANDLE vcm);
|
|
Packit Service |
b1ea74 |
FREERDP_API void rdpgfx_server_context_free(RdpgfxServerContext* context);
|
|
Packit Service |
b1ea74 |
FREERDP_API HANDLE rdpgfx_server_get_event_handle(RdpgfxServerContext* context);
|
|
Packit Service |
b1ea74 |
FREERDP_API UINT rdpgfx_server_handle_messages(RdpgfxServerContext* context);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifdef __cplusplus
|
|
Packit Service |
fa4841 |
}
|
|
Packit Service |
fa4841 |
#endif
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#endif /* FREERDP_CHANNEL_RDPGFX_SERVER_RDPGFX_H */
|