Ticket #1258: gui_internal_command.c.diff

File gui_internal_command.c.diff, 964 bytes (added by marcus püschel, 6 years ago)
Line 
11133,1134d1132
2<       dbg(0, "Function: %s", function);
3<
41172,1173c1170
5<       else if(!strcmp(function, "setting_RoutingAlgorithm"))
6<               gui_internal_cmd2_setting_RoutingAlgorithm(this, function, in, out, valid);
7---
8>
91208d1204
10<       {"setting_RoutingAlgorithm",command_cast(gui_internal_cmd2)},
111222,1247d1217
12< void
13< gui_internal_cmd2_setting_RoutingAlgorithm(struct gui_priv *this, char *function, struct attr **in, struct attr ***out, int *valid)
14< {
15<       if(in)
16<       {
17<               char *str;
18<               str=attr_to_text(*in, NULL, 0);
19<
20<               if(!strcmp(str, "st"))
21<               {
22<                       use_standard_routing();
23<                       dbg(0, "Using Navit standard Dijkstra");
24<               }
25<               if(!strcmp(str, "1T"))
26<               {
27<                       use_bidirectional_routing_1Thread();
28<                       dbg(0, "Using Bidirectional Dijkstra with 1 Thread");
29<               }
30<               if(!strcmp(str, "2T"))
31<               {
32<                       use_bidirectional_routing_2Threads();
33<                       dbg(0, "Using Bidirectional Dijkstra with 2 Threads");
34<               }
35<       }
36<       gui_internal_prune_menu(this, NULL);
37< }