summaryrefslogtreecommitdiff
path: root/navit/command.h
diff options
context:
space:
mode:
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);
+