|
navit
0.5.3-trunk
|
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_priv * | vehicle_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 navit * | vehicle_priv::navit |
| struct coord | vehicle_priv::last |
| double | vehicle_priv::config_speed |
| double | vehicle_priv::radius |
| struct callback * | vehicle_priv::timer_callback |
| struct event_timeout * | vehicle_priv::timer |
| char | vehicle_priv::str_time [200] |
| struct vehicle_methods | vehicle_iphone_methods |
The Vehicle to gain position data from iPhone.
| void plugin_init | ( | void | ) |
The plugin entry point.
The plugin entry point
The plugin entry point.
This function is called once on startup.
The plugin entry point.
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
References dbg, lvl_debug, and vehicle_iphone_new().
|
static |
References corelocation_exit().
|
static |
Initialize corelocation
References attr_search(), attr::attrs, cbl, vehicle_priv::cbl, vehicle_priv::config_speed, attr::coord_geo, corelocation_init(), dbg, vehicle_priv::geo, vehicle_priv::interval, coord_geo::lat, coord_geo::lng, lvl_debug, attr::num, vehicle_priv::position_set, vehicle_priv::str_time, attr::u, vehicle_iphone_methods, and vehicle_iphone_update().
Referenced by plugin_init().
|
static |
|
static |
| void vehicle_iphone_update | ( | void * | arg, |
| double | lat, | ||
| double | lng, | ||
| double | dir, | ||
| double | spd, | ||
| char * | str_time, | ||
| double | radius | ||
| ) |
References callback_list_call_attr_0, vehicle_priv::cbl, dbg, vehicle_priv::direction, vehicle_priv::geo, coord_geo::lat, lat, coord_geo::lng, lvl_debug, vehicle_priv::radius, vehicle_priv::speed, and vehicle_priv::str_time.
Referenced by vehicle_iphone_new().
| double vehicle_priv::config_speed |
Referenced by vehicle_demo_new(), vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
| int vehicle_priv::interval |
Referenced by vehicle_demo_new(), vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
| struct coord vehicle_priv::last |
Referenced by vehicle_demo_timer().
| struct navit * vehicle_priv::navit |
Referenced by vehicle_demo_position_attr_get(), vehicle_demo_set_attr_do(), and vehicle_demo_timer().
| int vehicle_priv::position_set |
Referenced by vehicle_demo_set_attr_do(), vehicle_demo_timer(), and vehicle_iphone_new().
| double vehicle_priv::radius |
Position accuracy in meters
Referenced by QNavitGeoReceiver::positionUpdated(), vehicle_android_position_callback(), vehicle_iphone_position_attr_get(), vehicle_iphone_update(), vehicle_null_position_attr_get(), and vehicle_qt5_position_attr_get().
| char vehicle_priv::str_time[200] |
Referenced by vehicle_iphone_new(), vehicle_iphone_position_attr_get(), and vehicle_iphone_update().
| struct event_timeout * vehicle_priv::timer |
Referenced by vehicle_demo_destroy(), vehicle_demo_new(), and vehicle_demo_set_attr_do().
| struct callback * vehicle_priv::timer_callback |
Referenced by vehicle_demo_destroy(), vehicle_demo_new(), and vehicle_demo_set_attr_do().
| struct vehicle_methods vehicle_iphone_methods |
Referenced by vehicle_iphone_new().