*
* Returns: the default engine
*/
-static VikRoutingEngine *
+VikRoutingEngine *
vik_routing_default_engine ( void )
{
const gchar *id = a_preferences_get ( VIKING_ROUTING_PARAMS_NAMESPACE "default")->s;
* vik_routing_default_find:
*
* Route computation with default engine.
+ *
+ * Return indicates success or not
*/
-void
+gboolean
vik_routing_default_find(VikTrwLayer *vt, struct LatLon start, struct LatLon end)
{
/* The engine */
VikRoutingEngine *engine = vik_routing_default_engine ( );
/* The route computation */
- vik_routing_engine_find ( engine, vt, start, end );
+ return (gboolean)vik_routing_engine_find ( engine, vt, start, end );
}
/**
G_BEGIN_DECLS
/* Default */
-void vik_routing_default_find ( VikTrwLayer *vt, struct LatLon start, struct LatLon end );
+gboolean vik_routing_default_find ( VikTrwLayer *vt, struct LatLon start, struct LatLon end );
/* Routing engines management */
void vik_routing_prefs_init();
GtkWidget *vik_routing_ui_selector_new ( Predicate func, gpointer user_data );
VikRoutingEngine *vik_routing_ui_selector_get_nth ( GtkWidget *combo, int pos );
+/* Needs to be visible to display info about which routing engine is getting the route in viktrwlayer.c */
+VikRoutingEngine * vik_routing_default_engine ( void );
+
+
G_END_DECLS
#endif