From: Darren S. <ds...@us...> - 2004-12-30 21:03:10
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13210/src Modified Files: vis.c vis.h Log Message: Trivial functions => macros. Index: vis.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/vis.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- vis.c 25 Dec 2004 01:58:27 -0000 1.6 +++ vis.c 30 Dec 2004 21:02:59 -0000 1.7 @@ -28,11 +28,7 @@ #include "engine.h" #include "gtkvideo.h" #include "script_engine.h" - -void vis_hide (GtkVideo *this, xine_audio_port_t *audio_port) -{ - gtk_video_hide_vis (this, audio_port); -} +#include "vis.h" gboolean vis_show (GtkVideo *this, xine_audio_port_t **audio_port) { @@ -42,12 +38,6 @@ return gtk_video_show_vis (this, audio_port); } -gboolean vis_set (GtkVideo *this, const char *id, - xine_audio_port_t **audio_port) -{ - return gtk_video_set_vis (this, id, audio_port); -} - static JSBool js_set_vis (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { @@ -78,5 +68,5 @@ se_defun (gse, NULL, "set_vis", js_set_vis, 0, 0, SE_GROUP_ENGINE, N_("string"), N_("visualisation name")); if (xine_config_lookup_entry (xine, "post_audio_plugin", &entry)) - gtk_video_set_vis (GTK_VIDEO(gtv), entry.str_value, audio_port); + gtk_video_set_vis (GTK_VIDEO(gtv), entry.str_value, &audio_port); } Index: vis.h =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/vis.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- vis.h 17 Nov 2004 02:12:07 -0000 1.1 +++ vis.h 30 Dec 2004 21:02:59 -0000 1.2 @@ -23,9 +23,9 @@ #ifndef HAVE_VIS_H #define HAVE_VIS_H -void vis_hide (GtkVideo *, xine_audio_port_t *); +#define vis_hide(V,A) gtk_video_hide_vis ((V), (A)) gboolean vis_show (GtkVideo *, xine_audio_port_t **); -void vis_set (GtkVideo *, const char *id, xine_audio_port_t **); +#define vis_set(V,ID,A) gtk_video_set_vis ((V), (ID), (A)) void vis_init (void); |