|
navit
0.5.3-trunk
|
#include "config.h"#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <string.h>#include <glib.h>#include <sys/stat.h>#include <termios.h>#include <math.h>#include "debug.h"#include "callback.h"#include "plugin.h"#include "coord.h"#include "item.h"#include "event.h"#include "vehicle.h"#include "file.h"Data Structures | |
| struct | gps_sat |
| struct | vehicle_priv |
Enumerations | |
| enum | file_type { file_type_pipe = 1 , file_type_device , file_type_file , file_type_socket , file_type_serial , file_type_pipe = 1 , file_type_device , file_type_file , file_type_socket } |
Functions | |
| static void | vehicle_file_disable_watch (struct vehicle_priv *priv) |
| Disable watch. More... | |
| static void | vehicle_file_enable_watch (struct vehicle_priv *priv) |
| Enable watch. More... | |
| static int | vehicle_file_parse (struct vehicle_priv *priv, char *buffer) |
| Parse the buffer. More... | |
| static int | vehicle_file_open (struct vehicle_priv *priv) |
| Callback of the plugin. More... | |
| static void | vehicle_file_close (struct vehicle_priv *priv) |
| Close dialogue with the GPS. More... | |
| static int | vehicle_file_enable_watch_timer (struct vehicle_priv *priv) |
| Enable watch timer to get GPS data. More... | |
| static void | vehicle_file_fix_timeout_cb (struct vehicle_priv *priv) |
| This is a callback function, called when the fix timeout is done. Set the position to invalid. More... | |
| static void | vehicle_file_restart_fix_timeout (struct vehicle_priv *priv) |
| Cancel previous fix timeout event and add a new one. More... | |
| static void | vehicle_file_io (struct vehicle_priv *priv) |
| Function to get data from GPS. More... | |
| static void | vehicle_file_destroy (struct vehicle_priv *priv) |
| Function called to uninitialize the plugin. More... | |
| static int | vehicle_file_position_attr_get (struct vehicle_priv *priv, enum attr_type type, struct attr *attr) |
| Function called to get attribute. More... | |
| static int | vehicle_file_sat_attr_get (void *priv_data, enum attr_type type, struct attr *attr) |
| Function called to get satellite attribute. More... | |
| static struct vehicle_priv * | vehicle_file_new_file (struct vehicle_methods *meth, struct callback_list *cbl, struct attr **attrs) |
| Function called to initialize the plugin. More... | |
| void | plugin_init (void) |
| Initialisation of vehicle_file plugin. More... | |
Variables | |
| static int | buffer_size = 1024 |
| static struct item_methods | vehicle_file_sat_methods |
| static struct vehicle_methods | vehicle_file_methods |