From 40ca2e594fa15e70aba00f0b5b6764ce175ade6c Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Sat, 25 Feb 2017 09:18:47 -0500 Subject: Initial, non-working telnet commit --- dos/mainutil.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dos/mainutil.h (limited to 'dos/mainutil.h') diff --git a/dos/mainutil.h b/dos/mainutil.h new file mode 100644 index 0000000..1174a72 --- /dev/null +++ b/dos/mainutil.h @@ -0,0 +1,16 @@ +#ifndef __MAINUTIL_H__ +#define __MAINUTIL_H__ + +/* Initializes uIP, SLIP and the FOSSIL driver. Designed to + * basically accept program arguments as-is. + */ +int common_init(char *host_ip, char *local_ip, char *netmask, + char *fos_port, char *fos_speed); + +/* Converts IPv4 string to 4 integers */ +int ip_from_string(const char *string, int ip[4]); + +/* A uIP log-to-screen routine that is silent unless DEBUG is defined */ +void uip_log(char *m); + +#endif /* __MAINUTIL_H__ */ \ No newline at end of file -- cgit v1.2.3