diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-05-03 19:46:06 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-05-03 19:46:06 +0000 |
commit | 1e21218596ab3eb84da7b2ec8aedd46827284b8a (patch) | |
tree | 4e73293d224c7ac9eff131af52e4747b12674ecd /src/post | |
parent | 5859b4076e5326996aa21e6fc0ce572edebec469 (diff) | |
download | xine-lib-1e21218596ab3eb84da7b2ec8aedd46827284b8a.tar.gz xine-lib-1e21218596ab3eb84da7b2ec8aedd46827284b8a.tar.bz2 |
Make various arrays and structures (mainly xine_plugin_info) const.
(Diego Pettenò)
CVS patchset: 7985
CVS date: 2006/05/03 19:46:06
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/audio/audio_filters.c | 4 | ||||
-rw-r--r-- | src/post/deinterlace/xine_plugin.c | 4 | ||||
-rwxr-xr-x | src/post/goom/gfontrle.c | 2 | ||||
-rw-r--r-- | src/post/goom/xine_goom.c | 8 | ||||
-rw-r--r-- | src/post/mosaico/mosaico.c | 4 | ||||
-rw-r--r-- | src/post/mosaico/switch.c | 4 | ||||
-rw-r--r-- | src/post/planar/planar.c | 4 | ||||
-rw-r--r-- | src/post/visualizations/fooviz.c | 4 | ||||
-rw-r--r-- | src/post/visualizations/visualizations.c | 4 |
9 files changed, 19 insertions, 19 deletions
diff --git a/src/post/audio/audio_filters.c b/src/post/audio/audio_filters.c index f875b1df6..f8d4bc0e8 100644 --- a/src/post/audio/audio_filters.c +++ b/src/post/audio/audio_filters.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_filters.c,v 1.4 2006/02/05 20:38:36 miguelfreitas Exp $ + * $Id: audio_filters.c,v 1.5 2006/05/03 19:46:08 dsalt Exp $ * * catalog for audio filter plugins */ @@ -36,7 +36,7 @@ post_info_t stretch_special_info = { XINE_POST_TYPE_AUDIO_FILTER }; post_info_t volnorm_special_info = { XINE_POST_TYPE_AUDIO_FILTER }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "upmix", XINE_VERSION_CODE, &upmix_special_info, &upmix_init_plugin }, { PLUGIN_POST, 9, "upmix_mono", XINE_VERSION_CODE, &upmix_mono_special_info, &upmix_mono_init_plugin }, diff --git a/src/post/deinterlace/xine_plugin.c b/src/post/deinterlace/xine_plugin.c index 425ceefe5..adbfa6c65 100644 --- a/src/post/deinterlace/xine_plugin.c +++ b/src/post/deinterlace/xine_plugin.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_plugin.c,v 1.48 2006/01/27 07:46:12 tmattern Exp $ + * $Id: xine_plugin.c,v 1.49 2006/05/03 19:46:08 dsalt Exp $ * * advanced video deinterlacer plugin * Jun/2003 by Miguel Freitas @@ -47,7 +47,7 @@ static void *deinterlace_init_plugin(xine_t *xine, void *); /* plugin catalog information */ post_info_t deinterlace_special_info = { XINE_POST_TYPE_VIDEO_FILTER }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST | PLUGIN_MUST_PRELOAD, 9, "tvtime", XINE_VERSION_CODE, &deinterlace_special_info, &deinterlace_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } diff --git a/src/post/goom/gfontrle.c b/src/post/goom/gfontrle.c index 8a4b32cd0..a22545a1e 100755 --- a/src/post/goom/gfontrle.c +++ b/src/post/goom/gfontrle.c @@ -1,6 +1,6 @@ /* RGBA C-Source image dump (with zRLE compression) */ -const struct { +static const struct { unsigned int width; unsigned int height; unsigned int bytes_per_pixel; diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 887283e26..891228489 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_goom.c,v 1.59 2006/01/27 07:46:13 tmattern Exp $ + * $Id: xine_goom.c,v 1.60 2006/05/03 19:46:08 dsalt Exp $ * * GOOM post plugin. * @@ -50,7 +50,7 @@ #define GOOM_HEIGHT 240 /* colorspace conversion methods */ -const char * goom_csc_methods[]={ +static const char const * goom_csc_methods[]={ "Fast but not photorealistic", "Slow but looks better", NULL @@ -108,11 +108,11 @@ static void *goom_init_plugin(xine_t *xine, void *); /* plugin catalog information */ -post_info_t goom_special_info = { +const post_info_t goom_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST | PLUGIN_MUST_PRELOAD, 9, "goom", XINE_VERSION_CODE, &goom_special_info, &goom_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index bcb63de5d..ad37f0c60 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: mosaico.c,v 1.25 2006/01/27 07:46:13 tmattern Exp $ + * $Id: mosaico.c,v 1.26 2006/05/03 19:46:08 dsalt Exp $ */ /* @@ -41,7 +41,7 @@ static void *mosaico_init_plugin(xine_t *xine, void *); /* plugin catalog information */ post_info_t mosaico_special_info = { XINE_POST_TYPE_VIDEO_COMPOSE }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "mosaico", XINE_VERSION_CODE, &mosaico_special_info, &mosaico_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } diff --git a/src/post/mosaico/switch.c b/src/post/mosaico/switch.c index 58b2bf806..6b7011455 100644 --- a/src/post/mosaico/switch.c +++ b/src/post/mosaico/switch.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: switch.c,v 1.15 2006/01/27 07:46:13 tmattern Exp $ + * $Id: switch.c,v 1.16 2006/05/03 19:46:08 dsalt Exp $ */ /* @@ -41,7 +41,7 @@ static void *switch_init_plugin(xine_t *xine, void *); /* plugin catalog information */ post_info_t switch_special_info = { XINE_POST_TYPE_VIDEO_COMPOSE }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "switch", XINE_VERSION_CODE, &switch_special_info, &switch_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } diff --git a/src/post/planar/planar.c b/src/post/planar/planar.c index 8600c482a..949d3fec3 100644 --- a/src/post/planar/planar.c +++ b/src/post/planar/planar.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: planar.c,v 1.10 2006/02/05 21:07:54 miguelfreitas Exp $ + * $Id: planar.c,v 1.11 2006/05/03 19:46:09 dsalt Exp $ * * catalog for planar post plugins */ @@ -56,7 +56,7 @@ post_info_t pp_special_info = { XINE_POST_TYPE_VIDEO_FILTER }; extern void *noise_init_plugin(xine_t *xine, void *); post_info_t noise_special_info = { XINE_POST_TYPE_VIDEO_FILTER }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "expand", XINE_VERSION_CODE, &expand_special_info, &expand_init_plugin }, { PLUGIN_POST, 9, "fill", XINE_VERSION_CODE, &fill_special_info, &fill_init_plugin }, diff --git a/src/post/visualizations/fooviz.c b/src/post/visualizations/fooviz.c index b2c4361c8..e7e015388 100644 --- a/src/post/visualizations/fooviz.c +++ b/src/post/visualizations/fooviz.c @@ -23,7 +23,7 @@ * process. It simply paints the screen a solid color and rotates through * colors on each iteration. * - * $Id: fooviz.c,v 1.24 2006/01/27 07:46:14 tmattern Exp $ + * $Id: fooviz.c,v 1.25 2006/05/03 19:46:09 dsalt Exp $ * */ @@ -315,7 +315,7 @@ static void *fooviz_init_plugin(xine_t *xine, void *data) /* plugin catalog information */ post_info_t fooviz_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "fooviz", XINE_VERSION_CODE, &fooviz_special_info, &fooviz_init_plugin }, { PLUGIN_NONE, 0, "", 0, NULL, NULL } diff --git a/src/post/visualizations/visualizations.c b/src/post/visualizations/visualizations.c index e211d08eb..fe3649f86 100644 --- a/src/post/visualizations/visualizations.c +++ b/src/post/visualizations/visualizations.c @@ -19,7 +19,7 @@ * * This file contains plugin entries for several visualization post plugins. * - * $Id: visualizations.c,v 1.11 2004/04/17 19:54:32 mroi Exp $ + * $Id: visualizations.c,v 1.12 2006/05/03 19:46:09 dsalt Exp $ */ #ifdef HAVE_CONFIG_H @@ -46,7 +46,7 @@ post_info_t fftscope_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; post_info_t fftgraph_special_info = { XINE_POST_TYPE_AUDIO_VISUALIZATION }; -plugin_info_t xine_plugin_info[] = { +const plugin_info_t xine_plugin_info[] = { /* type, API, "name", version, special_info, init_function */ { PLUGIN_POST, 9, "oscope", XINE_VERSION_CODE, &oscope_special_info, &oscope_init_plugin }, { PLUGIN_POST, 9, "fftscope", XINE_VERSION_CODE, &fftscope_special_info, &fftscope_init_plugin }, |