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...
 

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
 

Detailed Description

The Vehicle to gain position data from iPhone.

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.

The plugin entry point.

register vehicle_gypsy

Returns
nothing

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 
)

Variable Documentation

◆ config_speed

double vehicle_priv::config_speed

◆ interval

◆ last

struct coord vehicle_priv::last

Referenced by vehicle_demo_timer().

◆ 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().