summaryrefslogtreecommitdiff
path: root/src/xine-engine/events.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2002-09-22 14:29:40 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2002-09-22 14:29:40 +0000
commit0e7d3d993b4cc1db5e498fa6779386a771f08c97 (patch)
tree558e87c5ed984fe6fb4375d20499636a0c796cbc /src/xine-engine/events.c
parenta3cdd89faa5fd449b807d2d6a9c818649032003b (diff)
downloadxine-lib-0e7d3d993b4cc1db5e498fa6779386a771f08c97.tar.gz
xine-lib-0e7d3d993b4cc1db5e498fa6779386a771f08c97.tar.bz2
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
Diffstat (limited to 'src/xine-engine/events.c')
-rw-r--r--src/xine-engine/events.c8
1 files changed, 3 insertions, 5 deletions
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;