summaryrefslogtreecommitdiffstats
path: root/xorg/server
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
parent318ed3acb1eed0ddb3aadc75895f371124ffc5fa (diff)
downloadxrdp-proprietary-4b58f943a99a5f885dba36d095d954b4bedc2499.tar.gz
xrdp-proprietary-4b58f943a99a5f885dba36d095d954b4bedc2499.zip
xorg driver skeleton
Diffstat (limited to 'xorg/server')
-rw-r--r--xorg/server/module/Makefile16
-rw-r--r--xorg/server/module/rdpMain.c37
-rw-r--r--xorg/server/xrdpdev/Makefile17
-rw-r--r--xorg/server/xrdpdev/xrdpdev.c37
4 files changed, 107 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>
+
diff --git a/xorg/server/xrdpdev/Makefile b/xorg/server/xrdpdev/Makefile
new file mode 100644
index 00000000..920e7a55
--- /dev/null
+++ b/xorg/server/xrdpdev/Makefile
@@ -0,0 +1,17 @@
+
+OBJS = xrdpdev.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 xrdpdev_drv.so $(LDFLAGS) $(OBJS) $(LIBS)
+
+clean:
+ rm -f $(OBJS) xrdpdev_drv.so
+
diff --git a/xorg/server/xrdpdev/xrdpdev.c b/xorg/server/xrdpdev/xrdpdev.c
new file mode 100644
index 00000000..f426d7a5
--- /dev/null
+++ b/xorg/server/xrdpdev/xrdpdev.c
@@ -0,0 +1,37 @@
+/*
+Copyright 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 driver 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>
+