navit
0.5.3-trunk
|
#include <glib.h>
#include <poll.h>
#include "SDL.h"
#include <pthread.h>
#include <signal.h>
#include "config.h"
#include "event.h"
#include "event_sdl.h"
#include "graphics_sdl.h"
#include "debug.h"
#include "callback.h"
#include "plugin.h"
Functions | |
static void | event_sdl_watch_startthread (GPtrArray *) |
static void | event_sdl_watch_stopthread (void) |
static struct event_watch * | event_sdl_add_watch (int, enum event_watch_cond, struct callback *) |
static void | event_sdl_remove_watch (struct event_watch *) |
static struct event_timeout * | event_sdl_add_timeout (int, int, struct callback *) |
static void | event_sdl_remove_timeout (struct event_timeout *) |
static struct event_idle * | event_sdl_add_idle (int, struct callback *) |
static void | event_sdl_remove_idle (struct event_idle *) |
static void | event_sdl_call_callback (struct callback_list *) |
static Uint32 | sdl_timer_callback (Uint32 interval, void *param) |
static void | event_sdl_main_loop_run (void) |
static void | event_sdl_main_loop_quit (void) |
void | event_sdl_watch_thread (GPtrArray *watch_list) |
static gint | sdl_sort_idle_tasks (gconstpointer parama, gconstpointer paramb) |
static struct event_priv * | event_sdl_new (struct event_methods *methods) |
void | event_sdl_register (void) |
Variables | |
static pthread_t | sdl_watch_thread = 0 |
static GPtrArray * | sdl_watch_list = NULL |
static struct event_methods | event_sdl_methods |
|
static |
References event_idle::cb, idle_task::cb, dbg, idle_tasks, lvl_debug, idle_task::priority, and sdl_sort_idle_tasks().
|
static |
References event_timeout::cb, dbg, event_timeout::id, lvl_debug, lvl_error, event_timeout::multi, and sdl_timer_callback().
|
static |
|
static |
|
static |
References quit_event_loop.
|
static |
References event_sdl_watch_stopthread(), and graphics_sdl_idle().
|
static |
References event_sdl_methods, idle_tasks, and methods.
Referenced by event_sdl_register().
void event_sdl_register | ( | void | ) |
References event_sdl_new().
|
static |
References dbg, idle_tasks, and lvl_debug.
|
static |
References dbg, event_timeout::id, lvl_debug, lvl_error, and lvl_info.
|
static |
References dbg, event_sdl_watch_startthread(), event_sdl_watch_stopthread(), lvl_debug, event_watch::pfd, and sdl_watch_list.
|
static |
References dbg, dbg_assert, event_sdl_watch_stopthread(), event_sdl_watch_thread(), lvl_debug, and sdl_watch_thread.
Referenced by event_sdl_add_watch(), and event_sdl_remove_watch().
|
static |
References dbg, lvl_debug, and sdl_watch_thread.
Referenced by event_sdl_add_watch(), event_sdl_main_loop_run(), event_sdl_remove_watch(), and event_sdl_watch_startthread().
void event_sdl_watch_thread | ( | GPtrArray * | watch_list | ) |
References event_watch::cb, dbg, lvl_debug, event_watch::pfd, and callback::type.
Referenced by event_sdl_watch_startthread().
|
static |
References idle_task::priority.
Referenced by event_sdl_add_idle().
|
static |
References event_timeout::cb, dbg, event_timeout::id, lvl_debug, event_timeout::multi, and callback::type.
Referenced by event_sdl_add_timeout().
|
static |
Referenced by event_sdl_new().
|
static |
Referenced by event_sdl_add_watch(), event_sdl_remove_watch(), and graphics_sdl_new().
|
static |
Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Referenced by event_sdl_watch_startthread(), event_sdl_watch_stopthread(), and graphics_sdl_new().