diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..c84b417 --- /dev/null +++ b/src/common.h @@ -0,0 +1,27 @@ +#ifndef COMMON_H +#define COMMON_H + +#include "fujichat.h" + +/* common functions, shared by fujichat.c and fujiconf.c. + Don't put anything here unless it really is shared! */ + +/* This stays resident */ +extern fuji_conf_t *config; + +/* uIP-related */ +char * format_ip(uip_ipaddr_t *ip); +u16_t local_htons(u16_t val); + +/* config-related */ +char get_config(void); +char config_is_valid(void); +void set_default_config(void); + +/* UI-related */ +char __fastcall__ fuji_cgetc(void); +void __fastcall__ fuji_putchar(char); /* fujiput.s */ +void get_line(char *buf, unsigned char len); +void disable_break(void); + +#endif |