diff options
author | mvglasow <michael -at- vonglasow.com> | 2017-11-29 00:06:35 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2017-11-29 00:06:35 +0100 |
commit | f97dde7b3f359c1a5dca87069ec829efd2047ed8 (patch) | |
tree | e613bd44f3b23ebfe9b9edd3406b80215f3dadf1 /navit/traffic | |
parent | fd207a7d4d72bb18247338a3d0c354fb6d1504dd (diff) | |
download | navit-f97dde7b3f359c1a5dca87069ec829efd2047ed8.tar.gz |
Fix:traffic:Use correct function signature for plugin constructor
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/traffic')
-rw-r--r-- | navit/traffic/dummy/traffic_dummy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/navit/traffic/dummy/traffic_dummy.c b/navit/traffic/dummy/traffic_dummy.c index e83e6ef64..7e7d9e4b6 100644 --- a/navit/traffic/dummy/traffic_dummy.c +++ b/navit/traffic/dummy/traffic_dummy.c @@ -37,6 +37,7 @@ #include "item.h" #include "xmlconfig.h" #include "traffic.h" +#include "plugin.h" #include "debug.h" /** @@ -81,15 +82,15 @@ static struct traffic_methods traffic_dummy_meth = { /** * @brief Registers a new dummy traffic plugin * + * @param nav The navit instance * @param meth Receives the traffic methods * @param attrs The attributes for the map * @param cbl - * @param parent The parent of the plugin, must be the navit instance * * @return A pointer to a `traffic_priv` structure for the plugin instance */ -static struct traffic_priv * traffic_dummy_new(struct traffic_methods *meth, struct attr **attrs, - struct callback_list *cbl, struct attr *parent) { +static struct traffic_priv * traffic_dummy_new(struct navit *nav, struct traffic_methods *meth, + struct attr **attrs, struct callback_list *cbl) { struct traffic_priv *ret; dbg(lvl_error, "enter\n"); |