summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 14:39:15 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 14:39:15 +0000
commit2bf8c692f195fd19d07a894b25f04f4a0fda5bb1 (patch)
tree6c7c7edc72770d8071cc12182d818edc7a9882a7 /libvo
parent844c8ffc48c7e7715c43a1290188f5bdfa289821 (diff)
downloadmpv-2bf8c692f195fd19d07a894b25f04f4a0fda5bb1.tar.bz2
mpv-2bf8c692f195fd19d07a894b25f04f4a0fda5bb1.tar.xz
Mark the vo_functions_t definitions as const where possible.
This is not possible for xover and anything supporting vidix due to horrible hacks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25248 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_3dfx.c2
-rw-r--r--libvo/vo_aa.c2
-rw-r--r--libvo/vo_bl.c2
-rw-r--r--libvo/vo_caca.c2
-rw-r--r--libvo/vo_dfbmga.c2
-rw-r--r--libvo/vo_dga.c2
-rw-r--r--libvo/vo_directfb2.c2
-rw-r--r--libvo/vo_directx.c2
-rw-r--r--libvo/vo_dxr2.c2
-rw-r--r--libvo/vo_dxr3.c2
-rw-r--r--libvo/vo_fbdev2.c2
-rw-r--r--libvo/vo_ggi.c2
-rw-r--r--libvo/vo_gif89a.c2
-rw-r--r--libvo/vo_gl.c2
-rw-r--r--libvo/vo_gl2.c2
-rw-r--r--libvo/vo_ivtv.c2
-rw-r--r--libvo/vo_jpeg.c2
-rw-r--r--libvo/vo_md5sum.c2
-rw-r--r--libvo/vo_mga.c2
-rw-r--r--libvo/vo_mpegpes.c2
-rw-r--r--libvo/vo_null.c2
-rw-r--r--libvo/vo_png.c2
-rw-r--r--libvo/vo_pnm.c2
-rw-r--r--libvo/vo_quartz.c2
-rw-r--r--libvo/vo_s3fb.c2
-rw-r--r--libvo/vo_sdl.c2
-rw-r--r--libvo/vo_tdfx_vid.c2
-rw-r--r--libvo/vo_tdfxfb.c2
-rw-r--r--libvo/vo_tga.c2
-rw-r--r--libvo/vo_v4l2.c2
-rw-r--r--libvo/vo_x11.c2
-rw-r--r--libvo/vo_xmga.c2
-rw-r--r--libvo/vo_xv.c2
-rw-r--r--libvo/vo_xvmc.c2
-rw-r--r--libvo/vo_xvr100.c2
-rw-r--r--libvo/vo_yuv4mpeg.c2
-rw-r--r--libvo/vo_zr.c2
-rw-r--r--libvo/vo_zr2.c2
38 files changed, 38 insertions, 38 deletions
diff --git a/libvo/vo_3dfx.c b/libvo/vo_3dfx.c
index 5328c14c2d..d4612e77ac 100644
--- a/libvo/vo_3dfx.c
+++ b/libvo/vo_3dfx.c
@@ -59,7 +59,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(3dfx)
+const LIBVO_EXTERN(3dfx)
static uint32_t is_fullscreen = 1;
diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c
index 75e09da56c..77c545bbb6 100644
--- a/libvo/vo_aa.c
+++ b/libvo/vo_aa.c
@@ -51,7 +51,7 @@
""
};
-LIBVO_EXTERN(aa)
+const LIBVO_EXTERN(aa)
/* aa's main context we use */
aa_context *c;
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index 91d70f3d4d..2adb83cb31 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -55,7 +55,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN (bl)
+const LIBVO_EXTERN (bl)
/* General variables */
diff --git a/libvo/vo_caca.c b/libvo/vo_caca.c
index eefcf674ed..3fd1fcd1cd 100644
--- a/libvo/vo_caca.c
+++ b/libvo/vo_caca.c
@@ -45,7 +45,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN (caca)
+const LIBVO_EXTERN (caca)
/* caca stuff */
static struct caca_bitmap *cbitmap = NULL;
diff --git a/libvo/vo_dfbmga.c b/libvo/vo_dfbmga.c
index 29a84fc225..ee381d020e 100644
--- a/libvo/vo_dfbmga.c
+++ b/libvo/vo_dfbmga.c
@@ -48,7 +48,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(dfbmga)
+const LIBVO_EXTERN(dfbmga)
/******************************
* directfb *
diff --git a/libvo/vo_dga.c b/libvo/vo_dga.c
index 4f8b47a361..1a2d510cc1 100644
--- a/libvo/vo_dga.c
+++ b/libvo/vo_dga.c
@@ -45,7 +45,7 @@ static const vo_info_t info = {
""
};
-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)
diff --git a/libvo/vo_directfb2.c b/libvo/vo_directfb2.c
index 24e6000769..4dad3a277e 100644
--- a/libvo/vo_directfb2.c
+++ b/libvo/vo_directfb2.c
@@ -65,7 +65,7 @@ static const vo_info_t info = {
"v 2.0 (for DirectFB version >=0.9.13)"
};
-LIBVO_EXTERN(directfb)
+const LIBVO_EXTERN(directfb)
/******************************
* vo_directfb globals *
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 99602562a9..fd2693460d 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -143,7 +143,7 @@ static const vo_info_t info =
""
};
-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)
diff --git a/libvo/vo_dxr2.c b/libvo/vo_dxr2.c
index a424e5e6f3..4aca495b30 100644
--- a/libvo/vo_dxr2.c
+++ b/libvo/vo_dxr2.c
@@ -139,7 +139,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN (dxr2)
+const LIBVO_EXTERN (dxr2)
static char *ucodesearchpath[] = {
"/usr/local/lib/dxr2/dvd12.ux",
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index a08fc7ffa2..5b9d53d299 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -159,7 +159,7 @@ static const vo_info_t info =
"David Holm <dholm@iname.com>",
""
};
-LIBVO_EXTERN (dxr3)
+const LIBVO_EXTERN (dxr3)
/* Resolutions and positions */
static int v_width, v_height;
diff --git a/libvo/vo_fbdev2.c b/libvo/vo_fbdev2.c
index 4b75ea6d35..30bbc35792 100644
--- a/libvo/vo_fbdev2.c
+++ b/libvo/vo_fbdev2.c
@@ -29,7 +29,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(fbdev2)
+const LIBVO_EXTERN(fbdev2)
static void set_bpp(struct fb_var_screeninfo *p, int bpp)
{
diff --git a/libvo/vo_ggi.c b/libvo/vo_ggi.c
index 0156955422..ad28aeb05f 100644
--- a/libvo/vo_ggi.c
+++ b/libvo/vo_ggi.c
@@ -44,7 +44,7 @@ static const vo_info_t info =
"major"
};
-LIBVO_EXTERN(ggi)
+const LIBVO_EXTERN(ggi)
static struct ggi_conf_s {
diff --git a/libvo/vo_gif89a.c b/libvo/vo_gif89a.c
index 8f50b4f141..6422ec7ecb 100644
--- a/libvo/vo_gif89a.c
+++ b/libvo/vo_gif89a.c
@@ -68,7 +68,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(gif89a)
+const LIBVO_EXTERN(gif89a)
// how many frames per second we are aiming for during output.
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index e1bf68de71..a548439395 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -27,7 +27,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(gl)
+const LIBVO_EXTERN(gl)
#ifdef GL_WIN32
static int gl_vinfo = 0;
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c
index dcb04350b3..78a0235b35 100644
--- a/libvo/vo_gl2.c
+++ b/libvo/vo_gl2.c
@@ -41,7 +41,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(gl2)
+const LIBVO_EXTERN(gl2)
/* local data */
static unsigned char *ImageData=NULL;
diff --git a/libvo/vo_ivtv.c b/libvo/vo_ivtv.c
index 81194fc320..4396dc166f 100644
--- a/libvo/vo_ivtv.c
+++ b/libvo/vo_ivtv.c
@@ -69,7 +69,7 @@ static const vo_info_t info =
"Benjamin Zores",
""
};
-LIBVO_EXTERN (ivtv)
+const LIBVO_EXTERN (ivtv)
/* ivtv internals */
diff --git a/libvo/vo_jpeg.c b/libvo/vo_jpeg.c
index adea38f14a..e8ac699fa8 100644
--- a/libvo/vo_jpeg.c
+++ b/libvo/vo_jpeg.c
@@ -67,7 +67,7 @@ static const vo_info_t info=
""
};
-LIBVO_EXTERN (jpeg)
+const LIBVO_EXTERN (jpeg)
/* ------------------------------------------------------------------------- */
diff --git a/libvo/vo_md5sum.c b/libvo/vo_md5sum.c
index 15f88ac816..dacce83f36 100644
--- a/libvo/vo_md5sum.c
+++ b/libvo/vo_md5sum.c
@@ -66,7 +66,7 @@ static const vo_info_t info=
""
};
-LIBVO_EXTERN (md5sum)
+const LIBVO_EXTERN (md5sum)
/* ------------------------------------------------------------------------- */
diff --git a/libvo/vo_mga.c b/libvo/vo_mga.c
index 0b4839b8f7..ff6d4cf19a 100644
--- a/libvo/vo_mga.c
+++ b/libvo/vo_mga.c
@@ -30,7 +30,7 @@ static const vo_info_t info =
"Based on some code by Aaron Holtzman <aholtzma@ess.engr.uvic.ca>"
};
-LIBVO_EXTERN(mga)
+const LIBVO_EXTERN(mga)
#include "mga_common.c"
diff --git a/libvo/vo_mpegpes.c b/libvo/vo_mpegpes.c
index d823d47511..05e81631f7 100644
--- a/libvo/vo_mpegpes.c
+++ b/libvo/vo_mpegpes.c
@@ -76,7 +76,7 @@ static const vo_info_t info =
""
};
-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)
diff --git a/libvo/vo_null.c b/libvo/vo_null.c
index e9f45b7326..c56a26511f 100644
--- a/libvo/vo_null.c
+++ b/libvo/vo_null.c
@@ -38,7 +38,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(null)
+const LIBVO_EXTERN(null)
static uint32_t image_width, image_height;
diff --git a/libvo/vo_png.c b/libvo/vo_png.c
index 0d32a2f944..9df2bac68d 100644
--- a/libvo/vo_png.c
+++ b/libvo/vo_png.c
@@ -30,7 +30,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN (png)
+const LIBVO_EXTERN (png)
static int z_compression = Z_NO_COMPRESSION;
static int framenum = 0;
diff --git a/libvo/vo_pnm.c b/libvo/vo_pnm.c
index 4ec6da0bbe..df1a070b5a 100644
--- a/libvo/vo_pnm.c
+++ b/libvo/vo_pnm.c
@@ -73,7 +73,7 @@ static const vo_info_t info=
""
};
-LIBVO_EXTERN (pnm)
+const LIBVO_EXTERN (pnm)
/* ------------------------------------------------------------------------- */
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index 507fd61310..017b0e12b0 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -46,7 +46,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(quartz)
+const LIBVO_EXTERN(quartz)
static uint32_t image_depth;
static uint32_t image_format;
diff --git a/libvo/vo_s3fb.c b/libvo/vo_s3fb.c
index e3be03463b..778374e2d1 100644
--- a/libvo/vo_s3fb.c
+++ b/libvo/vo_s3fb.c
@@ -37,7 +37,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(s3fb)
+const LIBVO_EXTERN(s3fb)
typedef struct vga_type {
int cr38, cr39, cr53;
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index b31449ee95..311fbb03d1 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -134,7 +134,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(sdl)
+const LIBVO_EXTERN(sdl)
#include <SDL.h>
//#include <SDL/SDL_syswm.h>
diff --git a/libvo/vo_tdfx_vid.c b/libvo/vo_tdfx_vid.c
index 22240e9752..522f5e928d 100644
--- a/libvo/vo_tdfx_vid.c
+++ b/libvo/vo_tdfx_vid.c
@@ -51,7 +51,7 @@ static const vo_info_t info =
//#define VERBOSE
-LIBVO_EXTERN(tdfx_vid)
+const LIBVO_EXTERN(tdfx_vid)
static tdfx_vid_config_t tdfx_cfg;
diff --git a/libvo/vo_tdfxfb.c b/libvo/vo_tdfxfb.c
index 5713202bb2..6cdb07563c 100644
--- a/libvo/vo_tdfxfb.c
+++ b/libvo/vo_tdfxfb.c
@@ -55,7 +55,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN(tdfxfb)
+const LIBVO_EXTERN(tdfxfb)
/* Some registers on the card */
#define S2S_STRECH_BLT 2 // BLT + Strech
diff --git a/libvo/vo_tga.c b/libvo/vo_tga.c
index 9d4dd7a6f1..0977f91074 100644
--- a/libvo/vo_tga.c
+++ b/libvo/vo_tga.c
@@ -46,7 +46,7 @@ static const vo_info_t info =
};
-LIBVO_EXTERN (tga)
+const LIBVO_EXTERN (tga)
/* locals vars */
static int frame_num = 0;
diff --git a/libvo/vo_v4l2.c b/libvo/vo_v4l2.c
index a43aea7f7b..cb09d3fa4e 100644
--- a/libvo/vo_v4l2.c
+++ b/libvo/vo_v4l2.c
@@ -63,7 +63,7 @@ static const vo_info_t info =
"Benjamin Zores",
""
};
-LIBVO_EXTERN (v4l2)
+const LIBVO_EXTERN (v4l2)
int
v4l2_write (unsigned char *data, int len)
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 2852c81705..e6eb1f3feb 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -57,7 +57,7 @@ static const vo_info_t info = {
""
};
-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,
diff --git a/libvo/vo_xmga.c b/libvo/vo_xmga.c
index 96c3a76af4..1ca7acd9c6 100644
--- a/libvo/vo_xmga.c
+++ b/libvo/vo_xmga.c
@@ -54,7 +54,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(xmga)
+const LIBVO_EXTERN(xmga)
static XGCValues wGCV;
static uint32_t mDepth;
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index e5e24eff7c..2a3898889c 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -54,7 +54,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(xv)
+const LIBVO_EXTERN(xv)
#ifdef HAVE_SHM
#include <sys/ipc.h>
#include <sys/shm.h>
diff --git a/libvo/vo_xvmc.c b/libvo/vo_xvmc.c
index d833f67130..e04fbd1332 100644
--- a/libvo/vo_xvmc.c
+++ b/libvo/vo_xvmc.c
@@ -126,7 +126,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(xvmc);
+const LIBVO_EXTERN(xvmc);
//shm stuff from vo_xv
#ifdef HAVE_SHM
diff --git a/libvo/vo_xvr100.c b/libvo/vo_xvr100.c
index af807c07a3..ef20b64745 100644
--- a/libvo/vo_xvr100.c
+++ b/libvo/vo_xvr100.c
@@ -59,7 +59,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(xvr100)
+const LIBVO_EXTERN(xvr100)
#define PFB_VRAM_MMAPBASE 0x08000000
#define PFB_VRAM_MMAPLEN 0x04000000 /* depends on memory size */
diff --git a/libvo/vo_yuv4mpeg.c b/libvo/vo_yuv4mpeg.c
index d61789ca2a..285846278b 100644
--- a/libvo/vo_yuv4mpeg.c
+++ b/libvo/vo_yuv4mpeg.c
@@ -53,7 +53,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN (yuv4mpeg)
+const LIBVO_EXTERN (yuv4mpeg)
static int image_width = 0;
static int image_height = 0;
diff --git a/libvo/vo_zr.c b/libvo/vo_zr.c
index 562941afa1..98e5d07eb2 100644
--- a/libvo/vo_zr.c
+++ b/libvo/vo_zr.c
@@ -38,7 +38,7 @@ static const vo_info_t info =
""
};
-LIBVO_EXTERN (zr)
+const LIBVO_EXTERN (zr)
#define ZR_MAX_DEVICES 4
/* General variables */
diff --git a/libvo/vo_zr2.c b/libvo/vo_zr2.c
index 173386d3a8..c032573e6f 100644
--- a/libvo/vo_zr2.c
+++ b/libvo/vo_zr2.c
@@ -36,7 +36,7 @@ static const vo_info_t info = {
""
};
-LIBVO_EXTERN(zr2)
+const LIBVO_EXTERN(zr2)
typedef struct {
/* options */