changeset 25220:c9e9ac2008c2

Mark the vo_functions_t definitions as const where possible. This is not possible for xover and anything supporting vidix due to horrible hacks.
author reimar
date Sun, 02 Dec 2007 14:39:15 +0000
parents e82ecde2cbd4
children 00fff9a3b735
files libvo/vo_3dfx.c libvo/vo_aa.c libvo/vo_bl.c libvo/vo_caca.c libvo/vo_dfbmga.c libvo/vo_dga.c libvo/vo_directfb2.c libvo/vo_directx.c libvo/vo_dxr2.c libvo/vo_dxr3.c libvo/vo_fbdev2.c libvo/vo_ggi.c libvo/vo_gif89a.c libvo/vo_gl.c libvo/vo_gl2.c libvo/vo_ivtv.c libvo/vo_jpeg.c libvo/vo_md5sum.c libvo/vo_mga.c libvo/vo_mpegpes.c libvo/vo_null.c libvo/vo_png.c libvo/vo_pnm.c libvo/vo_quartz.c libvo/vo_s3fb.c libvo/vo_sdl.c libvo/vo_tdfx_vid.c libvo/vo_tdfxfb.c libvo/vo_tga.c libvo/vo_v4l2.c libvo/vo_x11.c libvo/vo_xmga.c libvo/vo_xv.c libvo/vo_xvmc.c libvo/vo_xvr100.c libvo/vo_yuv4mpeg.c libvo/vo_zr.c libvo/vo_zr2.c
diffstat 38 files changed, 38 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_3dfx.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_3dfx.c	Sun Dec 02 14:39:15 2007 +0000
@@ -59,7 +59,7 @@
 	""
 };
 
-LIBVO_EXTERN(3dfx)
+const LIBVO_EXTERN(3dfx)
 
 static uint32_t is_fullscreen = 1;
 
--- a/libvo/vo_aa.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_aa.c	Sun Dec 02 14:39:15 2007 +0000
@@ -51,7 +51,7 @@
 	    ""
 	};
 
-LIBVO_EXTERN(aa)
+const LIBVO_EXTERN(aa)
 
 /* aa's main context we use */
 aa_context *c;
--- a/libvo/vo_bl.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_bl.c	Sun Dec 02 14:39:15 2007 +0000
@@ -55,7 +55,7 @@
 	""
 };
 
-LIBVO_EXTERN (bl)
+const LIBVO_EXTERN (bl)
 
 /* General variables */
 
--- a/libvo/vo_caca.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_caca.c	Sun Dec 02 14:39:15 2007 +0000
@@ -45,7 +45,7 @@
   ""
 };
 
-LIBVO_EXTERN (caca)
+const LIBVO_EXTERN (caca)
 
 /* caca stuff */
 static struct caca_bitmap *cbitmap = NULL;
--- a/libvo/vo_dfbmga.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_dfbmga.c	Sun Dec 02 14:39:15 2007 +0000
@@ -48,7 +48,7 @@
      ""
 };
 
-LIBVO_EXTERN(dfbmga)
+const LIBVO_EXTERN(dfbmga)
 
 /******************************
 *	   directfb 	      *
--- a/libvo/vo_dga.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_dga.c	Sun Dec 02 14:39:15 2007 +0000
@@ -45,7 +45,7 @@
     ""
 };
 
-LIBVO_EXTERN(dga)
+const LIBVO_EXTERN(dga)
 //------------------------------------------------------------------
 //#define BITSPP (vo_dga_modes[vo_dga_active_mode].vdm_bitspp)
 //#define BYTESPP (vo_dga_modes[vo_dga_active_mode].vdm_bytespp)
--- a/libvo/vo_directfb2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_directfb2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -65,7 +65,7 @@
 	"v 2.0 (for DirectFB version >=0.9.13)"
 };
 
-LIBVO_EXTERN(directfb)
+const LIBVO_EXTERN(directfb)
 
 /******************************
 *      vo_directfb globals    *
--- a/libvo/vo_directx.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_directx.c	Sun Dec 02 14:39:15 2007 +0000
@@ -143,7 +143,7 @@
 	""
 };
 
-LIBVO_EXTERN(directx)
+const LIBVO_EXTERN(directx)
 
 static void draw_alpha(int x0, int y0, int w, int h, unsigned char *src,
 		unsigned char *srca, int stride)
--- a/libvo/vo_dxr2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_dxr2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -139,7 +139,7 @@
   ""
 };
 
-LIBVO_EXTERN (dxr2)
+const LIBVO_EXTERN (dxr2)
 
 static char *ucodesearchpath[] = {
   "/usr/local/lib/dxr2/dvd12.ux",
--- a/libvo/vo_dxr3.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_dxr3.c	Sun Dec 02 14:39:15 2007 +0000
@@ -159,7 +159,7 @@
 	"David Holm <dholm@iname.com>",
 	""
 };
-LIBVO_EXTERN (dxr3)
+const LIBVO_EXTERN (dxr3)
 
 /* Resolutions and positions */
 static int v_width, v_height;
--- a/libvo/vo_fbdev2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_fbdev2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -29,7 +29,7 @@
 	""
 };
 
-LIBVO_EXTERN(fbdev2)
+const LIBVO_EXTERN(fbdev2)
 
 static void set_bpp(struct fb_var_screeninfo *p, int bpp)
 {
--- a/libvo/vo_ggi.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_ggi.c	Sun Dec 02 14:39:15 2007 +0000
@@ -44,7 +44,7 @@
     "major"
 };
 
-LIBVO_EXTERN(ggi)
+const LIBVO_EXTERN(ggi)
 
 
 static struct ggi_conf_s {
--- a/libvo/vo_gif89a.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_gif89a.c	Sun Dec 02 14:39:15 2007 +0000
@@ -68,7 +68,7 @@
 	""
 };
 
-LIBVO_EXTERN(gif89a)
+const LIBVO_EXTERN(gif89a)
 
 
 // how many frames per second we are aiming for during output.
--- a/libvo/vo_gl.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_gl.c	Sun Dec 02 14:39:15 2007 +0000
@@ -27,7 +27,7 @@
   ""
 };
 
-LIBVO_EXTERN(gl)
+const LIBVO_EXTERN(gl)
 
 #ifdef GL_WIN32
 static int gl_vinfo = 0;
--- a/libvo/vo_gl2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_gl2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -41,7 +41,7 @@
   ""
 };
 
-LIBVO_EXTERN(gl2)
+const LIBVO_EXTERN(gl2)
 
 /* local data */
 static unsigned char *ImageData=NULL;
--- a/libvo/vo_ivtv.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_ivtv.c	Sun Dec 02 14:39:15 2007 +0000
@@ -69,7 +69,7 @@
   "Benjamin Zores",
   ""
 };
-LIBVO_EXTERN (ivtv)
+const LIBVO_EXTERN (ivtv)
 
 /* ivtv internals */
 
--- a/libvo/vo_jpeg.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_jpeg.c	Sun Dec 02 14:39:15 2007 +0000
@@ -67,7 +67,7 @@
 	""
 };
 
-LIBVO_EXTERN (jpeg)
+const LIBVO_EXTERN (jpeg)
 
 /* ------------------------------------------------------------------------- */
 
--- a/libvo/vo_md5sum.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_md5sum.c	Sun Dec 02 14:39:15 2007 +0000
@@ -66,7 +66,7 @@
 	""
 };
 
-LIBVO_EXTERN (md5sum)
+const LIBVO_EXTERN (md5sum)
 
 /* ------------------------------------------------------------------------- */
 
--- a/libvo/vo_mga.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_mga.c	Sun Dec 02 14:39:15 2007 +0000
@@ -30,7 +30,7 @@
 	"Based on some code by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>"
 };
 
-LIBVO_EXTERN(mga)
+const LIBVO_EXTERN(mga)
 
 #include "mga_common.c"
 
--- a/libvo/vo_mpegpes.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_mpegpes.c	Sun Dec 02 14:39:15 2007 +0000
@@ -76,7 +76,7 @@
 	""
 };
 
-LIBVO_EXTERN (mpegpes)
+const LIBVO_EXTERN (mpegpes)
 
 static int
 config(uint32_t s_width, uint32_t s_height, uint32_t width, uint32_t height, uint32_t flags, char *title, uint32_t format)
--- a/libvo/vo_null.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_null.c	Sun Dec 02 14:39:15 2007 +0000
@@ -38,7 +38,7 @@
 	""
 };
 
-LIBVO_EXTERN(null)
+const LIBVO_EXTERN(null)
 
 static uint32_t image_width, image_height;
 
--- a/libvo/vo_png.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_png.c	Sun Dec 02 14:39:15 2007 +0000
@@ -30,7 +30,7 @@
 	""
 };
 
-LIBVO_EXTERN (png)
+const LIBVO_EXTERN (png)
 
 static int z_compression = Z_NO_COMPRESSION;
 static int framenum = 0;
--- a/libvo/vo_pnm.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_pnm.c	Sun Dec 02 14:39:15 2007 +0000
@@ -73,7 +73,7 @@
 	""
 };
 
-LIBVO_EXTERN (pnm)
+const LIBVO_EXTERN (pnm)
 
 /* ------------------------------------------------------------------------- */
 
--- a/libvo/vo_quartz.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_quartz.c	Sun Dec 02 14:39:15 2007 +0000
@@ -46,7 +46,7 @@
 	""
 };
 
-LIBVO_EXTERN(quartz)
+const LIBVO_EXTERN(quartz)
 
 static uint32_t image_depth;
 static uint32_t image_format;
--- a/libvo/vo_s3fb.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_s3fb.c	Sun Dec 02 14:39:15 2007 +0000
@@ -37,7 +37,7 @@
     ""
   };
 
-LIBVO_EXTERN(s3fb)
+const LIBVO_EXTERN(s3fb)
 
 typedef struct vga_type {
   int cr38, cr39, cr53;
--- a/libvo/vo_sdl.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_sdl.c	Sun Dec 02 14:39:15 2007 +0000
@@ -134,7 +134,7 @@
 	""
 };
 
-LIBVO_EXTERN(sdl)
+const LIBVO_EXTERN(sdl)
 
 #include <SDL.h>
 //#include <SDL/SDL_syswm.h>
--- a/libvo/vo_tdfx_vid.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_tdfx_vid.c	Sun Dec 02 14:39:15 2007 +0000
@@ -51,7 +51,7 @@
 
 //#define VERBOSE
 
-LIBVO_EXTERN(tdfx_vid)
+const LIBVO_EXTERN(tdfx_vid)
 
 static tdfx_vid_config_t tdfx_cfg;
 
--- a/libvo/vo_tdfxfb.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_tdfxfb.c	Sun Dec 02 14:39:15 2007 +0000
@@ -55,7 +55,7 @@
 	""
 };
 
-LIBVO_EXTERN(tdfxfb)
+const LIBVO_EXTERN(tdfxfb)
 
 /* Some registers on the card */
 #define S2S_STRECH_BLT		2			// BLT + Strech
--- a/libvo/vo_tga.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_tga.c	Sun Dec 02 14:39:15 2007 +0000
@@ -46,7 +46,7 @@
 };
 
 
-LIBVO_EXTERN (tga)
+const LIBVO_EXTERN (tga)
 
 /* locals vars */
 static int      frame_num = 0;
--- a/libvo/vo_v4l2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_v4l2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -63,7 +63,7 @@
   "Benjamin Zores",
   ""
 };
-LIBVO_EXTERN (v4l2)
+const LIBVO_EXTERN (v4l2)
 
 int
 v4l2_write (unsigned char *data, int len)
--- a/libvo/vo_x11.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_x11.c	Sun Dec 02 14:39:15 2007 +0000
@@ -57,7 +57,7 @@
     ""
 };
 
-LIBVO_EXTERN(x11)
+const LIBVO_EXTERN(x11)
 /* private prototypes */
 static void Display_Image(XImage * myximage, unsigned char *ImageData);
 static void (*draw_alpha_fnc) (int x0, int y0, int w, int h,
--- a/libvo/vo_xmga.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_xmga.c	Sun Dec 02 14:39:15 2007 +0000
@@ -54,7 +54,7 @@
     ""
 };
 
-LIBVO_EXTERN(xmga)
+const LIBVO_EXTERN(xmga)
 static XGCValues wGCV;
 
 static uint32_t mDepth;
--- a/libvo/vo_xv.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_xv.c	Sun Dec 02 14:39:15 2007 +0000
@@ -54,7 +54,7 @@
     ""
 };
 
-LIBVO_EXTERN(xv)
+const LIBVO_EXTERN(xv)
 #ifdef HAVE_SHM
 #include <sys/ipc.h>
 #include <sys/shm.h>
--- a/libvo/vo_xvmc.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_xvmc.c	Sun Dec 02 14:39:15 2007 +0000
@@ -126,7 +126,7 @@
   ""
 };
 
-LIBVO_EXTERN(xvmc);
+const LIBVO_EXTERN(xvmc);
 
 //shm stuff from vo_xv
 #ifdef HAVE_SHM
--- a/libvo/vo_xvr100.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_xvr100.c	Sun Dec 02 14:39:15 2007 +0000
@@ -59,7 +59,7 @@
     ""
 };
 
-LIBVO_EXTERN(xvr100)
+const LIBVO_EXTERN(xvr100)
 
 #define PFB_VRAM_MMAPBASE 0x08000000
 #define PFB_VRAM_MMAPLEN 0x04000000 /* depends on memory size */
--- a/libvo/vo_yuv4mpeg.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_yuv4mpeg.c	Sun Dec 02 14:39:15 2007 +0000
@@ -53,7 +53,7 @@
 	""
 };
 
-LIBVO_EXTERN (yuv4mpeg)
+const LIBVO_EXTERN (yuv4mpeg)
 
 static int image_width = 0;
 static int image_height = 0;
--- a/libvo/vo_zr.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_zr.c	Sun Dec 02 14:39:15 2007 +0000
@@ -38,7 +38,7 @@
 	""
 };
 
-LIBVO_EXTERN (zr)
+const LIBVO_EXTERN (zr)
 
 #define	ZR_MAX_DEVICES 4
 /* General variables */
--- a/libvo/vo_zr2.c	Sun Dec 02 14:24:23 2007 +0000
+++ b/libvo/vo_zr2.c	Sun Dec 02 14:39:15 2007 +0000
@@ -36,7 +36,7 @@
 	""
 };
 
-LIBVO_EXTERN(zr2)
+const LIBVO_EXTERN(zr2)
 
 typedef struct {
 	/* options */