diff options
author | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-04-07 12:49:35 +0000 |
---|---|---|
committer | akashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-04-07 12:49:35 +0000 |
commit | 1eb4849cefbbb6b2053da0da59b1cc750e78f198 (patch) | |
tree | 64ebe3b0324de1ac67abee13b78e940bc4f35b7a | |
parent | 7ae207c710b2d14269be4d881a8cccd9da24269d (diff) | |
download | navit-svn-1eb4849cefbbb6b2053da0da59b1cc750e78f198.tar.gz |
Add:core:Added possibility to create universal command handler
with name of '*'
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/navit@3138 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -877,7 +877,7 @@ command_table_call(struct command_table *table, int count, void *data, char *com { int i; for (i = 0 ; i < count ; i++) { - if (!strcmp(command,table->command)) { + if (!strcmp(command,table->command) || !strcmp("*",table->command)) { if (valid) *valid=1; table->func(data, command, in, out); |