summaryrefslogtreecommitdiff
path: root/navit/command.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-01 16:07:50 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-01 16:07:50 +0000
commit48194427ce8fc25ce59e9aa55c0a6b9900f53585 (patch)
tree7f54fc0d98f2cf137296ec5d11a9ea412242ebb2 /navit/command.h
parent2cdf13b06ed12db1a04084b4cd67898d480f308a (diff)
downloadnavit-48194427ce8fc25ce59e9aa55c0a6b9900f53585.tar.gz
Add:Core:Added c style command evaluation for more flexible osds
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1987 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/command.h')
-rw-r--r--navit/command.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/navit/command.h b/navit/command.h
new file mode 100644
index 000000000..992115a18
--- /dev/null
+++ b/navit/command.h
@@ -0,0 +1,11 @@
+
+struct command_table {
+ char *command;
+ int (*func)(void *data, char *cmd, struct attr **in, struct attr ***out);
+};
+
+#define command_cast(x) (int (*)(void *, char *, struct attr **, struct attr ***))(x)
+
+void command_evaluate_to_void(struct attr *attr, char *expr);
+void command_add_table(struct callback_list *cbl, struct command_table *table, int count, void *data);
+