comparison packages/redboot/current/include/redboot.h @ 124:0ec04793409a ecos-sw-2000-09-11

Merge from eCos master repository on 2000-09-11-03:00:13-BST
author jlarmour
date Mon, 11 Sep 2000 02:42:46 +0000
parents 6bd9d475ed4b
children 518f42066aba
comparison
equal deleted inserted replaced
123:9b71e8e665a3 124:0ec04793409a
159 int arg_type, void **arg, bool *arg_set, char *name); 159 int arg_type, void **arg, bool *arg_set, char *name);
160 extern bool scan_opts(int argc, char *argv[], int first, 160 extern bool scan_opts(int argc, char *argv[], int first,
161 struct option_info *opts, int num_opts, 161 struct option_info *opts, int num_opts,
162 void **def_arg, int def_arg_type, char *def_descr); 162 void **def_arg, int def_arg_type, char *def_descr);
163 163
164 extern int redboot_getc(void);
165 extern void redboot_getc_init(int (*fun)(char *, int, int *), int verbose);
166 extern void redboot_getc_rewind(void);
167
168 #define BUF_SIZE 256
169 typedef struct {
170 int (*fun)(char *, int len, int *err);
171 unsigned char buf[BUF_SIZE];
172 unsigned char *bufp;
173 int avail, len, err;
174 int verbose, tick;
175 } getc_info_t;
176
177
164 // 178 //
165 // Validate a hex character 179 // Validate a hex character
166 // 180 //
167 __inline__ static bool 181 __inline__ static bool
168 _is_hex(char c) 182 _is_hex(char c)