navit  0.5.3-trunk
event_glib.c File Reference
#include <glib.h>
#include "event.h"
#include "event_glib.h"
#include "debug.h"
#include "callback.h"
#include "plugin.h"

Data Structures

struct  event_watch
 
struct  event_timeout
 
struct  event_idle
 
struct  event_priv
 

Functions

static void event_glib_main_loop_run (void)
 
static void event_glib_main_loop_quit (void)
 
static gboolean event_glib_call_watch (GIOChannel *iochan, GIOCondition condition, gpointer t)
 
static struct event_watchevent_glib_add_watch (int fd, enum event_watch_cond cond, struct callback *cb)
 
static void event_glib_remove_watch (struct event_watch *ev)
 
static gboolean event_glib_call_timeout_single (struct event_timeout *ev)
 
static gboolean event_glib_call_timeout_multi (struct event_timeout *ev)
 
static struct event_timeoutevent_glib_add_timeout (int timeout, int multi, struct callback *cb)
 
static void event_glib_remove_timeout (struct event_timeout *ev)
 
static gboolean event_glib_call_idle (struct event_idle *ev)
 
static struct event_idleevent_glib_add_idle (int priority, struct callback *cb)
 
static void event_glib_remove_idle (struct event_idle *ev)
 
static void event_glib_call_callback (struct callback_list *cb)
 
static struct event_privevent_glib_new (struct event_methods *meth)
 
void event_glib_init (void)
 

Variables

static GMainLoop * loop
 
static struct event_methods event_glib_methods
 

Function Documentation

◆ event_glib_add_idle()

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

◆ event_glib_add_timeout()

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

◆ event_glib_add_watch()

◆ event_glib_call_callback()

static void event_glib_call_callback ( struct callback_list cb)
static

◆ event_glib_call_idle()

static gboolean event_glib_call_idle ( struct event_idle ev)
static

References callback_call_0, and event_idle::cb.

Referenced by event_glib_add_idle().

◆ event_glib_call_timeout_multi()

static gboolean event_glib_call_timeout_multi ( struct event_timeout ev)
static

◆ event_glib_call_timeout_single()

static gboolean event_glib_call_timeout_single ( struct event_timeout ev)
static

◆ event_glib_call_watch()

static gboolean event_glib_call_watch ( GIOChannel *  iochan,
GIOCondition  condition,
gpointer  t 
)
static

References callback_call_0.

Referenced by event_glib_add_watch().

◆ event_glib_init()

void event_glib_init ( void  )

References event_glib_new().

Referenced by main_real().

◆ event_glib_main_loop_quit()

static void event_glib_main_loop_quit ( void  )
static

References loop.

◆ event_glib_main_loop_run()

static void event_glib_main_loop_run ( void  )
static

References loop.

◆ event_glib_new()

static struct event_priv* event_glib_new ( struct event_methods meth)
static

References event_glib_methods.

Referenced by event_glib_init().

◆ event_glib_remove_idle()

static void event_glib_remove_idle ( struct event_idle ev)
static

References event_idle::source.

◆ event_glib_remove_timeout()

static void event_glib_remove_timeout ( struct event_timeout ev)
static

References event_timeout::source.

◆ event_glib_remove_watch()

static void event_glib_remove_watch ( struct event_watch ev)
static

Variable Documentation

◆ event_glib_methods

struct event_methods event_glib_methods
static
Initial value:
= {
}
static void event_glib_main_loop_quit(void)
Definition: event_glib.c:36
static void event_glib_remove_idle(struct event_idle *ev)
Definition: event_glib.c:132
static struct event_timeout * event_glib_add_timeout(int timeout, int multi, struct callback *cb)
Definition: event_glib.c:99
static void event_glib_remove_timeout(struct event_timeout *ev)
Definition: event_glib.c:108
static void event_glib_call_callback(struct callback_list *cb)
Definition: event_glib.c:139
static void event_glib_remove_watch(struct event_watch *ev)
Definition: event_glib.c:74
static struct event_watch * event_glib_add_watch(int fd, enum event_watch_cond cond, struct callback *cb)
Definition: event_glib.c:55
static struct event_idle * event_glib_add_idle(int priority, struct callback *cb)
Definition: event_glib.c:125
static void event_glib_main_loop_run(void)
Definition: event_glib.c:29

Referenced by event_glib_new().

◆ loop

GMainLoop* loop
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_glib_main_loop_quit(), event_glib_main_loop_run(), and itembin_loop_combiner().