summaryrefslogtreecommitdiffstats
path: root/xorg/server/module
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-07-12 16:56:15 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-07-12 16:56:15 -0700
commit4b58f943a99a5f885dba36d095d954b4bedc2499 (patch)
treedaf37438affff095eb951abb8fe7d06c47a301ec /xorg/server/module
parent318ed3acb1eed0ddb3aadc75895f371124ffc5fa (diff)
downloadxrdp-proprietary-4b58f943a99a5f885dba36d095d954b4bedc2499.tar.gz
xrdp-proprietary-4b58f943a99a5f885dba36d095d954b4bedc2499.zip
xorg driver skeleton
Diffstat (limited to 'xorg/server/module')
-rw-r--r--xorg/server/module/Makefile16
-rw-r--r--xorg/server/module/rdpMain.c37
2 files changed, 53 insertions, 0 deletions
diff --git a/xorg/server/module/Makefile b/xorg/server/module/Makefile
new file mode 100644
index 00000000..39bfbbed
--- /dev/null
+++ b/xorg/server/module/Makefile
@@ -0,0 +1,16 @@
+
+OBJS = rdpMain.o
+
+CFLAGS = -O2 -Wall -I/usr/include/xorg -I/usr/include/pixman-1
+
+LDFLAGS =
+
+LIBS =
+
+all: xrdpdev_drv.so
+
+xrdpdev_drv.so: $(OBJS) Makefile
+ $(CC) -shared -o libxorgxrdp.so $(LDFLAGS) $(OBJS) $(LIBS)
+
+clean:
+ rm -f $(OBJS) libxorgxrdp.so
diff --git a/xorg/server/module/rdpMain.c b/xorg/server/module/rdpMain.c
new file mode 100644
index 00000000..5f3ab8c2
--- /dev/null
+++ b/xorg/server/module/rdpMain.c
@@ -0,0 +1,37 @@
+/*
+Copyright 2005-2013 Jay Sorg
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation.
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+This is the main modules file
+
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+/* this should be before all X11 .h files */
+#include <xorg-server.h>
+
+/* all driver need this */
+#include <xf86.h>
+#include <xf86_OSproc.h>
+#include <mipointer.h>
+
+#include <xorg-server.h>
+