20 #ifndef NAVIT_COMMAND_H 21 #define NAVIT_COMMAND_H 32 #define command_cast(x) (int (*)(void *, char *, struct attr **, struct attr ***))(x) attr_type
Definition: attr.h:34
int command_evaluate_to_length(const char *expr, int *error)
Definition: command.c:1319
struct callback_list * cbl
Definition: main.c:64
void command_evaluate_to_void(struct attr *attr, char *expr, int *error)
Definition: command.c:1237
void command_saved_set_cb(struct command_saved *cs, struct callback *cb)
Definition: command.c:1527
void command_evaluate(struct attr *attr, const char *expr)
Definition: command.c:1463
struct command_saved * command_saved_new(char *command, struct navit *navit, struct callback *cb, int async)
Definition: command.c:1772
int command_saved_get_int(struct command_saved *cs)
Returns an integer representation of the evaluation result of a saved command.
Definition: command.c:1537
int(* func)(void *data, char *cmd, struct attr **in, struct attr ***out)
Definition: command.h:29
char * command_evaluate_to_string(struct attr *attr, char *expr, int *error)
Definition: command.c:1249
Definition: callback.c:36
int command_evaluate_to_int(struct attr *attr, char *expr, int *error)
Definition: command.c:1270
char data
Definition: garmin_img.c:330
int command_evaluate_to_boolean(struct attr *attr, const char *expr, int *error)
Definition: command.c:1291
Definition: callback.c:26
const char * command
Definition: command.h:28
void command_saved_destroy(struct command_saved *cs)
Definition: command.c:1777
void err(char *fmt,...)
Definition: tell_navit.c:42
char * command_error_to_text(int err)
Converts an error to human-readable text.
Definition: command.c:119
void command_add_table_attr(struct command_table *table, int count, void *data, struct attr *attr)
Definition: command.c:1516
int async
Definition: command.c:91
struct callback * cb
Definition: command.c:89
int command_saved_error(struct command_saved *cs)
Definition: command.c:1541
enum attr_type command_evaluate_to_attr(struct attr *attr, char *expr, int *error, struct attr *ret)
Definition: command.c:1225
struct command_saved * command_saved_attr_new(char *command, struct attr *context, struct callback *cb, int async)
Creates a new saved command.
Definition: command.c:1750
void command_add_table(struct callback_list *cbl, struct command_table *table, int count, void *data)
Definition: command.c:1521
error
Definition: command.c:94