summaryrefslogtreecommitdiff
path: root/src/xvmc/intel_xvmc.h
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-24 00:31:53 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-24 00:31:53 +0800
commitce9802edd25255f6c9c11e512b2ef905384b914d (patch)
tree9ceeefd1c61635a6fcca5657e1f864c373a5265c /src/xvmc/intel_xvmc.h
parent9c84543eb0fde4643eb7529eb6b08eacf57c12d0 (diff)
fix xvmc return values
Use values defined by xvmc lib spec
Diffstat (limited to 'src/xvmc/intel_xvmc.h')
-rw-r--r--src/xvmc/intel_xvmc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xvmc/intel_xvmc.h b/src/xvmc/intel_xvmc.h
index fd1326e1..bc375008 100644
--- a/src/xvmc/intel_xvmc.h
+++ b/src/xvmc/intel_xvmc.h
@@ -114,17 +114,17 @@ struct _intel_xvmc_driver {
void (*fini)(void);
/* driver specific xvmc callbacks */
- int (*create_context)(Display* display, XvMCContext *context,
+ Status (*create_context)(Display* display, XvMCContext *context,
int priv_count, CARD32 *priv_data);
- int (*destroy_context)(Display* display, XvMCContext *context);
+ Status (*destroy_context)(Display* display, XvMCContext *context);
- int (*create_surface)(Display* display, XvMCContext *context,
+ Status (*create_surface)(Display* display, XvMCContext *context,
XvMCSurface *surface);
- int (*destroy_surface)(Display* display, XvMCSurface *surface);
+ Status (*destroy_surface)(Display* display, XvMCSurface *surface);
- int (*render_surface)(Display *display, XvMCContext *context,
+ Status (*render_surface)(Display *display, XvMCContext *context,
unsigned int picture_structure,
XvMCSurface *target_surface,
XvMCSurface *past_surface,
@@ -136,14 +136,14 @@ struct _intel_xvmc_driver {
XvMCBlockArray *blocks);
/* XXX this should be same for all drivers */
- int (*put_surface)(Display *display, XvMCSurface *surface,
+ Status (*put_surface)(Display *display, XvMCSurface *surface,
Drawable draw, short srcx, short srcy,
unsigned short srcw, unsigned short srch,
short destx, short desty,
unsigned short destw, unsigned short desth,
int flags);
- int (*get_surface_status)(Display *display, XvMCSurface *surface, int *stat);
+ Status (*get_surface_status)(Display *display, XvMCSurface *surface, int *stat);
/* XXX more for vld */
};