Add:Core:added helper function to enable installation of command table from external...
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 3 Dec 2010 20:38:13 +0000 (20:38 +0000)
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 3 Dec 2010 20:38:13 +0000 (20:38 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3751 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c
navit/navit/navit.h

index bd2d72c..d638d88 100644 (file)
@@ -746,6 +746,11 @@ static struct command_table commands[] = {
        {"fmt_coordinates",command_cast(navit_cmd_fmt_coordinates)},
 };
        
+void 
+navit_command_add_table(struct navit*this_, struct command_table *commands, int count)
+{
+  command_add_table(this_->attr_cbl, commands, count, this_);
+}
 
 struct navit *
 navit_new(struct attr *parent, struct attr **attrs)
index c12f457..5cd24b9 100644 (file)
@@ -49,6 +49,7 @@ struct route;
 struct tracking;
 struct transformation;
 struct vehicleprofile;
+struct command_table;
 void navit_add_mapset(struct navit *this_, struct mapset *ms);
 struct mapset *navit_get_mapset(struct navit *this_);
 struct tracking *navit_get_tracking(struct navit *this_);
@@ -110,6 +111,7 @@ int navit_set_layout_by_name(struct navit *n, const char *name);
 void navit_disable_suspend(void);
 int navit_block(struct navit *this_, int block);
 void navit_destroy(struct navit *this_);
+void navit_command_add_table(struct navit*this_, struct command_table *commands, int count);
 /* end of prototypes */
 #ifdef __cplusplus
 }