summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-08-02 10:48:59 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-08-02 10:48:59 -0700
commite9aa5df42086b32f9bce915c063464f25b388e3b (patch)
treea35177b2023c750c14ea4f5b9399f132ca05825b
parent17ee0e3aed6171b385486ec2f5251e78f9d2ef06 (diff)
downloadxrdp-proprietary-e9aa5df42086b32f9bce915c063464f25b388e3b.tar.gz
xrdp-proprietary-e9aa5df42086b32f9bce915c063464f25b388e3b.zip
xrdpapi: added library skel
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac3
-rw-r--r--xrdpapi/Makefile.am24
-rw-r--r--xrdpapi/xrdpapi.c64
4 files changed, 92 insertions, 2 deletions
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 <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#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;
+}