|
Packit Service |
fa4841 |
/**
|
|
Packit Service |
fa4841 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit Service |
fa4841 |
* Geometry tracking Virtual Channel Extension
|
|
Packit Service |
fa4841 |
*
|
|
Packit Service |
fa4841 |
* Copyright 2017 David Fort <contact@hardening-consulting.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_CHANNELS_CLIENT_GEOMETRY_H
|
|
Packit Service |
fa4841 |
#define FREERDP_CHANNELS_CLIENT_GEOMETRY_H
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#include <winpr/collections.h>
|
|
Packit Service |
fa4841 |
#include <freerdp/api.h>
|
|
Packit Service |
fa4841 |
#include <freerdp/channels/geometry.h>
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
/**
|
|
Packit Service |
fa4841 |
* Client Interface
|
|
Packit Service |
fa4841 |
*/
|
|
Packit Service |
fa4841 |
typedef struct _geometry_client_context GeometryClientContext;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
typedef struct _MAPPED_GEOMETRY MAPPED_GEOMETRY;
|
|
Packit Service |
bb5c11 |
typedef BOOL (*pcMappedGeometryAdded)(GeometryClientContext* context, MAPPED_GEOMETRY *geometry);
|
|
Packit Service |
bb5c11 |
typedef BOOL (*pcMappedGeometryUpdate)(MAPPED_GEOMETRY *geometry);
|
|
Packit Service |
bb5c11 |
typedef BOOL (*pcMappedGeometryClear)(MAPPED_GEOMETRY *geometry);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
/** @brief a geometry record tracked by the geometry channel */
|
|
Packit Service |
fa4841 |
struct _MAPPED_GEOMETRY
|
|
Packit Service |
fa4841 |
{
|
|
Packit Service |
fa4841 |
volatile LONG refCounter;
|
|
Packit Service |
fa4841 |
UINT64 mappingId;
|
|
Packit Service |
fa4841 |
UINT64 topLevelId;
|
|
Packit Service |
fa4841 |
INT32 left, top, right, bottom;
|
|
Packit Service |
fa4841 |
INT32 topLevelLeft, topLevelTop, topLevelRight, topLevelBottom;
|
|
Packit Service |
fa4841 |
FREERDP_RGNDATA geometry;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
bb5c11 |
void *custom;
|
|
Packit Service |
fa4841 |
pcMappedGeometryUpdate MappedGeometryUpdate;
|
|
Packit Service |
fa4841 |
pcMappedGeometryClear MappedGeometryClear;
|
|
Packit Service |
fa4841 |
};
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
bb5c11 |
|
|
Packit Service |
fa4841 |
/** @brief the geometry context for client channel */
|
|
Packit Service |
fa4841 |
struct _geometry_client_context
|
|
Packit Service |
fa4841 |
{
|
|
Packit Service |
bb5c11 |
wHashTable *geometries;
|
|
Packit Service |
fa4841 |
void* handle;
|
|
Packit Service |
fa4841 |
void* custom;
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
pcMappedGeometryAdded MappedGeometryAdded;
|
|
Packit Service |
fa4841 |
};
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifdef __cplusplus
|
|
Packit Service |
bb5c11 |
extern "C" {
|
|
Packit Service |
fa4841 |
#endif
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
bb5c11 |
FREERDP_API void mappedGeometryRef(MAPPED_GEOMETRY *g);
|
|
Packit Service |
bb5c11 |
FREERDP_API void mappedGeometryUnref(MAPPED_GEOMETRY *g);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifdef __cplusplus
|
|
Packit Service |
fa4841 |
}
|
|
Packit Service |
fa4841 |
#endif
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
bb5c11 |
|
|
Packit Service |
fa4841 |
#endif /* FREERDP_CHANNELS_CLIENT_GEOMETRY_H */
|
|
Packit Service |
bb5c11 |
|