navit  0.5.3-trunk
gar2navit.c File Reference
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "item.h"
#include "attr.h"
#include "garmin.h"
#include "gar2navit.h"
#include "g2nbuiltin.h"

Functions

static int add_def (struct gar2nav_conv *conv, int type, unsigned short minid, unsigned short maxid, unsigned int group, char *ntype, char *descr)
 
static int load_types_file (char *file, struct gar2nav_conv *conv)
 
struct gar2nav_convg2n_conv_load (char *file)
 
enum item_type g2n_get_type (struct gar2nav_conv *c, unsigned int type, unsigned short id)
 
char * g2n_get_descr (struct gar2nav_conv *c, int type, unsigned short id)
 

Function Documentation

◆ add_def()

static int add_def ( struct gar2nav_conv conv,
int  type,
unsigned short  minid,
unsigned short  maxid,
unsigned int  group,
char *  ntype,
char *  descr 
)
static

◆ g2n_conv_load()

struct gar2nav_conv* g2n_conv_load ( char *  file)

References c, dlog, and load_types_file().

Referenced by gmap_new().

◆ g2n_get_descr()

char* g2n_get_descr ( struct gar2nav_conv c,
int  type,
unsigned short  id 
)

◆ g2n_get_type()

enum item_type g2n_get_type ( struct gar2nav_conv c,
unsigned int  type,
unsigned short  id 
)

◆ load_types_file()

static int load_types_file ( char *  file,
struct gar2nav_conv conv 
)
static