summaryrefslogtreecommitdiff
path: root/src/z4l.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2006-09-28 09:09:27 -0600
committerJordan Crouse <jordan.crouse@amd.com>2006-09-28 09:24:59 -0600
commit2979196dae5615f2a78ace891d4ad6dd98c8fe6e (patch)
treeba2fad4179c2efa79b8004294236ac9b26461aff /src/z4l.c
parent45eeb43888e92e2736d9b678ce6d67fb99449800 (diff)
Update for 7.2 - fix config.h and other include problems.
This closes bug 8290 by applying the patch from Andres Salomon.
Diffstat (limited to 'src/z4l.c')
-rw-r--r--src/z4l.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/z4l.c b/src/z4l.c
index ae08c3e..c83c953 100644
--- a/src/z4l.c
+++ b/src/z4l.c
@@ -26,12 +26,17 @@
/* prototype Xv interface for lxv4l2 driver */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/time.h>
#include <sys/fcntl.h>
#include <asm/ioctl.h>
#include <asm/ioctls.h>
#include "xf86.h"
+#include <X11/extensions/Xv.h>
#include "xf86_OSproc.h"
#include "xf86Resources.h"
#include "xf86_ansic.h"
@@ -784,7 +789,7 @@ static int
Z4lPutImage(ScrnInfoPtr pScrni, short src_x, short src_y, short drw_x,
short drw_y, short src_w, short src_h, short drw_w, short drw_h,
int id, unsigned char *buf, short width, short height,
- Bool sync, RegionPtr clipBoxes, pointer data)
+ Bool sync, RegionPtr clipBoxes, pointer data, DrawablePtr pDraw)
{
int fd, size;
int y_pitch, uv_pitch, offset1, offset2;
@@ -915,7 +920,7 @@ Z4lQueryImageAttributes(ScrnInfoPtr pScrni, int id, unsigned short *width,
static int
Z4lPutVideo(ScrnInfoPtr pScrni, short src_x, short src_y, short drw_x,
short drw_y, short src_w, short src_h, short drw_w, short drw_h,
- RegionPtr clipBoxes, pointer data)
+ RegionPtr clipBoxes, pointer data, DrawablePtr pDraw)
{
int id;
Z4lPortPrivRec *pPriv = (Z4lPortPrivRec *) data;
@@ -1697,7 +1702,7 @@ Z4lIdentify(int flags)
xf86Msg(X_INFO, "z4l driver for Video4Linux\n");
}
-DriverRec Z4l = {
+_X_EXPORT DriverRec Z4l = {
40001,
"z4l",
Z4lIdentify,
@@ -1719,7 +1724,7 @@ static XF86ModuleVersionInfo z4lVersRec = {
{0, 0, 0, 0}
};
-XF86ModuleData z4lModuleData = { &z4lVersRec, z4lSetup, NULL };
+_X_EXPORT XF86ModuleData z4lModuleData = { &z4lVersRec, z4lSetup, NULL };
static pointer
z4lSetup(pointer module, pointer opts, int *errmaj, int *errmin)