mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
libfreerdp-common: initial commit
This commit is contained in:
parent
82b5580d32
commit
86d7c1946f
@ -133,6 +133,7 @@ endif()
|
|||||||
add_subdirectory(libfreerdp-gdi)
|
add_subdirectory(libfreerdp-gdi)
|
||||||
add_subdirectory(libfreerdp-rail)
|
add_subdirectory(libfreerdp-rail)
|
||||||
add_subdirectory(libfreerdp-cache)
|
add_subdirectory(libfreerdp-cache)
|
||||||
|
add_subdirectory(libfreerdp-common)
|
||||||
add_subdirectory(libfreerdp-chanman)
|
add_subdirectory(libfreerdp-chanman)
|
||||||
add_subdirectory(libfreerdp-core)
|
add_subdirectory(libfreerdp-core)
|
||||||
add_subdirectory(libfreerdp-rfx)
|
add_subdirectory(libfreerdp-rfx)
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
#ifndef __BITMAP_H
|
#ifndef __BITMAP_H
|
||||||
#define __BITMAP_H
|
#define __BITMAP_H
|
||||||
|
|
||||||
#include <freerdp/utils/stream.h>
|
#include <freerdp/types.h>
|
||||||
#include <freerdp/utils/memory.h>
|
|
||||||
|
|
||||||
boolean bitmap_decompress(uint8* srcData, uint8* dstData, int width, int height, int size, int srcBpp, int dstBpp);
|
boolean bitmap_decompress(uint8* srcData, uint8* dstData, int width, int height, int size, int srcBpp, int dstBpp);
|
||||||
|
|
@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/color.h>
|
|
||||||
#include <freerdp/cache/cache.h>
|
#include <freerdp/cache/cache.h>
|
||||||
#include <freerdp/utils/debug.h>
|
#include <freerdp/utils/debug.h>
|
||||||
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
/* For more information, see [MS-RDPEGDI] */
|
/* For more information, see [MS-RDPEGDI] */
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include <freerdp/rail.h>
|
#include <freerdp/rail.h>
|
||||||
#include <freerdp/types.h>
|
#include <freerdp/types.h>
|
||||||
#include <freerdp/update.h>
|
#include <freerdp/update.h>
|
||||||
#include <freerdp/gdi/color.h>
|
|
||||||
#include <freerdp/utils/stream.h>
|
#include <freerdp/utils/stream.h>
|
||||||
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
typedef struct rdp_rail rdpRail;
|
typedef struct rdp_rail rdpRail;
|
||||||
|
|
||||||
|
30
libfreerdp-common/CMakeLists.txt
Normal file
30
libfreerdp-common/CMakeLists.txt
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# FreeRDP: A Remote Desktop Protocol Client
|
||||||
|
# libfreerdp-common cmake build script
|
||||||
|
#
|
||||||
|
# Copyright 2011 O.S. Systems Software Ltda.
|
||||||
|
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
||||||
|
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
set(FREERDP_COMMON_SRCS
|
||||||
|
bitmap.c
|
||||||
|
color.c)
|
||||||
|
|
||||||
|
add_library(freerdp-common ${FREERDP_COMMON_SRCS})
|
||||||
|
|
||||||
|
set_target_properties(freerdp-common PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
||||||
|
target_link_libraries(freerdp-common freerdp-utils)
|
||||||
|
|
||||||
|
install(TARGETS freerdp-common DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
|
@ -17,7 +17,10 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "bitmap.h"
|
#include <freerdp/utils/stream.h>
|
||||||
|
#include <freerdp/utils/memory.h>
|
||||||
|
|
||||||
|
#include <freerdp/common/bitmap.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RLE Compressed Bitmap Stream (RLE_BITMAP_STREAM)
|
RLE Compressed Bitmap Stream (RLE_BITMAP_STREAM)
|
@ -21,7 +21,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/color.h>
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
uint32 gdi_color_convert_rgb(uint32 srcColor, int srcBpp, int dstBpp, HCLRCONV clrconv)
|
uint32 gdi_color_convert_rgb(uint32 srcColor, int srcBpp, int dstBpp, HCLRCONV clrconv)
|
||||||
{
|
{
|
@ -24,8 +24,6 @@ include_directories(${ZLIB_INCLUDE_DIRS})
|
|||||||
set(LIBFREERDP_CORE_SRCS
|
set(LIBFREERDP_CORE_SRCS
|
||||||
activation.c
|
activation.c
|
||||||
activation.h
|
activation.h
|
||||||
bitmap.c
|
|
||||||
bitmap.h
|
|
||||||
ber.c
|
ber.c
|
||||||
ber.h
|
ber.h
|
||||||
gcc.c
|
gcc.c
|
||||||
@ -105,5 +103,6 @@ endif()
|
|||||||
|
|
||||||
target_link_libraries(freerdp-core ${OPENSSL_LIBRARIES})
|
target_link_libraries(freerdp-core ${OPENSSL_LIBRARIES})
|
||||||
target_link_libraries(freerdp-core freerdp-utils)
|
target_link_libraries(freerdp-core freerdp-utils)
|
||||||
|
target_link_libraries(freerdp-core freerdp-common)
|
||||||
|
|
||||||
install(TARGETS freerdp-core DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
install(TARGETS freerdp-core DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "bitmap.h"
|
|
||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
|
#include <freerdp/common/bitmap.h>
|
||||||
|
|
||||||
#include "orders.h"
|
#include "orders.h"
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "update.h"
|
#include "update.h"
|
||||||
#include "bitmap.h"
|
|
||||||
#include "surface.h"
|
#include "surface.h"
|
||||||
|
#include <freerdp/common/bitmap.h>
|
||||||
|
|
||||||
uint8 UPDATE_TYPE_STRINGS[][32] =
|
uint8 UPDATE_TYPE_STRINGS[][32] =
|
||||||
{
|
{
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/gdi.h>
|
#include <freerdp/gdi/gdi.h>
|
||||||
#include <freerdp/gdi/color.h>
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
#include <freerdp/gdi/pen.h>
|
#include <freerdp/gdi/pen.h>
|
||||||
#include <freerdp/gdi/bitmap.h>
|
#include <freerdp/gdi/bitmap.h>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/gdi.h>
|
#include <freerdp/gdi/gdi.h>
|
||||||
#include <freerdp/gdi/color.h>
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
#include <freerdp/gdi/pen.h>
|
#include <freerdp/gdi/pen.h>
|
||||||
#include <freerdp/gdi/bitmap.h>
|
#include <freerdp/gdi/bitmap.h>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/gdi.h>
|
#include <freerdp/gdi/gdi.h>
|
||||||
#include <freerdp/gdi/color.h>
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
#include <freerdp/gdi/pen.h>
|
#include <freerdp/gdi/pen.h>
|
||||||
#include <freerdp/gdi/bitmap.h>
|
#include <freerdp/gdi/bitmap.h>
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
set(FREERDP_GDI_SRCS
|
set(FREERDP_GDI_SRCS
|
||||||
color.c
|
|
||||||
8bpp.c
|
8bpp.c
|
||||||
16bpp.c
|
16bpp.c
|
||||||
32bpp.c
|
32bpp.c
|
||||||
@ -37,6 +36,7 @@ set(FREERDP_GDI_SRCS
|
|||||||
add_library(freerdp-gdi ${FREERDP_GDI_SRCS})
|
add_library(freerdp-gdi ${FREERDP_GDI_SRCS})
|
||||||
|
|
||||||
target_link_libraries(freerdp-gdi freerdp-cache)
|
target_link_libraries(freerdp-gdi freerdp-cache)
|
||||||
|
target_link_libraries(freerdp-gdi freerdp-common)
|
||||||
target_link_libraries(freerdp-gdi freerdp-rfx)
|
target_link_libraries(freerdp-gdi freerdp-rfx)
|
||||||
|
|
||||||
set_target_properties(freerdp-gdi PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
set_target_properties(freerdp-gdi PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/gdi/gdi.h>
|
#include <freerdp/gdi/gdi.h>
|
||||||
#include <freerdp/gdi/color.h>
|
#include <freerdp/common/color.h>
|
||||||
|
|
||||||
#include <freerdp/gdi/32bpp.h>
|
#include <freerdp/gdi/32bpp.h>
|
||||||
#include <freerdp/gdi/16bpp.h>
|
#include <freerdp/gdi/16bpp.h>
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
#include <freerdp/api.h>
|
#include <freerdp/api.h>
|
||||||
#include <freerdp/freerdp.h>
|
#include <freerdp/freerdp.h>
|
||||||
#include <freerdp/constants.h>
|
#include <freerdp/constants.h>
|
||||||
#include <freerdp/gdi/color.h>
|
|
||||||
#include <freerdp/utils/bitmap.h>
|
#include <freerdp/utils/bitmap.h>
|
||||||
|
#include <freerdp/common/color.h>
|
||||||
#include <freerdp/rfx/rfx.h>
|
#include <freerdp/rfx/rfx.h>
|
||||||
|
|
||||||
#include <freerdp/gdi/dc.h>
|
#include <freerdp/gdi/dc.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user