aboutsummaryrefslogtreecommitdiff
path: root/src/common.h
blob: c84b4173a3460b2a1ba8a3cc306816675c64396b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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