navit  0.5.3-trunk
Vehicle Null

A dummy Vehicle to have a null movement. More...

Data Structures

struct  vehicle_priv
 

Functions

static void vehicle_null_destroy (struct vehicle_priv *priv)
 Free the null_vehicle. More...
 
static int vehicle_null_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
 Provide the outside with information. More...
 
static int vehicle_null_set_attr (struct vehicle_priv *priv, struct attr *attr)
 
static struct vehicle_privvehicle_null_new_null (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs)
 Create null_vehicle. More...
 
void plugin_init (void)
 register vehicle_null More...
 

Variables

int vehicle_priv::have_coords
 
struct vehicle_methods vehicle_null_methods
 

Detailed Description

A dummy Vehicle to have a null movement.

Function Documentation

◆ plugin_init()

void plugin_init ( void  )

register vehicle_null

The plugin entry point.

Returns
nothing

References dbg, lvl_debug, and vehicle_null_new_null().

◆ vehicle_null_destroy()

static void vehicle_null_destroy ( struct vehicle_priv priv)
static

Free the null_vehicle.

Parameters
priv
Returns
nothing

References dbg, and lvl_debug.

◆ vehicle_null_new_null()

static struct vehicle_priv* vehicle_null_new_null ( struct vehicle_methods meth,
struct callback_list cbl,
struct attr **  attrs 
)
static

Create null_vehicle.

Parameters
meth
cbl
attrs
Returns
vehicle_priv

References cbl, vehicle_priv::cbl, dbg, lvl_debug, and vehicle_null_methods.

Referenced by plugin_init().

◆ vehicle_null_position_attr_get()

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

Provide the outside with information.

Parameters
priv
typeTODO: What can this be?
attr
Returns
true/false

References attr_to_name(), attr::coord_geo, dbg, vehicle_priv::direction, vehicle_priv::fixiso8601, vehicle_priv::geo, vehicle_priv::have_coords, vehicle_priv::height, lvl_debug, attr::numd, vehicle_priv::radius, vehicle_priv::speed, attr::str, attr::type, type, and attr::u.

◆ vehicle_null_set_attr()

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

Variable Documentation

◆ have_coords

◆ vehicle_null_methods

struct vehicle_methods vehicle_null_methods
Initial value:
= {
}
static int vehicle_null_position_attr_get(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Provide the outside with information.
Definition: vehicle_null.c:80
static void vehicle_null_destroy(struct vehicle_priv *priv)
Free the null_vehicle.
Definition: vehicle_null.c:67
static int vehicle_null_set_attr(struct vehicle_priv *priv, struct attr *attr)
Definition: vehicle_null.c:112

Referenced by vehicle_null_new_null().