diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-11 18:51:31 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-11 18:51:31 +0000 |
commit | 710299574bf3ff3452c1d2c5cf5265b3a8718f54 (patch) | |
tree | b6728cc9a67cc8cd82ed409161d5ef435229b075 /navit/event_glib.c | |
parent | 9f3e3aa7fa7735fefee728f79f578ebbf65c286f (diff) | |
download | navit-710299574bf3ff3452c1d2c5cf5265b3a8718f54.tar.gz |
Fix:vehicle_file:Converted to event system
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1721 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/event_glib.c')
-rw-r--r-- | navit/event_glib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/event_glib.c b/navit/event_glib.c index ec7c373e4..7a4a1ebbb 100644 --- a/navit/event_glib.c +++ b/navit/event_glib.c @@ -54,10 +54,10 @@ event_glib_call_watch(GIOChannel * iochan, GIOCondition condition, gpointer t) } static struct event_watch * -event_glib_add_watch(struct file *file, enum event_watch_cond cond, struct callback *cb) +event_glib_add_watch(void *fd, enum event_watch_cond cond, struct callback *cb) { struct event_watch *ret=g_new0(struct event_watch, 1); - int flags=0,fd=(int)file_get_os_handle(file); + int flags=0; ret->iochan = g_io_channel_unix_new(fd); switch (cond) { case event_watch_cond_read: @@ -81,7 +81,7 @@ event_glib_remove_watch(struct event_watch *ev) if (! ev) return; g_source_remove(ev->source); - g_io_channel_shutdown(ev->iochan, 0, &error); + g_io_channel_unref(ev->iochan); g_free(ev); } |