#ifndef NAVIT_COORD_H
#define NAVIT_COORD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <stdio.h>
#include "config.h"
#include "projection.h"
void coord_rect_extend(struct coord_rect *r, struct coord *c);
void coord_format(float lat,float lng, enum coord_format, char * buffer, int size);
-#endif
/* prototypes */
enum coord_format;
enum projection;
unsigned int coord_hash(const void *key);
int coord_equal(const void *a, const void *b);
/* end of prototypes */
+#ifdef __cplusplus
+}
+#endif
+#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
char *linguistics_expand_special(char *str, int mode);
char *linguistics_next_word(char *str);
void linguistics_init(void);
-
+#ifdef __cplusplus
+}
+#endif
#ifndef NAVIT_MAP_H
#define NAVIT_MAP_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct map_priv;
struct attr;
#include "coord.h"
void map_dump(struct map *map);
/* end of prototypes */
+#ifdef __cplusplus
+}
+#endif
#endif
#ifndef NAVIT_MAPSET_H
#define NAVIT_MAPSET_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* prototypes */
enum attr_type;
struct attr;
struct map *mapset_next(struct mapset_handle *msh, int active);
void mapset_close(struct mapset_handle *msh);
struct mapset_search *mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial);
-struct item *mapset_search_get_item(struct mapset_search *this);
-void mapset_search_destroy(struct mapset_search *this);
+struct item *mapset_search_get_item(struct mapset_search *this_);
+void mapset_search_destroy(struct mapset_search *this_);
/* end of prototypes */
+#ifdef __cplusplus
+}
+#endif
#endif
int *tracking_get_current_flags(struct tracking *_this);
void tracking_update(struct tracking *tr, struct vehicle *v, struct vehicleprofile *vehicleprofile, enum projection pro);
struct tracking *tracking_new(struct attr *parent, struct attr **attrs);
-void tracking_set_mapset(struct tracking *this, struct mapset *ms);
-void tracking_set_route(struct tracking *this, struct route *rt);
+void tracking_set_mapset(struct tracking *_this, struct mapset *ms);
+void tracking_set_route(struct tracking *_this, struct route *rt);
void tracking_destroy(struct tracking *tr);
struct map *tracking_get_map(struct tracking *this_);
void tracking_init(void);
* Boston, MA 02110-1301, USA.
*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
struct vehicleprofile {
int mode; /**< 0 = Auto, 1 = On-Road, 2 = Off-Road */
int flags_forward_mask; /**< Flags mask for moving in positive direction */
//! Returns the vehicle profile's name.
char * vehicleprofile_get_name(struct vehicleprofile *this_);
+#ifdef __cplusplus
+}
+#endif