From 0e7d3d993b4cc1db5e498fa6779386a771f08c97 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 22 Sep 2002 14:29:40 +0000 Subject: API review part I - bring our beloved xine_t * back (no more const there) - remove const on some input plugin functions where the data changes with media (dvd, ...) changes and is therefore not const CVS patchset: 2740 CVS date: 2002/09/22 14:29:40 --- src/xine-engine/events.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/xine-engine/events.c') diff --git a/src/xine-engine/events.c b/src/xine-engine/events.c index a0ed4a80f..c41486550 100644 --- a/src/xine-engine/events.c +++ b/src/xine-engine/events.c @@ -29,10 +29,9 @@ #include "xine_internal.h" -int xine_register_event_listener (xine_p this_ro, +int xine_register_event_listener (xine_t *this, xine_event_listener_cb_t listener, void *user_data) { - xine_t *this = (xine_t *)this_ro; /* Ensure the listener is non-NULL */ if(listener == NULL) { return 0; @@ -55,7 +54,7 @@ int xine_register_event_listener (xine_p this_ro, return 0; } -void xine_send_event(xine_p this, xine_event_t *event) { +void xine_send_event(xine_t *this, xine_event_t *event) { uint16_t i; pthread_mutex_lock(&this->event_lock); @@ -74,9 +73,8 @@ void xine_send_event(xine_p this, xine_event_t *event) { pthread_cond_signal(&this->event_handled); } -int xine_remove_event_listener(xine_p this_ro, +int xine_remove_event_listener(xine_t *this, xine_event_listener_cb_t listener) { - xine_t *this = (xine_t *)this_ro; uint16_t i, found, pending; found = 1; -- cgit v1.2.3