7dea058cf7164d55bf355507dbeb7ef1cd124258
[navit-package] / navit / command.h
1
2 struct command_table {
3         char *command;
4         int (*func)(void *data, char *cmd, struct attr **in, struct attr ***out);
5 };
6
7 #define command_cast(x) (int (*)(void *, char *, struct attr **, struct attr ***))(x)
8
9 void command_evaluate_to_void(struct attr *attr, char *expr, int **error);
10 char *command_evaluate_to_string(struct attr *attr, char *expr, int **error);
11 int command_evaluate_to_int(struct attr *attr, char *expr, int **error);
12 void command_evaluate(struct attr *attr, char *expr);
13 void command_add_table(struct callback_list *cbl, struct command_table *table, int count, void *data);
14