"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "navit/map.c" between
navit-0.5.5.tar.gz and navit-0.5.6.tar.gz

About: NavIt is a car navigation system with GPS tracking and a routing engine.

map.c  (navit-0.5.5):map.c  (navit-0.5.6)
skipping to change at line 55 skipping to change at line 55
#include "projection.h" #include "projection.h"
#include "item.h" #include "item.h"
#include "map.h" #include "map.h"
#include "maptype.h" #include "maptype.h"
#include "transform.h" #include "transform.h"
#include "plugin.h" #include "plugin.h"
#include "callback.h" #include "callback.h"
#include "country.h" #include "country.h"
#include "xmlconfig.h" #include "xmlconfig.h"
/**
* @brief Holds information about a map
*
* This structure holds information about a map.
*/
struct map { struct map {
NAVIT_OBJECT NAVIT_OBJECT
struct map_methods meth; /**< Structure with pointers to t he map plugin's functions */ struct map_methods meth; /**< Structure with pointers to t he map plugin's functions */
struct map_priv *priv; /**< Private data of the map, only known to the map plugin */ struct map_priv *priv; /**< Private data of the map, only known to the map plugin */
struct callback_list *attr_cbl; /**< List of callbacks that are c alled when attributes change */ struct callback_list *attr_cbl; /**< List of callbacks that are c alled when attributes change */
}; };
/**
* @brief Describes a rectangular extract of a map
*
* This structure describes a rectangular extract of a map.
*/
struct map_rect { struct map_rect {
struct map *m; /**< The map this extract is from */ struct map *m; /**< The map this extract is from */
struct map_rect_priv *priv; /**< Private data of this map rect, only known t o the map plugin */ struct map_rect_priv *priv; /**< Private data of this map rect, only known t o the map plugin */
}; };
/** /**
* @brief Opens a new map * @brief Opens a new map
* *
* This function opens a new map based on the attributes passed. This function * This function opens a new map based on the attributes passed. This function
* takes the attribute "attr_type" to determine which type of map to open and pa sses * takes the attribute "attr_type" to determine which type of map to open and pa sses
skipping to change at line 376 skipping to change at line 366
* *
* @param mr The map rect to be destroyed * @param mr The map rect to be destroyed
*/ */
void map_rect_destroy(struct map_rect *mr) { void map_rect_destroy(struct map_rect *mr) {
if (mr) { if (mr) {
mr->m->meth.map_rect_destroy(mr->priv); mr->m->meth.map_rect_destroy(mr->priv);
g_free(mr); g_free(mr);
} }
} }
/**
* @brief Holds information about a search on a map
*
* This structure holds information about a search performed on a map. This can
be
* used as "handle" to retrieve items from a search.
*/
struct map_search { struct map_search {
struct map *m; struct map *m;
struct attr search_attr; struct attr search_attr;
void *priv; void *priv;
}; };
/** /**
* @brief Starts a search on a map * @brief Starts a search on a map
* *
* This function starts a search on a map. What attributes one can search for de pends on the * This function starts a search on a map. What attributes one can search for de pends on the
 End of changes. 3 change blocks. 
17 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)