From 0a92222cd6d61053030db17a713e65b09ddb7a70 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 11 Jan 2004 15:31:53 +0000 Subject: allowing a const pointer here, since this will remove the need for a cast in frontends; this change is ABI-wise equivalent to adding a new function CVS patchset: 6022 CVS date: 2004/01/11 15:31:53 --- include/xine.h.in | 8 ++++---- src/xine-engine/xine_interface.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/xine.h.in b/include/xine.h.in index 72939d0f0..14fbddf72 100644 --- a/include/xine.h.in +++ b/include/xine.h.in @@ -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.h.in,v 1.114 2004/01/03 20:23:19 valtri Exp $ + * $Id: xine.h.in,v 1.115 2004/01/11 15:31:53 mroi Exp $ * * public xine-lib (libxine) interface and documentation * @@ -599,10 +599,10 @@ const char *const *xine_post_list_inputs(xine_post_t *self); const char *const *xine_post_list_outputs(xine_post_t *self); /* retrieve one specific input of a post plugin */ -xine_post_in_t *xine_post_input(xine_post_t *self, char *name); +xine_post_in_t *xine_post_input(xine_post_t *self, const char *name); /* retrieve one specific output of a post plugin */ -xine_post_out_t *xine_post_output(xine_post_t *self, char *name); +xine_post_out_t *xine_post_output(xine_post_t *self, const char *name); /* * wire an input to an output @@ -630,7 +630,7 @@ int xine_post_wire_video_port(xine_post_out_t *source, xine_video_port_t *vo); * * returns 1 on success, 0 on failure */ -int xine_post_wire_audio_port(xine_post_out_t *source, xine_audio_port_t *vo); +int xine_post_wire_audio_port(xine_post_out_t *source, xine_audio_port_t *ao); /* * Extracts an output for a stream. Use this to rewire the outputs of streams. diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 63d4297eb..02aa35abd 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.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_interface.c,v 1.75 2003/12/31 23:29:06 jcdutton Exp $ + * $Id: xine_interface.c,v 1.76 2004/01/11 15:31:53 mroi Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -709,7 +709,7 @@ const char *const *xine_post_list_outputs(xine_post_t *this_gen) { return this->output_ids; } -xine_post_in_t *xine_post_input(xine_post_t *this_gen, char *name) { +xine_post_in_t *xine_post_input(xine_post_t *this_gen, const char *name) { post_plugin_t *this = (post_plugin_t *)this_gen; xine_post_in_t *input; @@ -722,7 +722,7 @@ xine_post_in_t *xine_post_input(xine_post_t *this_gen, char *name) { return NULL; } -xine_post_out_t *xine_post_output(xine_post_t *this_gen, char *name) { +xine_post_out_t *xine_post_output(xine_post_t *this_gen, const char *name) { post_plugin_t *this = (post_plugin_t *)this_gen; xine_post_out_t *output; -- cgit v1.2.3