navit  0.5.3-trunk
Vehicle Gpsd DBus

The Vehicle to gain position data from Gpsd over DBus. More...

Data Structures

struct  vehicle_priv
 

Functions

static void vehicle_gpsd_dbus_close (struct vehicle_priv *priv)
 
static DBusHandlerResult vehicle_gpsd_dbus_filter (DBusConnection *connection, DBusMessage *message, void *user_data)
 
static int vehicle_gpsd_dbus_open (struct vehicle_priv *priv)
 
static void vehicle_gpsd_dbus_destroy (struct vehicle_priv *priv)
 
static int vehicle_gpsd_dbus_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
 
static int vehicle_gpsd_dbus_set_attr_do (struct vehicle_priv *priv, struct attr *attr, int init)
 
static int vehicle_gpsd_dbus_set_attr (struct vehicle_priv *priv, struct attr *attr)
 
static struct vehicle_privvehicle_gpsd_dbus_new (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs)
 
void plugin_init (void)
 The plugin entry point. More...
 

Variables

static char * vehicle_gpsd_dbus_prefix ="gpsd_dbus:"
 
char * vehicle_priv::address
 
int vehicle_priv::flags
 
DBusConnection * vehicle_priv::connection
 
double vehicle_priv::time
 
double vehicle_priv::track
 
double vehicle_priv::altitude
 
static struct vehicle_methods vehicle_gpsd_methods
 

Detailed Description

The Vehicle to gain position data from Gpsd over DBus.

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

◆ vehicle_gpsd_dbus_close()

static void vehicle_gpsd_dbus_close ( struct vehicle_priv priv)
static

◆ vehicle_gpsd_dbus_destroy()

static void vehicle_gpsd_dbus_destroy ( struct vehicle_priv priv)
static

◆ vehicle_gpsd_dbus_filter()

static DBusHandlerResult vehicle_gpsd_dbus_filter ( DBusConnection *  connection,
DBusMessage *  message,
void *  user_data 
)
static

◆ vehicle_gpsd_dbus_new()

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

◆ vehicle_gpsd_dbus_open()

◆ vehicle_gpsd_dbus_position_attr_get()

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

◆ vehicle_gpsd_dbus_set_attr()

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

◆ vehicle_gpsd_dbus_set_attr_do()

Variable Documentation

◆ address

char* vehicle_priv::address

◆ altitude

◆ connection

DBusConnection* vehicle_priv::connection

◆ flags

int vehicle_priv::flags

◆ time

double vehicle_priv::time

◆ track

double vehicle_priv::track

◆ vehicle_gpsd_dbus_prefix

char* vehicle_gpsd_dbus_prefix ="gpsd_dbus:"
static

◆ vehicle_gpsd_methods

struct vehicle_methods vehicle_gpsd_methods
static
Initial value:
= {
}
static void vehicle_gpsd_dbus_destroy(struct vehicle_priv *priv)
Definition: vehicle_gpsd_dbus.c:140
static int vehicle_gpsd_dbus_set_attr(struct vehicle_priv *priv, struct attr *attr)
Definition: vehicle_gpsd_dbus.c:206
static int vehicle_gpsd_dbus_position_attr_get(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition: vehicle_gpsd_dbus.c:147

Referenced by vehicle_gpsd_dbus_new().