navit  0.5.3-trunk
event.c File Reference

Data Structures

struct  event_timeout
 
struct  idle_task
 
struct  event_watch
 

Functions

static void event_sdl_watch_thread (GPtrArray *)
 
static void event_sdl_watch_startthread (GPtrArray *watch_list)
 
static void event_sdl_watch_stopthread (void)
 
static struct event_watchevent_sdl_add_watch (int, enum event_watch_cond, struct callback *)
 
static void event_sdl_remove_watch (struct event_watch *)
 
static struct event_timeoutevent_sdl_add_timeout (int, int, struct callback *)
 
static void event_sdl_remove_timeout (struct event_timeout *)
 
static struct event_idleevent_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)
 
static gint sdl_sort_idle_tasks (gconstpointer parama, gconstpointer paramb)
 
static struct event_privevent_sdl_new (struct event_methods *methods)
 
void sdl_event_init (void)
 

Variables

static struct event_methods event_sdl_methods
 

Function Documentation

◆ event_sdl_add_idle()

static struct event_idle * event_sdl_add_idle ( int  priority,
struct callback cb 
)
static

◆ event_sdl_add_timeout()

static struct event_timeout * event_sdl_add_timeout ( int  timeout,
int  multi,
struct callback cb 
)
static

◆ event_sdl_add_watch()

◆ event_sdl_call_callback()

static void event_sdl_call_callback ( struct callback_list cbl)
static

References cbl, dbg, and lvl_debug.

Referenced by graphics_sdl_new().

◆ event_sdl_main_loop_quit()

static void event_sdl_main_loop_quit ( void  )
static

References quit_event_loop.

Referenced by graphics_sdl_new().

◆ event_sdl_main_loop_run()

◆ event_sdl_new()

static struct event_priv* event_sdl_new ( struct event_methods methods)
static

◆ event_sdl_remove_idle()

static void event_sdl_remove_idle ( struct event_idle task)
static

References dbg, idle_tasks, and lvl_debug.

Referenced by graphics_sdl_new().

◆ event_sdl_remove_timeout()

static void event_sdl_remove_timeout ( struct event_timeout to)
static

References dbg, event_timeout::id, lvl_debug, and lvl_info.

Referenced by graphics_sdl_new().

◆ event_sdl_remove_watch()

static void event_sdl_remove_watch ( struct event_watch ew)
static

◆ event_sdl_watch_startthread()

static void event_sdl_watch_startthread ( GPtrArray *  watch_list)
static

◆ event_sdl_watch_stopthread()

◆ event_sdl_watch_thread()

static void event_sdl_watch_thread ( GPtrArray *  watch_list)
static

◆ sdl_event_init()

void sdl_event_init ( void  )

References event_sdl_new().

◆ sdl_sort_idle_tasks()

static gint sdl_sort_idle_tasks ( gconstpointer  parama,
gconstpointer  paramb 
)
static

◆ sdl_timer_callback()

static Uint32 sdl_timer_callback ( Uint32  interval,
void *  param 
)
static

Variable Documentation

◆ event_sdl_methods

struct event_methods event_sdl_methods
static
Initial value:
}
static void event_sdl_main_loop_quit(void)
Definition: event.c:150
static void event_sdl_remove_timeout(struct event_timeout *)
Definition: event.c:281
static void event_sdl_remove_watch(struct event_watch *)
Definition: event.c:253
static void event_sdl_main_loop_run(void)
Definition: event.c:128
static struct event_idle * event_sdl_add_idle(int, struct callback *)
Definition: event.c:307
static void event_sdl_call_callback(struct callback_list *)
Definition: event.c:345
static struct event_timeout * event_sdl_add_timeout(int, int, struct callback *)
Definition: event.c:268
static void event_sdl_remove_idle(struct event_idle *)
Definition: event.c:338
static struct event_watch * event_sdl_add_watch(int, enum event_watch_cond, struct callback *)
Definition: event.c:217

Referenced by event_sdl_new(), and graphics_sdl_new().