From e9aa5df42086b32f9bce915c063464f25b388e3b Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Thu, 2 Aug 2012 10:48:59 -0700 Subject: [PATCH] xrdpapi: added library skel --- Makefile.am | 3 ++- configure.ac | 3 ++- xrdpapi/Makefile.am | 24 +++++++++++++++++ xrdpapi/xrdpapi.c | 64 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+), 2 deletions(-) create mode 100644 xrdpapi/Makefile.am create mode 100644 xrdpapi/xrdpapi.c diff --git a/Makefile.am b/Makefile.am index 613c2471..d5ac84b1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,4 +19,5 @@ SUBDIRS = \ keygen \ docs \ instfiles \ - genkeymap + genkeymap \ + xrdpapi diff --git a/configure.ac b/configure.ac index 9a1f9d69..c7b437e2 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,7 @@ fi AS_IF( [test "x$enable_freerdp1" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] ) -# checking for libjpeg +# checking for libjpeg if ! test -z "$enable_jpeg" then AC_CHECK_HEADER([jpeglib.h], [], @@ -109,6 +109,7 @@ AC_CONFIG_FILES([Makefile instfiles/Makefile instfiles/pam.d/Makefile genkeymap/Makefile + xrdpapi/Makefile ]) # fontdump/Makefile # xrdp/cursors/Makefile diff --git a/xrdpapi/Makefile.am b/xrdpapi/Makefile.am new file mode 100644 index 00000000..88ef100e --- /dev/null +++ b/xrdpapi/Makefile.am @@ -0,0 +1,24 @@ +EXTRA_DIST = xrdpapi.h + +EXTRA_DEFINES = +EXTRA_INCLUDES = +EXTRA_LIBS = +EXTRA_FLAGS = + +AM_CFLAGS = \ + $(EXTRA_DEFINES) + +INCLUDES = \ + $(EXTRA_INCLUDES) + +lib_LTLIBRARIES = \ + libxrdpapi.la + +libxrdpapi_la_SOURCES = \ + xrdpapi.c + +libxrdpapi_la_LDFLAGS = \ + $(EXTRA_FLAGS) + +libxrdpapi_la_LIBADD = \ + $(EXTRA_LIBS) diff --git a/xrdpapi/xrdpapi.c b/xrdpapi/xrdpapi.c new file mode 100644 index 00000000..3afc8594 --- /dev/null +++ b/xrdpapi/xrdpapi.c @@ -0,0 +1,64 @@ +/** + * xrdp: A Remote Desktop Protocol server. + * + * Copyright (C) Thomas Goddard 2012 + * Copyright (C) Jay Sorg 2012 + * + * 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. + */ + +#include +#include +#include +#include "xrdpapi.h" + +/*****************************************************************************/ +void* +WTSVirtualChannelOpen(void* hServer, unsigned int SessionId, + const char* pVirtualName) +{ + return 0; +} + +/*****************************************************************************/ +void* +WTSVirtualChannelOpenEx(unsigned int SessionId, + const char* pVirtualName, + unsigned int flags) +{ + return 0; +} + +/*****************************************************************************/ +int +WTSVirtualChannelWrite(void* hChannelHandle, const char* Buffer, + unsigned int Length, unsigned int* pBytesWritten) +{ + return 0; +} + +/*****************************************************************************/ +int +WTSVirtualChannelRead(void* nChannelHandle, unsigned int TimeOut, + char* Buffer, unsigned int BufferSize, + unsigned int* pBytesRead) +{ + return 0; +} + +/*****************************************************************************/ +int +WTSVirtualChannelClose(void* openHandle) +{ + return 0; +}