summaryrefslogtreecommitdiffstats
path: root/xorg/server/module
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-07-12 23:26:04 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-07-12 23:26:04 -0700
commite2b4f8cf7e46b51a48bb9a3ca482378bcf8e5212 (patch)
treea8079f86d44239f0b2e4a0b0eacd5f402addf29e /xorg/server/module
parent6eed5a1475df4076f697aafdc55a1e1c2f288a04 (diff)
downloadxrdp-proprietary-e2b4f8cf7e46b51a48bb9a3ca482378bcf8e5212.tar.gz
xrdp-proprietary-e2b4f8cf7e46b51a48bb9a3ca482378bcf8e5212.zip
xorg: work on Xorg driver
Diffstat (limited to 'xorg/server/module')
-rw-r--r--xorg/server/module/rdpDraw.c49
1 files changed, 46 insertions, 3 deletions
diff --git a/xorg/server/module/rdpDraw.c b/xorg/server/module/rdpDraw.c
index 0018fdf6..9e989fe7 100644
--- a/xorg/server/module/rdpDraw.c
+++ b/xorg/server/module/rdpDraw.c
@@ -39,8 +39,16 @@ misc draw calls
#include "rdp.h"
+#define XRDP_DRIVER_NAME "XRDPDEV"
+#define XRDP_NAME "XRDPDEV"
+#define XRDP_VERSION 1000
+
+#define PACKAGE_VERSION_MAJOR 1
+#define PACKAGE_VERSION_MINOR 0
+#define PACKAGE_VERSION_PATCHLEVEL 0
+
/******************************************************************************/
-#define LLOG_LEVEL 1
+#define LOG_LEVEL 1
#define LLOGLN(_level, _args) \
do { if (_level < LOG_LEVEL) { ErrorF _args ; ErrorF("\n"); } } while (0)
@@ -57,7 +65,7 @@ rdpCreatePixmap(ScreenPtr pScreen, int width, int height, int depth,
dev = XRDPPTR(pScrn);
pScreen->CreatePixmap = dev->CreatePixmap;
rv = pScreen->CreatePixmap(pScreen, 0, 0, 0, 0);
- pScreen->CreatePixmap = XVivCreatePixmap;
+ pScreen->CreatePixmap = rdpCreatePixmap;
return rv;
}
@@ -76,7 +84,7 @@ rdpDestroyPixmap(PixmapPtr pPixmap)
dev = XRDPPTR(pScrn);
pScreen->DestroyPixmap = dev->DestroyPixmap;
rv = pScreen->DestroyPixmap(pPixmap);
- pScreen->DestroyPixmap = XVivDestroyPixmap;
+ pScreen->DestroyPixmap = rdpDestroyPixmap;
return rv;
}
@@ -115,3 +123,38 @@ rdpCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr pOldRegion)
dev->pScreen->CopyWindow(pWin, ptOldOrg, pOldRegion);
dev->pScreen->CopyWindow = rdpCopyWindow;
}
+
+/*****************************************************************************/
+static pointer
+RDPSetup(pointer Module, pointer Options, int *ErrorMajor, int *ErrorMinor)
+{
+ static int initialised = 0;
+
+ LLOGLN(0, ("RDPSetup:"));
+ if (!initialised)
+ {
+ initialised = 1;
+ //xf86AddModuleInfo(&THINC, Module);
+ //LoaderRefSymLists(cursorSymbols, NULL);
+ }
+ return (pointer) 1;
+}
+
+static MODULESETUPPROTO(RDPSetup);
+static XF86ModuleVersionInfo RDPVersRec =
+{
+ XRDP_DRIVER_NAME,
+ MODULEVENDORSTRING,
+ MODINFOSTRING1,
+ MODINFOSTRING2,
+ XORG_VERSION_CURRENT,
+ PACKAGE_VERSION_MAJOR,
+ PACKAGE_VERSION_MINOR,
+ PACKAGE_VERSION_PATCHLEVEL,
+ ABI_CLASS_VIDEODRV,
+ ABI_VIDEODRV_VERSION,
+ 0,
+ { 0, 0, 0, 0 }
+};
+
+XF86ModuleData xorgxrdpModuleData = { &RDPVersRec, RDPSetup, NULL };