navit
0.5.3-trunk
|
#include <glib.h>
#include <string.h>
#include <math.h>
#include "config.h"
#include "debug.h"
#include "coord.h"
#include "item.h"
#include "navit.h"
#include "map.h"
#include "route.h"
#include "callback.h"
#include "transform.h"
#include "plugin.h"
#include "vehicle.h"
#include "event.h"
#include "util.h"
#include "track.h"
Data Structures | |
struct | vehicle_priv |
Functions | |
static void | vehicle_demo_destroy (struct vehicle_priv *priv) |
static void | nmea_chksum (char *nmea) |
static int | vehicle_demo_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr) |
static int | vehicle_demo_set_attr_do (struct vehicle_priv *priv, struct attr *attr) |
static int | vehicle_demo_set_attr (struct vehicle_priv *priv, struct attr *attr) |
static void | vehicle_demo_timer (struct vehicle_priv *priv) |
static struct vehicle_priv * | vehicle_demo_new (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs) |
void | plugin_init (void) |
The plugin entry point. More... | |
Variables | |
struct vehicle_methods | vehicle_demo_methods |
|
static |
Referenced by vehicle_demo_position_attr_get().
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.
References dbg, lvl_debug, and vehicle_demo_new().
|
static |
|
static |
References attr_position_valid_invalid, vehicle_priv::attrs, callback_cast, callback_new_1, cbl, vehicle_priv::cbl, vehicle_priv::config_speed, dbg, event_add_timeout(), vehicle_priv::height, vehicle_priv::interval, lvl_debug, vehicle_priv::timer, vehicle_priv::timer_callback, vehicle_priv::valid, vehicle_demo_methods, vehicle_demo_set_attr_do(), and vehicle_demo_timer().
Referenced by plugin_init().
|
static |
References AF_UNDERGROUND, attr::coord_geo, current_to_iso8601(), vehicle_priv::direction, vehicle_priv::geo, vehicle_priv::height, coord_geo::lat, lat, coord_geo::lng, vehicle_priv::navit, navit_get_tracking(), vehicle_priv::nmea, nmea_chksum(), attr::num, attr::numd, vehicle_priv::speed, attr::str, vehicle_priv::timep, tracking_get_current_flags(), attr::type, type, attr::u, and vehicle_priv::valid.
|
static |
|
static |
References attr_position_valid_valid, attr_to_name(), callback_list_call_attr_0, vehicle_priv::cbl, vehicle_priv::config_speed, attr::coord_geo, dbg, event_add_timeout(), event_remove_timeout(), vehicle_priv::geo, vehicle_priv::height, vehicle_priv::interval, coord_geo::lat, coord_geo::lng, lvl_debug, lvl_error, attr::navit, vehicle_priv::navit, attr::num, attr::numd, vehicle_priv::position_set, attr::route, vehicle_priv::route, vehicle_priv::timer, vehicle_priv::timer_callback, attr::type, attr::u, and vehicle_priv::valid.
Referenced by vehicle_demo_new().
|
static |
References attr_position_valid_valid, c, c2, callback_list_call_attr_0, vehicle_priv::cbl, vehicle_priv::config_speed, dbg, vehicle_priv::direction, vehicle_priv::geo, vehicle_priv::height, vehicle_priv::interval, item_coord_get(), vehicle_priv::last, lvl_debug, lvl_warning, map_rect_destroy(), map_rect_get_item(), map_rect_new(), vehicle_priv::navit, navit_get_route(), startup::pos, vehicle_priv::position_set, projection_mg, vehicle_priv::route, route_get_map(), vehicle_priv::speed, transform_distance(), transform_get_angle_delta(), transform_to_geo(), item::type, vehicle_priv::valid, coord::x, pcoord::x, coord::y, and pcoord::y.
Referenced by vehicle_demo_new().
struct vehicle_methods vehicle_demo_methods |
Referenced by vehicle_demo_new().