… | |
… | |
49 | #include "transform.h" |
49 | #include "transform.h" |
50 | #include "plugin.h" |
50 | #include "plugin.h" |
51 | #include "callback.h" |
51 | #include "callback.h" |
52 | #include "country.h" |
52 | #include "country.h" |
53 | |
53 | |
54 | /** |
|
|
55 | * @brief Holds information about a map |
|
|
56 | * |
|
|
57 | * This structure holds information about a map. |
|
|
58 | */ |
|
|
59 | struct map { |
|
|
60 | struct map_methods meth; /**< Structure with pointers to the map plugin's functions */ |
|
|
61 | struct map_priv *priv; /**< Private data of the map, only known to the map plugin */ |
|
|
62 | struct attr **attrs; /**< Attributes of this map */ |
|
|
63 | struct callback_list *attr_cbl; /**< List of callbacks that are called when attributes change */ |
|
|
64 | int refcount; |
|
|
65 | }; |
|
|
66 | |
54 | |
67 | /** |
|
|
68 | * @brief Describes a rectangular extract of a map |
|
|
69 | * |
|
|
70 | * This structure describes a rectangular extract of a map. |
|
|
71 | */ |
|
|
72 | struct map_rect { |
|
|
73 | struct map *m; /**< The map this extract is from */ |
|
|
74 | struct map_rect_priv *priv; /**< Private data of this map rect, only known to the map plugin */ |
|
|
75 | }; |
|
|
76 | |
55 | |
77 | /** |
56 | /** |
78 | * @brief Opens a new map |
57 | * @brief Opens a new map |
79 | * |
58 | * |
80 | * This function opens a new map based on the attributes passed. This function |
59 | * This function opens a new map based on the attributes passed. This function |