navit
0.5.3-trunk
|
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "config.h"
#include "plugin.h"
#include "data.h"
#include "projection.h"
#include "item.h"
#include "debug.h"
#include "map.h"
#include "maptype.h"
#include "attr.h"
#include "coord.h"
#include "transform.h"
#include <libgarmin.h>
#include "garmin.h"
#include "gar2navit.h"
Data Structures | |
struct | map_priv |
Represents the map from a single binfile. More... | |
struct | map_rect_priv |
Implementation-specific map rect data. More... | |
struct | gscale |
struct | nl2gl_t |
Macros | |
#define | max(a, b) ((a) > (b) ? (a) : (b)) |
Functions | |
void | logfn (char *file, int line, int level, char *fmt,...) |
static int | garmin_object_label (struct gobject *o, struct attr *attr) |
static int | garmin_object_debug (struct gobject *o, struct attr *attr) |
static struct map_search_priv * | gmap_search_new (struct map_priv *map, struct item *item, struct attr *search, int partial) |
static void | coord_rewind (void *priv_data) |
static void | attr_rewind (void *priv_data) |
static int | point_coord_get (void *priv_data, struct coord *c, int count) |
static int | coord_is_node (void *priv_data) |
static int | poly_coord_get (void *priv_data, struct coord *c, int count) |
static int | point_attr_get (void *priv_data, enum attr_type attr_type, struct attr *attr) |
static int | search_attr_get (void *priv_data, enum attr_type attr_type, struct attr *attr) |
static int | search_coord_get (void *priv_data, struct coord *c, int count) |
static struct item * | garmin_poi2item (struct map_rect_priv *mr, struct gobject *o, unsigned short otype) |
static struct item * | garmin_pl2item (struct map_rect_priv *mr, struct gobject *o, unsigned short otype) |
static struct item * | garmin_pg2item (struct map_rect_priv *mr, struct gobject *o, unsigned short otype) |
static struct item * | garmin_srch2item (struct map_rect_priv *mr, struct gobject *o, unsigned short otype) |
static struct item * | garmin_obj2item (struct map_rect_priv *mr, struct gobject *o) |
static struct item * | gmap_rect_get_item_byid (struct map_rect_priv *mr, int id_hi, int id_lo) |
static struct item * | gmap_rect_get_item (struct map_rect_priv *mr) |
static int | get_level (struct map_selection *sel) |
static int | garmin_get_selection (struct map_rect_priv *map, struct map_selection *sel) |
static struct map_rect_priv * | gmap_rect_new (struct map_priv *map, struct map_selection *sel) |
static void | gmap_rect_destroy (struct map_rect_priv *mr) |
static void | gmap_search_destroy (struct map_search_priv *ms) |
static void | gmap_destroy (struct map_priv *m) |
static struct map_priv * | gmap_new (struct map_methods *meth, struct attr **attrs, struct callback_list *cbl) |
void | plugin_init (void) |
Variables | |
static int | map_id |
int | garmin_debug = 10 |
static struct gscale | mapscales [] |
static struct item_methods | methods_garmin_point |
static struct item_methods | methods_garmin_poly |
static struct item_methods | methods_garmin_search |
struct nl2gl_t | nl2gl_1 [] |
struct nl2gl_t | nl2gl [] |
static struct map_methods | map_methods |
#define max | ( | a, | |
b | |||
) | ((a) > (b) ? (a) : (b)) |
|
static |
References map_rect_priv::last_attr.
|
static |
References map_rect_priv::gmap, and map_rect_priv::last_coord.
|
static |
References map_rect_priv::last_coord.
|
static |
References map_selection::c_rect, dlog, get_level(), coord_rect::lu, item_range::max, map_selection::range, coord_rect::rl, map_selection::u, coord::x, and coord::y.
Referenced by gmap_rect_new().
|
static |
References dlog, garmin_pg2item(), garmin_pl2item(), garmin_poi2item(), garmin_srch2item(), map_rect_priv::item, and item::type.
Referenced by gmap_rect_get_item(), and gmap_rect_get_item_byid().
|
static |
References dlog, map_rect_priv::label, attr::str, and attr::u.
Referenced by search_attr_get().
|
static |
References dlog, map_rect_priv::label, label, attr::str, and attr::u.
Referenced by search_attr_get().
|
static |
References map_priv::conv, g2n_get_type(), G2N_KIND_SHIFT, G2N_POLYGONE, map_rect_priv::item, item::meth, methods_garmin_poly, map_rect_priv::mpriv, and item::type.
Referenced by garmin_obj2item().
|
static |
References map_priv::conv, g2n_get_type(), G2N_KIND_SHIFT, G2N_POLYLINE, map_rect_priv::item, item::meth, methods_garmin_poly, map_rect_priv::mpriv, and item::type.
Referenced by garmin_obj2item().
|
static |
References map_priv::conv, g2n_get_type(), G2N_KIND_SHIFT, G2N_POINT, map_rect_priv::item, item::meth, methods_garmin_point, map_rect_priv::mpriv, and item::type.
Referenced by garmin_obj2item().
|
static |
References map_rect_priv::item, item::meth, methods_garmin_search, and item::type.
Referenced by garmin_obj2item().
|
static |
References map_selection::order.
Referenced by garmin_get_selection().
|
static |
References dlog, map_priv::filename, map_priv::g, and map_rect_priv::m.
|
static |
References attr_search(), map_priv::conv, data, debug, dlog, map_priv::filename, map_priv::g, g2n_conv_load(), g2n_default_conv(), garmin_debug, map_priv::id, logfn(), map_id, map_methods, PATH_MAX, and st.
Referenced by plugin_init().
|
static |
References dlog, map_rect_priv::gmap, map_rect_priv::label, and map_rect_priv::objs.
Referenced by gmap_search_destroy().
|
static |
|
static |
|
static |
References dlog, garmin_get_selection(), map_rect_priv::mpriv, map_selection::next, map_selection::order, and map_rect_priv::sel.
|
static |
References gmap_rect_destroy().
|
static |
void logfn | ( | char * | file, |
int | line, | ||
int | level, | ||
char * | fmt, | ||
... | |||
) |
References debug_vprintf(), and garmin_debug.
Referenced by gmap_new().
void plugin_init | ( | void | ) |
References gmap_new().
|
static |
References c, map_rect_priv::gmap, map_rect_priv::last_coord, map_rect_priv::last_itterated, pcoord::x, and pcoord::y.
|
static |
References c, ddlog, map_rect_priv::gmap, map_rect_priv::last_c, map_rect_priv::last_coord, map_rect_priv::last_itterated, coord::x, pcoord::x, coord::y, and pcoord::y.
|
static |
int garmin_debug = 10 |
Referenced by gmap_new(), and logfn().
|
static |
Referenced by gmap_new().
|
static |
Referenced by gmap_new().
|
static |
|
static |
Referenced by garmin_poi2item().
|
static |
Referenced by garmin_pg2item(), and garmin_pl2item().
|
static |
Referenced by garmin_srch2item().
struct nl2gl_t nl2gl[] |
struct nl2gl_t nl2gl_1[] |