navit  0.5.3-trunk
event.c File Reference
#include <string.h>
#include <stdlib.h>
#include "event.h"
#include "plugin.h"
#include "debug.h"

Macros

#define require_method_helper(m)
 
#define require_method(m)
 
#define require_method2(m, r)
 

Functions

void event_main_loop_run (void)
 
void event_main_loop_quit (void)
 
int event_main_loop_has_quit (void)
 
struct event_watchevent_add_watch (int fd, enum event_watch_cond cond, struct callback *cb)
 
void event_remove_watch (struct event_watch *ev)
 
struct event_timeoutevent_add_timeout (int timeout, int multi, struct callback *cb)
 
void event_remove_timeout (struct event_timeout *ev)
 
struct event_idleevent_add_idle (int priority, struct callback *cb)
 
void event_remove_idle (struct event_idle *ev)
 
void event_call_callback (struct callback_list *cb)
 
char const * event_system (void)
 
int event_request_system (const char *system, const char *requestor)
 

Variables

static struct event_methods event_methods
 
static const char * e_requestor
 
static const char * e_system
 
static int has_quit
 

Macro Definition Documentation

◆ require_method

#define require_method (   m)
Value:
return;\
}
#define require_method_helper(m)
Definition: event.c:32

◆ require_method2

#define require_method2 (   m,
 
)
Value:
return r;\
}

◆ require_method_helper

#define require_method_helper (   m)
Value:
if(!event_methods.m) {\
dbg(lvl_error, "Can't find event system method %s. Event system is %s%s",\
#m ,e_system?"set to ":"not set.", e_system?e_system:"");\
@ lvl_error
Definition: debug.h:46
static const char * e_system
Definition: event.c:28
Definition: event.h:37

Function Documentation

◆ event_add_idle()

◆ event_add_timeout()

◆ event_add_watch()

◆ event_call_callback()

void event_call_callback ( struct callback_list cb)

◆ event_main_loop_has_quit()

int event_main_loop_has_quit ( void  )

References has_quit.

Referenced by gui_internal_button(), and gui_internal_keypress().

◆ event_main_loop_quit()

void event_main_loop_quit ( void  )

◆ event_main_loop_run()

void event_main_loop_run ( void  )

References event_methods::main_loop_run, and require_method.

Referenced by main_real().

◆ event_remove_idle()

◆ event_remove_timeout()

◆ event_remove_watch()

void event_remove_watch ( struct event_watch ev)

◆ event_request_system()

◆ event_system()

char const* event_system ( void  )

References e_system.

Referenced by messagelist_init().

Variable Documentation

◆ e_requestor

const char* e_requestor
static

Referenced by event_request_system().

◆ e_system

const char* e_system
static

◆ event_methods

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.

◆ has_quit

int has_quit
static