102 |
/* Create an entry in the symbol table for variable NAME, |
/* Create an entry in the symbol table for variable NAME, |
103 |
whose type is TYPE and value is VAL. Returns 0 on success, |
whose type is TYPE and value is VAL. Returns 0 on success, |
104 |
non-zero otherwise. */ |
non-zero otherwise. */ |
105 |
int boot_script_set_variable (const char *name, int type, int val); |
int boot_script_set_variable (const char *name, int type, integer_t val); |
106 |
|
|
107 |
/* Define the function NAME, which will return type RET_TYPE. */ |
/* Define the function NAME, which will return type RET_TYPE. */ |
108 |
int boot_script_define_function (const char *name, int ret_type, |
int boot_script_define_function (const char *name, int ret_type, |
109 |
int (*func) (const struct cmd *cmd, int *val)); |
int (*func) (const struct cmd *cmd, |
110 |
|
integer_t *val)); |
111 |
|
|
112 |
/* Returns a string describing the error ERR. */ |
/* Returns a string describing the error ERR. */ |
113 |
char *boot_script_error_string (int err); |
char *boot_script_error_string (int err); |