navit  0.5.3-trunk
Vehicle iPhone

The Vehicle to gain position data from iPhone. More...

Data Structures

struct  vehicle_priv
 

Functions

static void vehicle_iphone_destroy (struct vehicle_priv *priv)
 
static int vehicle_iphone_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
 
static int vehicle_iphone_set_attr (struct vehicle_priv *priv, struct attr *attr)
 
void vehicle_iphone_update (void *arg, double lat, double lng, double dir, double spd, char *str_time, double radius)
 
static struct vehicle_privvehicle_iphone_new (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs)
 
void plugin_init (void)
 The plugin entry point. More...
 
static void vehicle_maemo_callback (LocationGPSDevice *device, gpointer user_data)
 
static void vehicle_maemo_error (LocationGPSDControl *control, LocationGPSDControlError error, gpointer user_data)
 
static void vehicle_maemo_open (struct vehicle_priv *priv)
 
static void vehicle_maemo_destroy (struct vehicle_priv *priv)
 
static int vehicle_maemo_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
 
static struct vehicle_privvehicle_maemo_new_maemo (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs)
 

Variables

int vehicle_priv::interval
 
int vehicle_priv::position_set
 
struct navitvehicle_priv::navit
 
struct coord vehicle_priv::last
 
double vehicle_priv::config_speed
 
double vehicle_priv::radius
 
struct callbackvehicle_priv::timer_callback
 
struct event_timeoutvehicle_priv::timer
 
char vehicle_priv::str_time [200]
 
struct vehicle_methods vehicle_iphone_methods
 
LocationGPSDControl * vehicle_priv::control
 
LocationGPSDevice * vehicle_priv::device
 
struct vehicle_methods vehicle_maemo_methods
 

Detailed Description

The Vehicle to gain position data from iPhone.

The Vehicle to gain position data from Maemo.

Plugin for new Maemo's liblocation API. <vehicle source="maemo://any" retry_interval="1"> source cound be on of "any","cwp","acwp","gnss","agnss" retry_interval could be one of "1","2","5","10","20","30","60","120" measured in seconds

Function Documentation

◆ plugin_init()

void plugin_init ( void  )

The plugin entry point.

Returns
nothing

The plugin entry point

The plugin entry point.

This function is called once on startup.

The plugin entry point.

Returns
nothing

The plugin entry point.

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.

References dbg, lvl_debug, and vehicle_iphone_new().

◆ vehicle_iphone_destroy()

static void vehicle_iphone_destroy ( struct vehicle_priv priv)
static

References corelocation_exit().

◆ vehicle_iphone_new()

◆ vehicle_iphone_position_attr_get()

static int vehicle_iphone_position_attr_get ( struct vehicle_priv priv,
enum attr_type  type,
struct attr attr 
)
static

◆ vehicle_iphone_set_attr()

static int vehicle_iphone_set_attr ( struct vehicle_priv priv,
struct attr attr 
)
static

◆ vehicle_iphone_update()

void vehicle_iphone_update ( void *  arg,
double  lat,
double  lng,
double  dir,
double  spd,
char *  str_time,
double  radius 
)

◆ vehicle_maemo_callback()

◆ vehicle_maemo_destroy()

static void vehicle_maemo_destroy ( struct vehicle_priv priv)
static

◆ vehicle_maemo_error()

static void vehicle_maemo_error ( LocationGPSDControl *  control,
LocationGPSDControlError  error,
gpointer  user_data 
)
static

References dbg, and lvl_error.

Referenced by vehicle_maemo_open().

◆ vehicle_maemo_new_maemo()

◆ vehicle_maemo_open()

static void vehicle_maemo_open ( struct vehicle_priv priv)
static

◆ vehicle_maemo_position_attr_get()

Variable Documentation

◆ config_speed

double vehicle_priv::config_speed

◆ control

LocationGPSDControl* vehicle_priv::control

◆ device

LocationGPSDevice* vehicle_priv::device

◆ interval

◆ last

struct coord vehicle_priv::last

Referenced by vehicle_demo_timer().

◆ navit

struct navit * vehicle_priv::navit

◆ position_set

int vehicle_priv::position_set

◆ radius

◆ str_time

char vehicle_priv::str_time[200]

◆ timer

struct event_timeout * vehicle_priv::timer

◆ timer_callback

struct callback * vehicle_priv::timer_callback

◆ vehicle_iphone_methods

struct vehicle_methods vehicle_iphone_methods
Initial value:
= {
}
static int vehicle_iphone_position_attr_get(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition: vehicle_iphone.c:65
static void vehicle_iphone_destroy(struct vehicle_priv *priv)
Definition: vehicle_iphone.c:60
static int vehicle_iphone_set_attr(struct vehicle_priv *priv, struct attr *attr)
Definition: vehicle_iphone.c:92

Referenced by vehicle_iphone_new().

◆ vehicle_maemo_methods

struct vehicle_methods vehicle_maemo_methods
Initial value:
= {
}
static int vehicle_maemo_position_attr_get(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition: vehicle_maemo.c:221
static void vehicle_maemo_destroy(struct vehicle_priv *priv)
Definition: vehicle_maemo.c:212

Referenced by vehicle_maemo_new_maemo().