diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-30 20:34:23 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-07-30 20:34:23 +0000 |
commit | d72782347c2ba802cd030feeb23f7eacc4ae8a23 (patch) | |
tree | a729476323d0d551c2031b3a666193923ceb08a4 /command.h | |
parent | c297ef7f5928b0407ab67b9a76ccf166d0a1d3e0 (diff) | |
parent | 3b8435d744c504a88493f272068453023585837e (diff) | |
download | navit-svn-wince.tar.gz |
Updated wince branch to current versionwince
git-svn-id: http://svn.code.sf.net/p/navit/code/branches/wince/navit@2430 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/command.h b/command.h new file mode 100644 index 00000000..0b3ba746 --- /dev/null +++ b/command.h @@ -0,0 +1,20 @@ + +struct command_table { + char *command; + int (*func)(void *data, char *cmd, struct attr **in, struct attr ***out); +}; + +struct command_saved; + +#define command_cast(x) (int (*)(void *, char *, struct attr **, struct attr ***))(x) + +void command_evaluate_to_void(struct attr *attr, char *expr, int **error); +char *command_evaluate_to_string(struct attr *attr, char *expr, int **error); +int command_evaluate_to_int(struct attr *attr, char *expr, int **error); +void command_evaluate(struct attr *attr, char *expr); +void command_add_table(struct callback_list *cbl, struct command_table *table, int count, void *data); +struct command_saved *command_saved_new(char *command, struct navit *navit, struct callback *cb); +void command_saved_destroy(struct command_saved *cs); +int command_saved_get_int(struct command_saved *cs); +int command_saved_error(struct command_saved *cs); +void command_saved_set_cb(struct command_saved *cs, struct callback *cb); |